CVE-2026-22035 Details
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.
A command injection vulnerability has been identified in Greenshot, an open-source Windows screenshot utility, specifically in versions through 1.3.310. The issue arises in the ExternalCommand plugin, where user-controlled filenames are inserted into shell commands without proper sanitization. This flaw allows attackers to execute arbitrary commands by crafting filenames that include shell metacharacters. The vulnerability is rooted in the 'FormatArguments' method of 'ExternalCommandDestination.cs', which directly uses 'string.Format()' to process filenames for command execution.
Users are advised to update to Greenshot version 1.3.311, where this vulnerability has been patched. For those unable to update, it is recommended to disable the ExternalCommand plugin or avoid configuring it with command interpreters.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/greenshot/greenshot/security/advisories/GHSA-7hvw-q8q5-gpmj | CISA-ADP | ExploitVendor Advisory |
| https://github.com/greenshot/greenshot/commit/5dedd5c9f0a9896fa0af1d4980d875a48bf432cb | [email protected] | Patch |
| https://github.com/greenshot/greenshot/releases/tag/v1.3.311 | [email protected] | Release Notes |
| https://github.com/greenshot/greenshot/security/advisories/GHSA-7hvw-q8q5-gpmj | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| getgreenshot greenshot | < 1.3.311 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 27, 2026 | Initial Analysis | [email protected] |
| Jan 8, 2026 | CVE Modified | CISA-ADP |
| Jan 8, 2026 | New CVE Received | [email protected] |