CVE-2026-22035 Greenshot Vulnerable to OS Command Injection via ExternalCommand Plugin
HighCVSS 7.3
EPSS 1.0%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
Greenshot is an open source Windows screenshot utility. Versions 1.3.310 and below arvulnerable to OS Command Injection through unsanitized filename processing. The FormatArguments method in ExternalCommandDestination.cs:269 uses string.Format() to insert user-controlled filenames directly into shell commands without sanitization, allowing attackers to execute arbitrary commands by crafting malicious filenames containing shell metacharacters. This issue is fixed in version 1.3.311.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| getgreenshot greenshot | < 1.3.311 | 1.3.311 | Fixed |
| greenshot | = < 1.3.311 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| greenshot | = < 1.3.311 | No fix listed |
| getgreenshot greenshot | < 1.3.311 | 1.3.311 |