CVE-2026-22035CWE-78

Greenshot Vulnerable to OS Command Injection via ExternalCommand Plugin

High · published January 8, 2026

CVSS v3.1
7.8
EPSS
1%
Percentile
63.5
In the wild
Unconfirmed
What it is

⚡ An unsanitized filename could open a can of worms! Greenshot versions 1.3.310 and below are vulnerable to OS Command Injection, allowing attackers to execute arbitrary commands. 🔥 Think of it like a restaurant that takes any name for a reservation and then announces it out loud, leading to chaos! If a hacker gives a wild name, they could order the chef to make a dish that wasn't on the menu - no good! With this vulnerability, an attacker could run any command on the host system, which could lead to data breaches, unauthorized access, or even complete control of the system. That’s like handing over the keys to your whole kitchen without a second thought!

Put simply

Think of it like a restaurant that takes any name for a reservation and then announces it out loud, leading to chaos! If a hacker gives a wild name, they could order the chef to make a dish that wasn't on the menu - no good! This vulnerability arises from the FormatArguments method in ExternalCommandDestination.cs, which uses string.Format() to insert user-controlled filenames directly into shell commands without any sanitization, allowing for malicious commands to be executed.

What to do

With this vulnerability, an attacker could run any command on the host system, which could lead to data breaches, unauthorized access, or even complete control of the system. That’s like handing over the keys to your whole kitchen without a second thought! Upgrade Greenshot to version 1.3.311 immediately to mitigate this risk. Additionally, review any custom scripts or shell commands to ensure they do not rely on unsanitized user input. Always implement input sanitization as a best practice! You've got this! With a quick update, you’ll be back in control and keeping things safe! 🛡️

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01032 · 63.5th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-01-08T00:10Z
EPSS history
Timeline
  • 08 JAN 00:10Z
    Greenshot Vulnerable to OS Command Injection via ExternalCommand Plugin
    cvelistv5