Skip to content

fix: sanitize subprocess call in rtl_ltr_linter.py#13172

Closed
orbisai0security wants to merge 1 commit intoEbookFoundation:mainfrom
orbisai0security:fix-fix-v-001-subprocess-shell-injection-rtl-ltr-linter
Closed

fix: sanitize subprocess call in rtl_ltr_linter.py#13172
orbisai0security wants to merge 1 commit intoEbookFoundation:mainfrom
orbisai0security:fix-fix-v-001-subprocess-shell-injection-rtl-ltr-linter

Conversation

@orbisai0security
Copy link
Copy Markdown

@orbisai0security orbisai0security commented Mar 29, 2026

Summary

Fix high severity security issue in scripts/rtl_ltr_linter.py.

Vulnerability

Field Value
ID V-001
Severity HIGH
Scanner multi_agent_ai
Rule V-001
File scripts/rtl_ltr_linter.py:426

Description: The rtl_ltr_linter.py script executes subprocess.check_output at line 426 to run diff commands. If user-controlled input (file paths or command arguments from CLI interfaces at lines 462 and 604) is passed to subprocess without proper sanitisation and with shell=True enabled, attackers can inject shell metacharacters to execute arbitrary system commands. This vulnerability allows complete bypass of application logic and direct interaction with the underlying operating system.

Changes

  • scripts/rtl_ltr_linter.py

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • Code review passed

Automated security fix by OrbisAI Security

@eshellman eshellman requested a review from Thenlie March 30, 2026 17:20
@Thenlie
Copy link
Copy Markdown
Contributor

Thenlie commented Mar 30, 2026

Seems like the description was cut off. Mind updating that?

It's not immediately clear to me how a user input could end up here.

@orbisai0security
Copy link
Copy Markdown
Author

I've raised another PR [1] for the same finding with a full description. So closing this out.

  1. fix: sanitize subprocess call in rtl_ltr_linter.py #13194

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.

2 participants