Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver file with crafted name to victim
-
DeliveryVictim opens project/file in Geany
-
ExploitUser runs Compile/Build/Execute
-
ExecutionFilename metacharacters expand via /bin/sh
-
ImpactArbitrary command execution as the user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an attacker-controlled file whose name contains shell metacharacters (backticks or $(...)) to be present locally and opened in Geany (≤ 2.1.0), and the victim must then invoke the Compile, Build, or Execute action, at which point Geany substitutes the filename into a command executed by /bin/sh. The trigger is thus the build/execute filename-substitution path in utils.c/build.c. Limiting factors: the attack is local (AV:L) and needs user interaction (the victim must open the file and start a build/execute), so it cannot be fired remotely against a default install without that user action; exposure is concentrated on developer workstations that open untrusted files/projects. |
| Impact | The input vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H (score 8.5) describes a local, low-complexity flaw whose only gating factor is passive user interaction: the victim must open a maliciously-named file in Geany and invoke Compile, Build or Execute. Impact is high across confidentiality, integrity and availability because the result is arbitrary shell command execution as the running user. The vuln.today decision label is 'this_week' (not act_now/emergency), which aligns with a serious-but-not-fire-drill priority. No EPSS score and no CISA KEV status are provided in the input, and no PoC is explicitly flagged as confirmed working exploit code - so there is no evidence of active, widespread exploitation; the realistic threat is targeted social-engineering (tricking a developer into opening an attacker-supplied file/project). This is a genuine code-execution issue rather than a high-CVSS-but-low-real-risk paper cut, but the local attack vector plus required user interaction meaningfully limit mass exploitation. Conflicting/missing data to note: EPSS and KEV are absent from the input, so exploitation probability cannot be quantified; and while the CVSS 4.0 vector uses PR:N (unauthenticated), the mechanism is really dependent on local file delivery and a user action, so the 'network-wide unauthenticated' intuition does not apply - treat it as local operator-triggered. |
| Exploit ScenarioDerived | An attacker distributes a source archive, Git repository, or shared folder containing a file whose name embeds shell metacharacters (e.g. backticks or $(...)). A developer opens the project in Geany and clicks Compile, Build, or Execute; Geany substitutes the filename into a command string run via /bin/sh, so the embedded command executes with the developer's privileges. The GitHub issue (#4611) and VulnCheck advisory describe this mechanism, but the input does not flag a confirmed working exploit, so treat PoC maturity as the issue/advisory writeups rather than packaged exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
OS command injection in Geany through 2.1.0 lets a file whose name contains shell metacharacters such as backticks or $(...) execute arbitrary commands as the user once the Compile, Build or Execute action is invoked. The attack is local and unauthenticated per the supplied vector (PR:N), gated only by user interaction: the victim must open the maliciously named file in the editor and start a build or execute action, at which point Geany substitutes the filename into a command run by /bin/sh. No public exploit code is identified at time of analysis and there is no CISA KEV entry, but the impact is full code execution in the user's context, so exposure is concentrated on developer workstations that open untrusted files or projects.
RemediationAI
No vendor-released patch or fixed version is identified in the available data; the status should be tracked through the upstream issue at https://github.com/geany/geany/issues/4611 and the VulnCheck advisory at https://www.vulncheck.com/advisories/geany-through-2.1.0-os-command-injection-via-filename-in-build-commands. Because the trigger is filename substitution into the Compile, Build and Execute command templates, the practical containment is to prevent attacker-controlled names from reaching that path: do not open untrusted files, archives or projects in Geany until a fix is available, and rename any file containing backticks, $(...), or other shell metacharacters before invoking a build or execute action, accepting the trade-off that this breaks normal build workflows for such files. Reviewing and overriding the build command templates so the filename is passed as a quoted or escaped argument reduces exposure but requires per-project configuration and still depends on the user not restoring the default templates. These measures only reduce reachability of the substitution path; they do not repair the underlying CWE-78 flaw, so the complete fix remains an upstream code change that neutralizes the filename before it is handed to /bin/sh.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Geany is a lightweight GTK-based integrated development environment whose build system constructs shell command lines from configurable templates, substituting the current filename (%f) into Compile, Build and Execute actions before handing the string to the shell. The references point at the substitution path in src/utils.c (lines 2561-2610) and the command construction in src/build.c (lines 1100-1111) in the 2.1.0 tree, where a filename containing backtick or $(...) command substitution syntax is passed through unescaped to /bin/sh, so the embedded command executes instead of being treated as literal text. The root cause is CWE-78 (improper neutralization of special elements used in an OS command), i.e. missing quoting/escaping of an attacker-influenced name before shell interpretation rather than a flaw in the compiler or the shell itself. The CPE cpe:2.3:a:geany:geany:*:*:*:*:*:*:*:* is a wildcard covering all versions up to and including 2.1.0; the advisory describes the issue as affecting Geany through 2.1.0. The trigger is the build/execute filename-substitution path itself, and exploitation is confirmed to require that a file with a crafted name exists locally and is opened in Geany before the user initiates a build or execute action.
Know when Geany gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local because a malicious filename must exist and the user must run a build/execute (UI:R); no prior auth needed (PR:N); result is full command execution as the user, so C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-132756 is a high-severity OS command injection vulnerability in the Geany text editor through version 2.1.0. A local attacker can craft a file with a malicious filename that, when opened and built or executed by a developer, runs arbitrary commands with the user's privileges. This puts developer workstations at risk of full compromise, potentially leading to unauthorized access, data loss, and lateral movement within the organization.
No vendor-released patch identified at time of analysis. Interim mitigations: avoid opening files with shell metacharacters in their names (e.g., backticks, $(), ;, &), use an alternative editor for untrusted files, disable or restrict compile/build/execute actions in Geany until a patch is available, and implement application whitelisting to limit the impact of arbitrary command execution.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-129360
GHSA-f39r-fvgx-3c5v
NVD
CVE.org
EPSS
Exploit-DB