A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-45803

CVE-2026-45803: GitHub CLI Terminal Injection Vulnerability

CVE-2026-45803 is a terminal escape sequence injection flaw in GitHub CLI that allows attackers to inject malicious commands via workflow logs. This article covers technical details, affected versions, and mitigation steps.

Published: May 21, 2026

CVE-2026-45803 Overview

CVE-2026-45803 is a terminal escape sequence injection vulnerability in GitHub CLI (gh), GitHub's official command line tool. The flaw affects versions from 1.6.0 to before 2.92.0. When users run gh run view --log or gh run view --log-failed to inspect GitHub Actions workflow logs, the CLI streams raw log output to stdout or the configured pager without sanitizing terminal control sequences. An attacker who can influence Actions log content, such as through a pull request triggered workflow, can embed escape sequences that execute when a victim reviews the run. The issue is tracked under CWE-150 and is fixed in version 2.92.0.

Critical Impact

Injected escape sequences can alter terminal window titles, manipulate on-screen content, and in some emulators such as screen, potentially execute arbitrary commands on the viewer's host.

Affected Products

  • GitHub CLI (gh) versions 1.6.0 through 2.91.x
  • GitHub Actions workflow log consumers using vulnerable gh releases
  • Terminal emulators rendering unsanitized control sequences (including screen)

Discovery Timeline

  • 2026-05-15 - CVE-2026-45803 published to NVD
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2026-45803

Vulnerability Analysis

The vulnerability stems from how GitHub CLI processes raw output from the Actions logs API. The gh run view --log and gh run view --log-failed subcommands forward log bytes directly to the user's terminal or pager. The client performs no filtering of ANSI escape sequences, OSC commands, or other control characters embedded in log lines.

GitHub Actions logs frequently contain attacker-controlled data. Any step that prints user input, repository content, or pull request metadata becomes a vehicle for injection. When the victim inspects the run output locally, the terminal interprets embedded sequences as commands rather than text. This converts a log review action into a client-side execution primitive scoped to the capabilities of the rendering terminal.

Root Cause

The root cause is missing neutralization of CRLF and control sequences in output destined for an interactive terminal, classified under CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences. The CLI treats Actions log streams as trusted byte streams instead of untrusted content requiring sanitization before display.

Attack Vector

An attacker authors a workflow step, pull request, or any input that lands in Actions log output. The payload contains escape sequences such as OSC title-setting codes, cursor manipulation codes, or terminal-specific command injection sequences targeting emulators like GNU screen. When a maintainer or developer runs gh run view --log against the affected run, the terminal renders the payload. Impact ranges from cosmetic title changes and overwritten screen regions to arbitrary command execution on terminals that expose execution-capable control sequences. Exploitation requires user interaction and low privileges on the attacker side, consistent with the published CVSS vector.

No verified proof-of-concept code is available. See the GitHub Security Advisory GHSA-crc3-h8v6-qh57 for vendor technical details.

Detection Methods for CVE-2026-45803

Indicators of Compromise

  • Unexpected changes to terminal window titles immediately after running gh run view --log or gh run view --log-failed
  • Workflow log lines containing ESC (0x1B) bytes, OSC sequences (ESC ]), or CSI sequences (ESC [) originating from pull request controlled steps
  • Shell history entries showing commands the user did not type following a gh run view invocation

Detection Strategies

  • Scan local gh binaries and CI runner images for installed versions below 2.92.0
  • Inspect Actions workflow definitions that print untrusted input such as PR titles, branch names, or commit messages without escaping
  • Pipe gh run view --log output through a control-character filter such as cat -v or sed 's/\\x1b/^[/g' during review to surface embedded sequences

Monitoring Recommendations

  • Track GitHub CLI version inventory across developer workstations and build systems
  • Alert on execution of gh run view --log against workflow runs triggered by external pull requests
  • Forward terminal session logs from privileged developer hosts to a centralized log store for retrospective analysis

How to Mitigate CVE-2026-45803

Immediate Actions Required

  • Upgrade GitHub CLI to version 2.92.0 or later on all developer endpoints, CI runners, and container images
  • Audit recent uses of gh run view --log and gh run view --log-failed against runs from untrusted contributors
  • Restrict execution of workflows triggered by external pull requests in repositories with sensitive maintainer activity

Patch Information

GitHub fixed the issue in gh release 2.92.0. The patched version sanitizes terminal control sequences before writing Actions log output to stdout or the pager. Refer to the GitHub Security Advisory GHSA-crc3-h8v6-qh57 for release notes and patch details.

Workarounds

  • Avoid running gh run view --log or gh run view --log-failed until upgrading; review logs through the GitHub web UI instead
  • Redirect CLI output through a sanitizer, for example gh run view --log | cat -v, to neutralize escape sequences
  • Configure a pager such as less -R only with explicit awareness of its handling of control characters, or disable colorized pagers when reviewing untrusted runs
bash
# Configuration example
# Upgrade gh on macOS via Homebrew
brew update && brew upgrade gh

# Upgrade gh on Debian/Ubuntu
sudo apt update && sudo apt install --only-upgrade gh

# Verify the installed version is 2.92.0 or later
gh --version

# Safer log review until all systems are patched
gh run view <run-id> --log | cat -v

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGithub Cli

  • SeverityLOW

  • CVSS Score3.5

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-150
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-52308: GitHub CLI RCE Vulnerability

  • CVE-2024-53858: GitHub CLI Token Leakage Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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