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-2022-29458

CVE-2022-29458: GNU Ncurses Buffer Overflow Vulnerability

CVE-2022-29458 is a buffer overflow flaw in GNU Ncurses 6.3 affecting the terminfo library. The out-of-bounds read can cause segmentation violations. This article covers technical details, affected versions, and patches.

Published: February 18, 2026

CVE-2022-29458 Overview

CVE-2022-29458 is an out-of-bounds read vulnerability affecting the ncurses library version 6.3 before patch 20220416. The vulnerability exists in the convert_strings function within tinfo/read_entry.c in the terminfo library. When exploited, this flaw can cause a segmentation violation, potentially leading to information disclosure or application crashes.

Critical Impact

This out-of-bounds read vulnerability in the widely-used ncurses terminfo library can result in unauthorized memory access and denial of service through segmentation faults, affecting multiple operating systems including macOS and Debian Linux.

Affected Products

  • GNU ncurses versions prior to 6.3 patch 20220416
  • Apple macOS (affected versions addressed in HT213488)
  • Debian Linux 10.0

Discovery Timeline

  • 2022-04-18 - CVE-2022-29458 published to NVD
  • 2025-06-09 - Last updated in NVD database

Technical Details for CVE-2022-29458

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-Bounds Read), a memory safety issue that occurs when a program reads data past the boundary of an allocated buffer. The flaw resides specifically in the convert_strings function within the terminfo library component of ncurses.

The terminfo library is responsible for providing a terminal-independent method for accessing terminal capabilities. When processing malformed or specially crafted terminfo database entries, the convert_strings function fails to properly validate buffer boundaries, resulting in an out-of-bounds read operation. This memory access violation triggers a segmentation fault, causing the application to crash.

The vulnerability requires local access and some level of user interaction to exploit, as an attacker would need to introduce a malicious terminfo entry that gets processed by an application using the ncurses library.

Root Cause

The root cause of CVE-2022-29458 lies in insufficient bounds checking within the convert_strings function in tinfo/read_entry.c. The function processes string data from terminfo entries without adequately validating that read operations remain within the allocated buffer boundaries. When the function encounters malformed input data, it attempts to read beyond the buffer's allocated memory space, triggering an out-of-bounds read condition.

Attack Vector

The attack vector for this vulnerability is local, meaning an attacker requires access to the target system to exploit it. Exploitation typically involves:

  1. Crafting a malicious terminfo database entry with malformed string data
  2. Placing this entry where it will be processed by applications using the ncurses library
  3. Triggering an application to parse the malicious terminfo entry, causing the out-of-bounds read

The vulnerability can lead to information disclosure if sensitive memory contents are leaked, or denial of service through application crashes caused by segmentation violations. For detailed technical information about the vulnerability mechanism, refer to the GNU Bug Report.

Detection Methods for CVE-2022-29458

Indicators of Compromise

  • Unexpected segmentation faults or crashes in applications utilizing the ncurses library
  • Abnormal terminfo database files or entries in /usr/share/terminfo/ or user-specific terminfo directories
  • Application logs showing memory access violations related to terminfo parsing
  • Unusual file modifications in terminfo database locations

Detection Strategies

  • Monitor system logs for segmentation fault signals (SIGSEGV) in applications linked against ncurses
  • Implement file integrity monitoring on terminfo database directories
  • Use memory sanitizers (AddressSanitizer, Valgrind) during application testing to detect out-of-bounds reads
  • Deploy endpoint detection and response (EDR) solutions capable of detecting memory access anomalies

Monitoring Recommendations

  • Enable crash reporting and analysis for applications using the ncurses library
  • Implement centralized logging to correlate potential exploitation attempts across systems
  • Monitor for unauthorized modifications to terminfo database files
  • Track package versions to identify systems running vulnerable ncurses versions

How to Mitigate CVE-2022-29458

Immediate Actions Required

  • Update ncurses to version 6.3 with patch 20220416 or later immediately
  • For Apple macOS systems, apply the security update referenced in Apple Support Article HT213488
  • For Debian Linux systems, apply updates as detailed in the Debian LTS Security Announcement
  • Inventory all systems running applications that depend on the ncurses library
  • Prioritize patching for systems where untrusted users may be able to introduce custom terminfo entries

Patch Information

GNU has released patch 20220416 for ncurses 6.3 that addresses this vulnerability. The fix implements proper bounds checking in the convert_strings function to prevent out-of-bounds read operations. Vendor-specific patches are available from:

  • GNU ncurses Bug Report - Original patch information
  • Apple Security Updates - macOS security update
  • Debian Security Advisory - Debian Linux packages

Workarounds

  • Restrict write access to terminfo database directories to trusted administrators only
  • Disable user-specific terminfo directories where possible by restricting TERMINFO environment variable
  • Implement application sandboxing to limit the impact of potential crashes
  • Consider using static terminfo configurations in controlled environments
bash
# Verify ncurses version and check for vulnerability
ncurses6-config --version

# Restrict terminfo directory permissions (Linux/Unix)
chmod 755 /usr/share/terminfo
chmod 755 /lib/terminfo

# Disable user-specific terminfo in shell profiles
# Add to /etc/profile or user shell configuration
unset TERMINFO

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechGnu Ncurses

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • Full Disclosure Mailing List Post

  • Full Disclosure Mailing List Post

  • Debian LTS Security Announcement

  • Apple Support Article
  • Vendor Resources
  • GNU Bug Report

  • GNU Bug Report
  • Related CVEs
  • CVE-2023-29491: Gnu Ncurses Privilege Escalation Flaw
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