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

CVE-2022-30065: Busybox Use-After-Free Vulnerability

CVE-2022-30065 is a use-after-free vulnerability in Busybox 1.35-x awk applet that can cause denial of service or code execution. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 17, 2026

CVE-2022-30065 Overview

CVE-2022-30065 is a use-after-free vulnerability in BusyBox version 1.35.x's awk applet that can lead to denial of service and potentially arbitrary code execution. The vulnerability is triggered when processing a specially crafted awk pattern in the copyvar function. BusyBox is a widely deployed software suite providing common Unix utilities in a single executable, commonly used in embedded systems, IoT devices, and industrial control systems.

Critical Impact

This vulnerability allows local attackers to cause denial of service or potentially execute arbitrary code by convincing a user to process a malicious awk script, affecting embedded systems and industrial control infrastructure.

Affected Products

  • BusyBox 1.35.0
  • Siemens SCALANCE SC622-2C Firmware
  • Siemens SCALANCE SC626-2C Firmware
  • Siemens SCALANCE SC632-2C Firmware
  • Siemens SCALANCE SC636-2C Firmware
  • Siemens SCALANCE SC642-2C Firmware
  • Siemens SCALANCE SC646-2C Firmware

Discovery Timeline

  • May 18, 2022 - CVE-2022-30065 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-30065

Vulnerability Analysis

This use-after-free vulnerability (CWE-416) exists within the copyvar function of BusyBox's awk applet. Use-after-free vulnerabilities occur when memory is accessed after it has been freed, leading to undefined behavior. In this case, when the awk applet processes certain crafted patterns, it improperly references memory that has already been deallocated. This memory corruption can result in denial of service through application crashes, and under certain conditions, may allow an attacker to achieve code execution by manipulating the contents of the freed memory region before it is reused.

The vulnerability requires local access and user interaction—an attacker must convince a user or automated process to execute the awk applet with a malicious script. Given BusyBox's prevalence in embedded systems, IoT devices, and industrial control equipment like the affected Siemens SCALANCE series, the impact extends to critical infrastructure environments.

Root Cause

The root cause lies in improper memory management within the copyvar function of the awk applet. When processing specific awk patterns, the function fails to properly track memory allocation states, leading to a condition where a pointer to freed memory is subsequently dereferenced. This represents a classic use-after-free pattern where the application's memory lifecycle management does not correctly handle edge cases in pattern processing.

Attack Vector

The attack requires local access and user interaction. An attacker must craft a malicious awk pattern file and convince a target user or automated system to process it using BusyBox's awk applet. In embedded and IoT environments, this could potentially be achieved through:

  • Uploading malicious configuration files that are processed by awk
  • Exploiting web interfaces that allow file uploads processed by shell scripts
  • Social engineering users to run awk on attacker-controlled input

When the crafted awk pattern is processed by the vulnerable copyvar function, memory corruption occurs. Depending on heap layout and timing, this can result in a crash (denial of service) or potentially allow the attacker to gain control of program execution flow.

The vulnerability mechanism involves the copyvar function improperly handling memory references during awk pattern processing. When specific pattern constructs are encountered, the function may free memory and subsequently attempt to access it, leading to use-after-free conditions. For detailed technical analysis, refer to the BusyBox Bug Report #14781.

Detection Methods for CVE-2022-30065

Indicators of Compromise

  • Unexpected crashes or segmentation faults in BusyBox processes, particularly when executing awk operations
  • Abnormal awk script files with unusual pattern constructs appearing on systems
  • Core dumps from BusyBox indicating memory corruption in the awk applet
  • Unusual process behavior following awk execution on embedded devices

Detection Strategies

  • Monitor for BusyBox process crashes and analyze core dumps for evidence of use-after-free exploitation
  • Implement file integrity monitoring on systems running BusyBox to detect unauthorized script uploads
  • Deploy application-level monitoring to detect anomalous awk execution patterns
  • Use memory sanitizers or security-enhanced builds of BusyBox in development and testing environments

Monitoring Recommendations

  • Enable crash reporting and logging for BusyBox processes across embedded systems
  • Monitor Siemens SCALANCE devices for unexpected service disruptions or reboots
  • Implement network monitoring to detect potential malicious file uploads to affected devices
  • Review system logs for repeated awk execution failures that may indicate exploitation attempts

How to Mitigate CVE-2022-30065

Immediate Actions Required

  • Update BusyBox to a patched version that addresses CVE-2022-30065
  • Apply firmware updates for affected Siemens SCALANCE devices as per the Siemens Security Advisory SSA-333517
  • Restrict access to the awk applet on affected systems where possible
  • Audit systems for BusyBox version 1.35.0 and prioritize remediation
  • Implement network segmentation to limit exposure of vulnerable embedded devices

Patch Information

BusyBox maintainers have addressed this vulnerability in subsequent releases. Organizations should update to the latest stable version of BusyBox. For Siemens SCALANCE devices, consult the Siemens Security Advisory SSA-333517 for specific firmware versions containing the fix. The BusyBox Bug Report #14781 contains additional technical details about the patch.

Workarounds

  • If the awk applet is not required, consider rebuilding BusyBox without awk support using the configuration option CONFIG_AWK=n
  • Implement strict input validation and sanitization for any awk scripts processed on affected systems
  • Restrict execution permissions for the awk applet to only trusted users and processes
  • Deploy application whitelisting to prevent execution of unauthorized awk scripts
bash
# Configuration example - Rebuild BusyBox without awk applet
# In BusyBox configuration (make menuconfig):
# Disable: Editors -> awk
# Or add to .config:
echo "CONFIG_AWK=n" >> .config
make oldconfig
make

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechBusybox

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.51%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • BusyBox Bug Report #14781

  • Siemens Security Advisory SSA-333517
  • Related CVEs
  • CVE-2023-42365: BusyBox Use-After-Free Vulnerability

  • CVE-2023-42364: BusyBox Use-After-Free Vulnerability

  • CVE-2021-42385: Busybox Awk Use-After-Free Vulnerability

  • CVE-2021-42378: Busybox Awk Use-After-Free 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