{"id":"CVE-2026-22035","aliases":["CVE-2026-22035"],"related":[],"kind":"vulnerability","state":"published","title":"Greenshot Vulnerable to OS Command Injection via ExternalCommand Plugin","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Greenshot es una utilidad de captura de pantalla de código abierto para Windows. Las versiones 1.3.310 e inferiores son vulnerables a la inyección de comandos del sistema operativo a través del procesamiento de nombres de archivo no saneados. El método FormatArguments en ExternalCommandDestination.cs:269 utiliza string.Format() para insertar nombres de archivo controlados por el usuario directamente en comandos de shell sin saneamiento, lo que permite a los atacantes ejecutar comandos arbitrarios al crear nombres de archivo maliciosos que contienen metacaracteres de shell. Este problema está corregido en la versión 1.3.311.","source":"nvd"}],"published":"2026-01-08T00:10:28.278Z","modified":"2026-06-17T10:19:23.907Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 1.3.311","status":"affected"}],"vendor":"greenshot","product":"greenshot","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.3.311"}],"vendor":"getgreenshot","product":"greenshot","cpe":"cpe:2.3:a:getgreenshot:greenshot:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/greenshot/greenshot/security/advisories/GHSA-7hvw-q8q5-gpmj","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/greenshot/greenshot/commit/5dedd5c9f0a9896fa0af1d4980d875a48bf432cb","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/greenshot/greenshot/releases/tag/v1.3.311","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-01-09T04:55:31.712Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-22035","url":"https://www.cve.org/CVERecord?id=CVE-2026-22035","licence":"CVE Terms of Use","modified":"2026-02-26T15:04:55.208Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-22035","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22035","licence":"Public domain","modified":"2026-06-17T10:19:23.907Z"}],"updatedAt":"2026-11-25T22:59:12.653Z","epss":{"score":0.01032,"percentile":0.64695,"date":"2026-12-01T12:00:22.000Z"}}