Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-22898

CVE-2021-22898: Haxx Curl Information Disclosure Flaw

CVE-2021-22898 is an information disclosure vulnerability in Haxx Curl versions 7.7 through 7.76.1 that exposes sensitive internal data through TELNET operations. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-22898 Overview

CVE-2021-22898 is an information disclosure vulnerability affecting curl versions 7.7 through 7.76.1. The vulnerability exists in the TELNET option parser when using the -t command line option (known as CURLOPT_TELNETOPTIONS in libcurl) to send variable=content pairs to TELNET servers. Due to a flaw in the option parser for sending NEW_ENV variables, libcurl could be made to pass uninitialized data from a stack-based buffer to the server, potentially revealing sensitive internal information over a clear-text network protocol.

Critical Impact

Uninitialized stack memory can be transmitted to remote TELNET servers, potentially exposing sensitive data such as memory contents, credentials, or other application data that resides in memory.

Affected Products

  • Haxx curl 7.7 through 7.76.1
  • Debian Linux 9.0
  • Fedora 33 and 34
  • Oracle Communications Cloud Native Core (Binding Support Function 1.11.0, Network Function Cloud Native Environment 1.10.0, Network Repository Function 1.15.0/1.15.1, Network Slice Selection Function 1.8.0, Service Communication Proxy 1.15.0)
  • Oracle Essbase
  • Oracle MySQL Server
  • Siemens SINEC Infrastructure Network Services
  • Splunk Universal Forwarder

Discovery Timeline

  • 2021-06-11 - CVE-2021-22898 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-22898

Vulnerability Analysis

This vulnerability is classified as Uninitialized Memory Use (CWE-909) and Information Exposure (CWE-200). The flaw resides in curl's TELNET option parsing code within lib/telnet.c. When processing NEW_ENV variable assignments intended for TELNET servers, the parser uses sscanf() to extract variable name and value pairs from user-provided input.

The root issue is that the sscanf() function's return value was not properly validated. The original code only checked if sscanf() returned a truthy value (any non-zero matches), rather than verifying that exactly two fields (varname and varval) were successfully parsed. This meant that if only one field was matched, the second field (varval) would contain uninitialized stack data, which would then be transmitted to the remote TELNET server.

Root Cause

The vulnerability stems from improper return value checking of the sscanf() function in the TELNET option parser. The sscanf() function returns the number of successfully matched and assigned input items. The original code treated any successful match (return value >= 1) as valid, when it should have required exactly two matches (return value == 2) to ensure both the variable name and value were properly parsed from the input string.

Attack Vector

Exploitation requires network access and user interaction. An attacker would need to convince a user to connect to a malicious TELNET server using curl with specifically crafted -t options. The attack scenario involves:

  1. User specifies a malformed variable assignment using the -t option (e.g., missing the value portion after the comma)
  2. The sscanf() parser only matches the variable name, leaving the value buffer uninitialized
  3. Curl transmits both the variable name and the uninitialized value buffer content to the TELNET server
  4. The malicious server receives potentially sensitive stack memory contents
c
         size_t tmplen = (strlen(v->data) + 1);
         /* Add the variable only if it fits */
         if(len + tmplen < (int)sizeof(temp)-6) {
-          if(sscanf(v->data, "%127[^,],%127s", varname, varval)) {
+          if(sscanf(v->data, "%127[^,],%127s", varname, varval) == 2) {
             msnprintf((char *)&temp[len], sizeof(temp) - len,
                       "%c%s%c%s", CURL_NEW_ENV_VAR, varname,
                       CURL_NEW_ENV_VALUE, varval);

Source: GitHub cURL Commit

Detection Methods for CVE-2021-22898

Indicators of Compromise

  • Outbound TELNET connections (port 23) from systems running vulnerable curl versions
  • Curl process invocations with the -t or --telnet-option command line parameters
  • Log entries showing malformed TELNET option strings with missing value components
  • Network traffic containing NEW_ENV TELNET negotiations with unusual or binary data in the value fields

Detection Strategies

  • Monitor for curl command execution with TELNET-related options using process auditing tools
  • Implement network traffic analysis to identify TELNET protocol connections originating from unexpected sources
  • Deploy file integrity monitoring on curl/libcurl binaries to ensure patched versions are in place
  • Use vulnerability scanning tools to identify systems running affected curl versions (7.7 through 7.76.1)

Monitoring Recommendations

  • Enable command-line auditing on endpoints to capture curl invocations with TELNET options
  • Configure network security monitoring to alert on TELNET traffic to external destinations
  • Establish baseline of legitimate TELNET usage and alert on deviations
  • Review system logs for curl-related errors or anomalous behavior patterns

How to Mitigate CVE-2021-22898

Immediate Actions Required

  • Upgrade curl to version 7.77.0 or later, which contains the security fix
  • If immediate upgrade is not possible, avoid using the -t/--telnet-option or CURLOPT_TELNETOPTIONS features
  • Review and restrict TELNET connectivity from systems where curl is used
  • Audit systems to identify all instances of vulnerable curl/libcurl installations

Patch Information

The fix was implemented in curl commit 39ce47f219b09c380b81f89fe54ac586c8db6bde. The patch corrects the sscanf() return value check in lib/telnet.c to require exactly 2 matches before proceeding with the variable transmission. Official patches are available through:

  • cURL CVE-2021-22898 Details
  • GitHub cURL Commit
  • Oracle CPU July 2021 Security Alert
  • Siemens Product Security Advisory
  • Debian Security Advisory DSA-5197

Workarounds

  • Disable or block TELNET protocol usage entirely if not required for business operations
  • Configure network firewalls to block outbound TELNET connections (TCP port 23)
  • Use application whitelisting to prevent curl from being invoked with TELNET options
  • Implement egress filtering to restrict curl network connections to approved destinations only
bash
# Configuration example - Block outbound TELNET at firewall level
# iptables rule to block outbound TELNET connections
iptables -A OUTPUT -p tcp --dport 23 -j DROP

# Verify curl version to ensure patched release
curl --version | head -1
# Should show curl 7.77.0 or later

# Alternative: Use curl without TELNET support (compile-time option)
# ./configure --disable-telnet

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechHaxx Curl

  • SeverityLOW

  • CVSS Score3.1

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200

  • CWE-909
  • Technical References
  • Apache Guacamole Thread Discussion

  • Debian LTS Announcement August 2021

  • Debian LTS Announcement August 2022

  • Fedora Package Announcement

  • Fedora Package Update Notice

  • Debian Security Advisory DSA-5197
  • Vendor Resources
  • Openwall Security Mailing List

  • Siemens Product Security Advisory

  • cURL CVE-2021-22898 Details

  • GitHub cURL Commit

  • HackerOne Security Report

  • Oracle CPU July 2021 Security Alert

  • Oracle CPU April 2022 Security Alert

  • Oracle CPU January 2022 Security Alert
  • Related CVEs
  • CVE-2026-3783: Haxx Curl Information Disclosure Vulnerability

  • CVE-2023-46219: Haxx Curl Information Disclosure Flaw

  • CVE-2024-11053: Haxx Curl Information Disclosure Flaw

  • CVE-2024-2398: Haxx Curl Information Disclosure Flaw
Default Legacy - Prefooter | 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