CVE-2026-48981: Python Os System Command Injection
Constructing shell commands using string formatting or concatenation and passing them to `os.system()` can lead to OS command injection. An attacker could inject arbitrary shell commands through the interpolated variables. Instead, use `subprocess.run()` and pass arguments as a list to avoid shell interpretation.
greprules fetch cve-2026-48981-python-os-system-command-injection --engine opengrepDescription
Constructing shell commands using string formatting or concatenation and passing them to `os.system()` can lead to OS command injection. An attacker could inject arbitrary shell commands through the interpolated variables. Instead, use `subprocess.run()` and pass arguments as a list to avoid shell interpretation.
Community feedback
0 rule-level signals from signed-in users.
- Useful reports
- 0
- Context false positives
- 0
- Metadata suggestions
- 0
Contextual precision
Aggregated from approved scan feedback. False-positive reports describe observed scan contexts, not a global rule verdict.
- Findings observed
- 0
- Projects
- 0
- Reporters
- 0
Precision details are collecting more signed-in reports before verdict counts or ratios are emphasized.
No approved finding verdicts yet.
No scan diagnostics reported yet.