Skip to content

fix: remove unsafe exec() in showwal.c#45

Open
orbisai0security wants to merge 1 commit into
sqlite:masterfrom
orbisai0security:fix-v-001-sprintf-buffer-overflow-showwal
Open

fix: remove unsafe exec() in showwal.c#45
orbisai0security wants to merge 1 commit into
sqlite:masterfrom
orbisai0security:fix-v-001-sprintf-buffer-overflow-showwal

Conversation

@orbisai0security

Copy link
Copy Markdown

Summary

Fix critical severity security issue in tool/showwal.c.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File tool/showwal.c:184

Description: Seven unbounded sprintf() calls in tool/showwal.c write formatted output into fixed-size stack buffers (zBuf, zDesc) without specifying a maximum output length. No validation is performed on WAL file field values before they are formatted. A crafted WAL file with oversized integer values or unexpected field contents can overflow these stack buffers, overwriting the saved return address and enabling arbitrary code execution.

Changes

  • tool/showwal.c

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by Orbis Security AI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant