Greenshot up to 1.3.310 ExternalCommandDestination.cs FormatArguments os command injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.4 | $0-$5k | 0.00 |
Summary
A vulnerability was found in Greenshot up to 1.3.310 and classified as critical. This impacts the function FormatArguments of the file ExternalCommandDestination.cs. The manipulation results in os command injection.
This vulnerability was named CVE-2026-22035. The attack needs to be approached locally. There is no available exploit.
It is suggested to upgrade the affected component.
Details
A vulnerability was found in Greenshot up to 1.3.310. It has been classified as critical. Affected is the function FormatArguments of the file ExternalCommandDestination.cs. The manipulation with an unknown input leads to a os command injection vulnerability. CWE is classifying the issue as CWE-78. The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability is traded as CVE-2026-22035 since 01/05/2026. The exploitability is told to be difficult. The attack needs to be approached locally. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1202.
The vulnerability scanner Nessus provides a plugin with the ID 300181 (Greenshot < 1.3.311 OS Command Injection (GHSA-7hvw-q8q5-gpmj)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 1.3.311 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 5dedd5c9f0a9896fa0af1d4980d875a48bf432cb is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at CNNVD (CNNVD-202601-1574) and Tenable (300181). VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Name
Version
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.5VulDB Meta Temp Score: 6.4
VulDB Base Score: 4.5
VulDB Temp Score: 4.3
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 7.3
NVD Vector: 🔒
CNA Base Score: 7.7
CNA Vector (GitHub_M): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Os command injectionCWE: CWE-78 / CWE-77 / CWE-74
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: Partially
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 300181
Nessus Name: Greenshot < 1.3.311 OS Command Injection (GHSA-7hvw-q8q5-gpmj)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: Greenshot 1.3.311
Patch: 5dedd5c9f0a9896fa0af1d4980d875a48bf432cb
Timeline
01/05/2026 CVE reserved01/08/2026 Advisory disclosed
01/08/2026 VulDB entry created
03/02/2026 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-7hvw-q8q5-gpmj
Status: Confirmed
CVE: CVE-2026-22035 (🔒)
GCVE (CVE): GCVE-0-2026-22035
GCVE (VulDB): GCVE-100-340008
CNNVD: CNNVD-202601-1574 - GreenShot 安全漏洞
Entry
Created: 01/08/2026 08:06Updated: 03/02/2026 18:22
Changes: 01/08/2026 08:06 (68), 01/09/2026 15:28 (6), 01/10/2026 16:41 (1), 01/11/2026 22:43 (1), 01/28/2026 01:01 (11), 03/02/2026 18:22 (2)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.