RCE in Getgreenshot Greenshot
CVE-2026-22035
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.010 (62.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 63rd percentile — 62.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.009 · newest: 0.010 · change: +0.001
Affected products
- Getgreenshot Greenshot
- Greenshot — versions < 1.3.311
Weakness classification (CWE)
References
- github.com/greenshot/greenshot/security/advisories/GHSA-7hvw-q8q5-gpmj (Exploit, Vendor Advisory)
- github.com/greenshot/greenshot/commit/5dedd5c9f0a9896fa0af1d4980d875a48bf432cb (Patch)
- github.com/greenshot/greenshot/releases/tag/v1.3.311 (Release Notes)
Frequently asked questions
- What is CVE-2026-22035?
- CVE-2026-22035 is a high-severity vulnerability in Getgreenshot Greenshot, classified under OS Command Injection. CVSS score: 7.7/10. Published 2026-01-08.
- How severe is CVE-2026-22035?
- High severity. CVSS v3 base score is 7.7 out of 10.