CVE-2026-22035: Greenshot Vulnerable to OS Command Injection via ExternalCommand Plugin
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-22035?
CVE-2026-22035 is rated as a medium severity vulnerability due to its potential for OS command injection.
How do I fix CVE-2026-22035?
To fix CVE-2026-22035, upgrade Greenshot to version 1.3.311 or newer.
What versions of Greenshot are affected by CVE-2026-22035?
CVE-2026-22035 affects Greenshot versions 1.3.310 and below.
What type of vulnerability is CVE-2026-22035?
CVE-2026-22035 is categorized as an OS Command Injection vulnerability.
What component of Greenshot is involved in CVE-2026-22035?
CVE-2026-22035 involves the FormatArguments method in the ExternalCommandDestination.cs file.