Geany through 2.1.0 OS Command Injection via Filename in Build Commands
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 18, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 18, 2026
Description
Geany through 2.1.0 contains an OS command injection vulnerability that allows attackers to run shell commands by embedding metacharacters in filenames substituted into build and execute commands. Attackers can craft a file named with backticks or $(...) that executes via /bin/sh when a user runs Compile, Build or Execute, gaining code execution as the user.
| Product | Versions |
|---|---|
| geany geany | 2.1.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- https://github.com/geany/geany/issues/4611Issue Tracker
- https://github.com/geany/geany/blob/2.1.0/src/utils.c#L2561-L2610Technical Details
- https://github.com/geany/geany/blob/2.1.0/src/build.c#L1100-L1111Technical Details
- VulnCheck Advisory: Geany through 2.1.0 OS Command Injection via Filename in Build CommandsThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.