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-2017-20229

CVE-2017-20229: Invisible-island Mawk Buffer Overflow

CVE-2017-20229 is a stack-based buffer overflow in Invisible-island Mawk 1.3.3-17 and earlier that enables arbitrary code execution. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 2, 2026

CVE-2017-20229 Overview

CVE-2017-20229 is a stack-based buffer overflow vulnerability affecting MAWK (Mike's AWK) version 1.3.3-17 and prior. The vulnerability exists due to inadequate boundary checks on user-supplied input, allowing attackers to craft malicious input that overflows the stack buffer. Successful exploitation enables attackers to execute arbitrary code by leveraging return-oriented programming (ROP) techniques to spawn a shell with application privileges.

Critical Impact

This vulnerability allows remote attackers to achieve arbitrary code execution on affected systems running vulnerable versions of MAWK, potentially leading to complete system compromise.

Affected Products

  • Invisible-island MAWK versions up to and including 1.3.3-17
  • Systems with MAWK installed as the default AWK implementation
  • Applications and scripts that process untrusted input through MAWK

Discovery Timeline

  • 2026-03-28 - CVE-2017-20229 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2017-20229

Vulnerability Analysis

This vulnerability is classified as CWE-787 (Out-of-Bounds Write), a memory corruption flaw where the application writes data past the boundaries of an allocated buffer on the stack. The root cause stems from insufficient validation of input length before copying data into fixed-size stack buffers within MAWK's parsing routines.

When processing AWK programs or input data, MAWK fails to properly validate the size of certain user-controlled input before storing it in stack-allocated buffers. An attacker can supply input that exceeds the expected buffer size, causing a stack buffer overflow condition that corrupts adjacent memory, including saved return addresses and frame pointers.

Root Cause

The vulnerability originates from missing or improper bounds checking during input processing operations in MAWK. The application allocates fixed-size buffers on the stack and copies user-supplied data without verifying that the input length does not exceed the buffer capacity. This classic stack-based buffer overflow condition allows attackers to overwrite critical stack data structures.

Attack Vector

The attack is network-accessible, requiring no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious AWK program or input data with oversized fields
  2. Submitting this input to a system running a vulnerable MAWK version
  3. Overflowing the stack buffer to overwrite the saved return address
  4. Executing a return-oriented programming (ROP) chain to bypass security controls
  5. Spawning a shell with the privileges of the MAWK process

Technical details and proof-of-concept information are available through the Exploit-DB #42357 entry and the VulnCheck Advisory on mawk Buffer Overflow.

Detection Methods for CVE-2017-20229

Indicators of Compromise

  • Unexpected MAWK process crashes or abnormal termination signals (SIGSEGV, SIGABRT)
  • Unusual child processes spawned by MAWK executables
  • Memory access violations in system logs related to MAWK execution
  • Suspicious shell activity originating from AWK interpreter processes

Detection Strategies

  • Monitor for MAWK process execution with unusually large input files or command-line arguments
  • Deploy application-level monitoring to detect stack-smashing protection (SSP) violations
  • Implement file integrity monitoring on MAWK binaries and configuration files
  • Use SentinelOne's behavioral AI engine to detect exploitation attempts and anomalous process spawning patterns

Monitoring Recommendations

  • Enable core dump analysis for MAWK-related crashes to identify exploitation attempts
  • Configure SIEM rules to alert on unusual process hierarchies involving MAWK
  • Monitor network traffic for large or malformed data being sent to systems running vulnerable MAWK versions
  • Deploy SentinelOne Singularity to gain real-time visibility into process behavior and memory manipulation attempts

How to Mitigate CVE-2017-20229

Immediate Actions Required

  • Upgrade MAWK to a version newer than 1.3.3-17 that contains the security fix
  • Where possible, replace MAWK with alternative AWK implementations (gawk, nawk) that are not affected
  • Restrict execution of MAWK with untrusted input using sandboxing or containerization
  • Apply operating system-level protections such as ASLR, DEP/NX, and stack canaries

Patch Information

Organizations should update to the latest version of MAWK available from the Invisible-island project. Refer to the VulnCheck Advisory on mawk Buffer Overflow for specific patching guidance and version recommendations.

Workarounds

  • Implement input validation and size restrictions before passing data to MAWK
  • Run MAWK processes in restricted environments with minimal privileges (principle of least privilege)
  • Use security wrappers or containers to isolate MAWK execution from critical system components
  • Consider disabling MAWK on systems where it is not required

For systems where immediate patching is not feasible, administrators can implement input sanitization at the application layer to limit the size and format of data processed by MAWK. Additionally, compiling MAWK with stack protection flags (-fstack-protector-strong) and enabling ASLR can increase exploitation difficulty, though these are defense-in-depth measures and not complete mitigations.

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechInvisible Island Mawk

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • Exploit-DB #42357

  • VulnCheck Advisory on mawk Buffer Overflow
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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