Skip to content

[Aikido] Validate gpg.program paths to prevent arbitrary code execution - #47

Closed
aikido-autofix[bot] wants to merge 2 commits into
mainfrom
fix/aikido-security-code-audit-106592895-qfxg
Closed

[Aikido] Validate gpg.program paths to prevent arbitrary code execution#47
aikido-autofix[bot] wants to merge 2 commits into
mainfrom
fix/aikido-security-code-audit-106592895-qfxg

Conversation

@aikido-autofix

@aikido-autofix aikido-autofix Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

This patch fixes an arbitrary code execution vulnerability in src-tauri/src/commands/history.rs where untrusted gpg.program configuration from repository-local Git settings could be executed without validation. The fix implements path validation to ensure GPG program paths are either absolute paths to existing files or simple program names resolvable on the system PATH before execution during commit signature verification. This prevents attackers from injecting malicious commands through crafted repository configurations.

aikido-autofix Bot and others added 2 commits September 5, 2026 17:44
Fall back to the platform GPG default when repository configuration is invalid and cover validation with deterministic cross-platform tests.
@cst8t cst8t closed this Sep 5, 2026
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