# CVE-2025-55294: Command Injection via `format` option in screenshot-desktop

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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.42%, higher than 73% of CVEs (2026-12-01)
- Published: 2025-08-19T17:34:54.656Z
- Modified: 2026-06-17T09:41:36.030Z
- Also known as: GHSA-gjx4-2c7g-fm94
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

screenshot-desktop allows capturing a screenshot of your local machine. This vulnerability is a command injection issue. When user-controlled input is passed into the format option of the screenshot function, it is interpolated into a shell command without sanitization. This results in arbitrary command execution with the privileges of the calling process. This vulnerability is fixed in 1.15.2.

(As written by CVE List.)

## Affected

- bencevans screenshot-desktop: < 1.15.2
- screenshot-desktop (npm): before 1.15.2

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/bencevans/screenshot-desktop/security/advisories/GHSA-gjx4-2c7g-fm94> (web)
- <https://github.com/bencevans/screenshot-desktop/commit/59c87b0c175eec76090e6ccde313f4fc5d569b78> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-55294> (advisory)
- <https://github.com/bencevans/screenshot-desktop> (package)

## Sources

- CVE List: [CVE-2025-55294](https://www.cve.org/CVERecord?id=CVE-2025-55294), CVE Terms of Use, modified 2025-08-19
- GitHub Advisory Database: [GHSA-gjx4-2c7g-fm94](https://github.com/advisories/GHSA-gjx4-2c7g-fm94), CC-BY-4.0, modified 2025-08-19
- NVD: [CVE-2025-55294](https://nvd.nist.gov/vuln/detail/CVE-2025-55294), Public domain, modified 2026-06-17

---

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