The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-22035

CVE-2026-22035: Greenshot Screenshot Utility RCE Vulnerability

CVE-2026-22035 is a remote code execution flaw in Greenshot screenshot utility affecting versions 1.3.310 and below. Attackers can execute arbitrary commands through malicious filenames. This article covers technical details, affected versions, impact, and mitigation steps.

Updated: January 22, 2026

CVE-2026-22035 Overview

CVE-2026-22035 is a command injection vulnerability in Greenshot, an open source Windows screenshot utility. Versions 1.3.310 and below are vulnerable 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.

Critical Impact

Attackers can achieve arbitrary command execution on the target system by exploiting the unsanitized filename processing in Greenshot's external command functionality. A successful attack requires local access and user interaction, but can lead to full system compromise with impacts to confidentiality, integrity, and availability extending beyond the vulnerable component.

Affected Products

  • Greenshot versions 1.3.310 and below
  • Windows systems running vulnerable Greenshot installations

Discovery Timeline

  • 2026-01-08 - CVE-2026-22035 published to NVD
  • 2026-01-08 - Last updated in NVD database

Technical Details for CVE-2026-22035

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The flaw exists in Greenshot's external command destination functionality, which allows users to configure external applications to process screenshots.

The vulnerable code path occurs when Greenshot passes filenames to external commands. The FormatArguments method in ExternalCommandDestination.cs directly interpolates user-controlled filename data into command strings using string.Format() without validating or sanitizing the input for shell metacharacters. This allows an attacker who can control the filename of a screenshot to inject arbitrary shell commands.

The local attack vector requires the attacker to either convince a user to save a screenshot with a malicious filename or manipulate filenames through another vector. While user interaction is required, successful exploitation can result in code execution in the context of the user running Greenshot, potentially leading to privilege escalation if combined with other techniques.

Root Cause

The root cause is insufficient input validation in the FormatArguments method. The original implementation directly passed the fullpath parameter to string.Format() without checking for dangerous shell metacharacters such as &, |, ;, $, backticks, parentheses, and other special characters that could break out of the intended command context.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious filename containing shell metacharacters. When Greenshot processes this filename through the external command feature, the metacharacters are interpreted by the shell, allowing command injection. For example, a filename containing ; malicious_command ; or $(malicious_command) patterns could execute arbitrary commands.

The patch introduces validation that blocks filenames containing dangerous characters:

csharp
         public static string FormatArguments(string arguments, string fullpath)
         {
-            return string.Format(arguments, fullpath);
+            // Validate filename doesn't contain shell metacharacters
+            char[] dangerousChars = { '&', '|', ';', '$', '`', '(', ')', '<', '>', '\n', '\r', '"', '\'', '\\' };
+
+            if (fullpath.IndexOfAny(dangerousChars) >= 0)
+            {
+                throw new ArgumentException(
+                    "Filename contains potentially dangerous characters. " +
+                    "For security reasons, filenames with shell metacharacters are not allowed."
+                );
+            }
+
+            // Validate arguments template doesn't use shell interpreters
+            if (arguments.Contains("cmd.exe") || arguments.Contains("powershell"))
+            {
+                LOG.Warn("ExternalCommand configured with shell interpreter - potential security risk");
+            }
+
+            // Additional: Ensure proper quoting
+            string safePath = fullpath.Replace("\"", "\\\"");
+
+            return string.Format(arguments, safePath);
         }

Source: GitHub Commit Update

Detection Methods for CVE-2026-22035

Indicators of Compromise

  • Screenshot files with unusual filenames containing shell metacharacters (&, |, ;, $, backticks)
  • Unexpected child processes spawned from Greenshot.exe
  • Command line executions originating from Greenshot containing suspicious command sequences

Detection Strategies

  • Monitor process creation events for child processes spawned by Greenshot
  • Alert on filenames containing shell metacharacters in screenshot directories
  • Use SentinelOne behavioral AI to detect anomalous command execution patterns from trusted applications
  • Implement endpoint detection rules for command injection patterns in process arguments

Monitoring Recommendations

  • Enable detailed process auditing on endpoints running Greenshot
  • Configure SentinelOne to monitor for unusual process chains originating from Greenshot.exe
  • Review external command configurations in Greenshot installations across the environment
  • Monitor for attempts to create files with shell metacharacters in filenames

How to Mitigate CVE-2026-22035

Immediate Actions Required

  • Update Greenshot to version 1.3.311 or later immediately
  • Audit external command configurations in Greenshot for potentially dangerous command templates
  • Review any custom external command integrations that may pass untrusted data to shell commands
  • Consider temporarily disabling the external command feature until patching is complete

Patch Information

The vulnerability has been fixed in Greenshot version 1.3.311. The patch implements input validation that rejects filenames containing dangerous shell metacharacters and adds proper escaping for quoted strings. Users should update immediately via the official release.

For technical details about the fix, refer to:

  • GitHub Security Advisory GHSA-7hvw-q8q5-gpmj
  • Security patch commit

Workarounds

  • Disable or remove external command integrations in Greenshot until patching is possible
  • Avoid using filenames from untrusted sources when saving screenshots
  • Restrict Greenshot's ability to execute external commands via application control policies
  • Use SentinelOne application control to restrict child process execution from Greenshot
bash
# Verify Greenshot version to ensure patch is applied
# Check installed version in Windows
wmic product where "name like '%Greenshot%'" get name,version

# Or check the executable directly
dir "C:\Program Files\Greenshot\Greenshot.exe"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGreenshot

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Commit Update

  • GitHub Release v1.3.311

  • GitHub Security Advisory GHSA-7hvw-q8q5-gpmj
  • Related CVEs
  • CVE-2026-25792: Greenshot Binary Hijacking Vulnerability

  • CVE-2023-34634: Greenshot RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English