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-28391

CVE-2022-28391: BusyBox RCE Vulnerability via Netstat

CVE-2022-28391 is a remote code execution vulnerability in BusyBox that allows attackers to execute arbitrary code through crafted DNS PTR records. This article covers technical details, affected versions, and mitigations.

Published: February 17, 2026

CVE-2022-28391 Overview

CVE-2022-28391 is a remote code execution vulnerability in BusyBox through version 1.35.0. The vulnerability allows remote attackers to execute arbitrary code when the netstat utility is used to print a DNS PTR record's value to a VT-compatible terminal emulator. Alternatively, an attacker could exploit this flaw to manipulate the terminal's display colors, potentially enabling further social engineering attacks or obscuring malicious activity.

Critical Impact

Remote attackers can achieve arbitrary code execution through maliciously crafted DNS PTR records when BusyBox netstat output is displayed on VT-compatible terminals, affecting embedded systems, containers, and IoT devices commonly running BusyBox.

Affected Products

  • BusyBox versions up to and including 1.35.0
  • Alpine Linux distributions using vulnerable BusyBox packages
  • Embedded systems, containers, and IoT devices utilizing BusyBox utilities

Discovery Timeline

  • 2022-04-03 - CVE-2022-28391 published to NVD
  • 2025-06-09 - Last updated in NVD database

Technical Details for CVE-2022-28391

Vulnerability Analysis

This vulnerability exploits the trust relationship between BusyBox utilities and terminal emulators. When BusyBox's netstat command retrieves and displays DNS PTR records, it fails to sanitize the output before rendering it on VT-compatible terminals. Terminal emulators that support VT escape sequences can interpret specially crafted sequences embedded in DNS responses as commands, leading to arbitrary code execution.

The attack leverages a class of vulnerabilities known as "terminal escape injection" or "ANSI escape sequence attacks." VT-compatible terminals process escape sequences to control cursor positioning, text formatting, colors, and in some cases, execute system commands through features like OSC (Operating System Command) sequences.

Root Cause

The root cause is insufficient input sanitization in BusyBox's networking utilities. Specifically, the sockaddr2str function in libbb and the nslookup utility fail to ensure that only printable characters are output to the terminal. When DNS PTR records containing terminal escape sequences are resolved and displayed, these malicious sequences are passed directly to the terminal emulator without filtering.

The vulnerability falls under CWE-88 (Improper Neutralization of Argument Delimiters in a Command), as the escape sequences act as command delimiters that break out of the expected data context and into a command execution context within the terminal.

Attack Vector

The attack requires network-based interaction where an attacker controls DNS responses. The attack flow proceeds as follows:

  1. The attacker sets up a malicious DNS server or performs DNS spoofing
  2. The attacker configures a DNS PTR record containing terminal escape sequences designed to execute commands
  3. A victim system running BusyBox executes netstat with options that trigger reverse DNS lookups
  4. BusyBox queries the DNS server for PTR records
  5. The malicious response containing escape sequences is returned and displayed on the victim's terminal
  6. The VT-compatible terminal interprets the escape sequences, potentially executing attacker-controlled commands

User interaction is required as someone must initiate the netstat command and view its output on a vulnerable terminal. However, this is a common administrative task on systems running BusyBox, particularly in containerized and embedded environments.

Detection Methods for CVE-2022-28391

Indicators of Compromise

  • Unusual DNS PTR records containing non-printable characters or escape sequences (look for \\x1b or \033 byte patterns)
  • Unexpected terminal behavior such as color changes, cursor movement, or command execution when running network diagnostic tools
  • DNS query logs showing PTR lookups to suspicious or attacker-controlled domains
  • Process execution anomalies following netstat or nslookup operations

Detection Strategies

  • Monitor DNS traffic for PTR responses containing suspicious byte sequences, particularly escape characters (0x1b)
  • Implement endpoint detection rules to identify BusyBox processes spawning unexpected child processes
  • Deploy network intrusion detection signatures for DNS responses with embedded terminal escape sequences
  • Audit BusyBox version across containerized environments and embedded devices to identify vulnerable installations

Monitoring Recommendations

  • Enable verbose logging for DNS resolution activities on systems running BusyBox
  • Configure terminal emulators to log or alert on receipt of suspicious escape sequences where possible
  • Establish baseline behavioral patterns for BusyBox utilities to detect anomalous execution chains
  • Monitor for unauthorized modifications to terminal configuration files or environment variables

How to Mitigate CVE-2022-28391

Immediate Actions Required

  • Upgrade BusyBox to a patched version that sanitizes terminal output
  • Apply the Alpine Linux patches if running Alpine-based containers or systems
  • Restrict DNS resolution to trusted nameservers on sensitive systems
  • Configure terminal emulators to disable dangerous escape sequence handling where feasible

Patch Information

Alpine Linux has released patches addressing this vulnerability. The fixes ensure that only printable characters are output when displaying DNS-related information:

  • Alpine Linux BusyBox Patch 1 - Sanitizes sockaddr2str function output in libbb
  • Alpine Linux BusyBox Patch 2 - Sanitizes all printed strings in nslookup utility

For more details on the vulnerability and patches, see Alpine Linux Issue #13661.

Workarounds

  • Use alternative networking utilities that properly sanitize output, such as full GNU versions of netstat or ss
  • Configure systems to avoid reverse DNS lookups by using numeric options (e.g., netstat -n) when possible
  • Implement network-level filtering to detect and block DNS responses containing escape sequences
  • Consider using terminal emulators with restricted escape sequence support in sensitive environments
bash
# Configuration example - Use numeric output to avoid DNS PTR lookups
netstat -n

# Alternatively, use ss utility if available
ss -tuln

# For containerized environments, consider overriding BusyBox symlinks
# with full GNU utilities for security-critical operations

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechBusybox

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability3.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo

  • CWE-88
  • Vendor Resources
  • Alpine Linux BusyBox Patch 1

  • Alpine Linux BusyBox Patch 2

  • Alpine Linux Issue #13661
  • Related CVEs
  • CVE-2021-42377: Busybox Hush Applet RCE Vulnerability

  • CVE-2026-29126: IDC SFX2100 Privilege Escalation Flaw

  • CVE-2026-26157: BusyBox Path Traversal Vulnerability

  • CVE-2026-26158: BusyBox Privilege Escalation Vulnerability
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