Skip to content

fix: sanitize shell/subprocess call in cin-debug-run (CWE-78) - #14084

Open
anupamme wants to merge 1 commit into
linuxmint:masterfrom
anupamme:fix-repo-cinnamon-cin-debug-run-command-injection
Open

anupamme wants to merge 1 commit into
linuxmint:masterfrom
anupamme:fix-repo-cinnamon-cin-debug-run-command-injection

Conversation

@anupamme

Copy link
Copy Markdown

The cin-debug-run utility takes process name and arguments from command line without validation, interpolates them into gdb script and shell command strings. Both pname and runargs are directly embedded into os.system() calls, enabling command injection through shell metacharacters. This was found by static analysis at utils/cin-debug-run:25. I have not demonstrated an exploit against your deployment, so please judge it against your own threat model.

Reference: CWE-78

What changed

  • utils/cin-debug-run

Verification

No automated check could be run against this repository, so this change is unverified beyond review. Please treat it as a suggestion.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
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