{"id":"CVE-2026-22035","state":"PUBLISHED","title":"Greenshot Vulnerable to OS Command Injection via ExternalCommand Plugin","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.","publishedAt":"2026-01-08T00:10:28.278Z","updatedAt":"2026-02-26T15:04:55.208Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["greenshot greenshot"],"affected":[{"vendor":"greenshot","product":"greenshot","versions":[{"version":"< 1.3.311","status":"affected"}]}],"references":["https://github.com/greenshot/greenshot/security/advisories/GHSA-7hvw-q8q5-gpmj","https://github.com/greenshot/greenshot/commit/5dedd5c9f0a9896fa0af1d4980d875a48bf432cb","https://github.com/greenshot/greenshot/releases/tag/v1.3.311"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/22xxx/CVE-2026-22035.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-22035","state":"PUBLISHED","datePublished":"2026-01-08T00:10:28.278Z","dateUpdated":"2026-02-26T15:04:55.208Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-05T22:30:38.719Z"},"containers":{"cna":{"title":"Greenshot Vulnerable to OS Command Injection via ExternalCommand Plugin","descriptions":[{"lang":"en","value":"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":[{"vendor":"greenshot","product":"greenshot","versions":[{"version":"< 1.3.311","status":"affected"}]}],"references":[{"url":"https://github.com/greenshot/greenshot/security/advisories/GHSA-7hvw-q8q5-gpmj","name":"https://github.com/greenshot/greenshot/security/advisories/GHSA-7hvw-q8q5-gpmj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/greenshot/greenshot/commit/5dedd5c9f0a9896fa0af1d4980d875a48bf432cb","name":"https://github.com/greenshot/greenshot/commit/5dedd5c9f0a9896fa0af1d4980d875a48bf432cb","tags":["x_refsource_MISC"]},{"url":"https://github.com/greenshot/greenshot/releases/tag/v1.3.311","name":"https://github.com/greenshot/greenshot/releases/tag/v1.3.311","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-08T00:10:28.278Z"},"source":{"advisory":"GHSA-7hvw-q8q5-gpmj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/greenshot/greenshot/security/advisories/GHSA-7hvw-q8q5-gpmj","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-22035","role":"CISA Coordinator","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-01-09T04:55:31.712966Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-26T15:04:55.208Z"}}]}}}