# CVE-2026-22035: Greenshot Vulnerable to OS Command Injection via ExternalCommand Plugin

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-08T00:10:28.278Z
- Modified: 2026-06-17T10:19:23.907Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- greenshot greenshot: < 1.3.311
- getgreenshot greenshot: before 1.3.311

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/greenshot/greenshot/security/advisories/GHSA-7hvw-q8q5-gpmj> (exploit, vendor-advisory)
- <https://github.com/greenshot/greenshot/commit/5dedd5c9f0a9896fa0af1d4980d875a48bf432cb> (patch)
- <https://github.com/greenshot/greenshot/releases/tag/v1.3.311> (release-notes)

## Sources

- CVE List: [CVE-2026-22035](https://www.cve.org/CVERecord?id=CVE-2026-22035), CVE Terms of Use, modified 2026-02-26
- NVD: [CVE-2026-22035](https://nvd.nist.gov/vuln/detail/CVE-2026-22035), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22035 · Whole record: https://cve.day/CVE-2026-22035.json · Rebuilt by cve.day 2026-11-25T22:59:12.653Z
