Greenshot < 1.3.311 OS Command Injection (GHSA-7hvw-q8q5-gpmj)

high Nessus Plugin ID 300181

Synopsis

The remote Windows host has an application installed which is affected by a command injection vulnerability.

Description

The Greenshot installation on the remote Windows host is prior to 1.3.311. It is, therefore, affected by a command injection vulnerability:

- The FormatArguments method in ExternalCommandDestination.cs 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. (CVE-2026-22035)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Greenshot version 1.3.311 or later.

See Also

http://www.nessus.org/u?46341c1c

Plugin Details

Severity: High

ID: 300181

File Name: greenshot_1_3_311.nasl

Version: 1.1

Type: local

Agent: windows

Family: Windows

Published: 3/2/2026

Updated: 3/2/2026

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Vector: CVSS2#AV:L/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-22035

CVSS v3

Risk Factor: High

Base Score: 7.3

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: cpe:/a:greenshot:greenshot

Required KB Items: installed_sw/Greenshot

Patch Publication Date: 1/7/2026

Vulnerability Publication Date: 1/7/2026

Reference Information

CVE: CVE-2026-22035