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-2021-29923

CVE-2021-29923: Golang Go Auth Bypass Vulnerability

CVE-2021-29923 is an authentication bypass flaw in Golang Go that allows attackers to circumvent IP-based access controls through octal interpretation. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-29923 Overview

CVE-2021-29923 is an input validation vulnerability in the Go programming language affecting versions prior to 1.17. The vulnerability exists in how Go's net.ParseIP and net.ParseCIDR functions handle IP address octets with leading zero characters. When parsing IP addresses, Go does not properly consider extraneous zero characters at the beginning of an octet, leading to unexpected octal interpretation. This behavior can allow attackers to bypass IP-based access control mechanisms by crafting specially formatted IP addresses that parse differently than intended.

Critical Impact

Attackers can bypass IP-based access control lists (ACLs) and security restrictions by exploiting inconsistent IP address parsing, potentially gaining unauthorized access to protected resources.

Affected Products

  • Golang Go (versions before 1.17)
  • Oracle TimesTen In-Memory Database
  • Fedora Project Fedora 36

Discovery Timeline

  • 2021-08-07 - CVE CVE-2021-29923 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-29923

Vulnerability Analysis

The core issue lies in how Go's standard library interprets IP address octets containing leading zeros. In traditional IP address notation, leading zeros can indicate octal (base-8) representation rather than decimal (base-10). However, most users and security applications expect decimal interpretation. When an attacker provides an IP address like 0127.0.0.1 or 010.0.0.1, the Go net package may interpret these octets differently than the security controls intended.

This parsing inconsistency creates a security gap where applications performing IP-based allowlist/denylist checks could be bypassed. For example, if an application blocks access from 127.0.0.1, an attacker could potentially use 0177.0.0.1 (octal for 127) to circumvent the restriction, as the parsed IP differs from the blocked value despite representing the same address in some contexts.

Root Cause

The root cause is insufficient input validation in the net.ParseIP and net.ParseCIDR functions within Go's standard library. These functions do not properly reject or normalize IP address strings containing leading zeros in octets, creating ambiguity between octal and decimal interpretation. The lack of strict parsing allows attackers to craft IP addresses that evaluate to different values depending on the interpretation context.

Attack Vector

This vulnerability is exploitable over the network without authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying applications that use Go's net.ParseIP or net.ParseCIDR for IP-based access control decisions
  2. Crafting IP address strings with leading zero characters that exploit octal interpretation differences
  3. Submitting requests with these specially crafted IP addresses to bypass security restrictions
  4. Gaining unauthorized access to resources that should be protected by IP-based ACLs

The attack vector description demonstrates how parsing differences can lead to access control bypass. For detailed technical analysis, refer to the Sick Codes Security Advisory and the GitHub Issue #30999.

Detection Methods for CVE-2021-29923

Indicators of Compromise

  • HTTP requests or API calls containing IP addresses with unusual leading zeros (e.g., 010.0.0.1, 0127.0.0.1)
  • Access log entries showing requests from IP addresses with octal-style formatting attempting to access restricted endpoints
  • Authentication or authorization bypass attempts correlating with non-standard IP address representations

Detection Strategies

  • Implement log analysis rules to detect IP addresses containing leading zeros in any octet
  • Deploy web application firewall (WAF) rules that flag requests with malformed or non-standard IP address formats
  • Create SIEM correlation rules to identify access control bypass attempts where IP validation may be circumvented
  • Review application code for usage of net.ParseIP or net.ParseCIDR in security-critical contexts

Monitoring Recommendations

  • Monitor application logs for IP parsing errors or warnings related to malformed IP addresses
  • Track access patterns to restricted resources, particularly from IP addresses that don't match standard decimal notation
  • Enable verbose logging for IP-based access control components to capture parsing behavior

How to Mitigate CVE-2021-29923

Immediate Actions Required

  • Upgrade Go to version 1.17 or later where this vulnerability has been addressed
  • Review and audit all code using net.ParseIP and net.ParseCIDR for security-sensitive operations
  • Implement additional input validation to reject IP addresses containing leading zeros before passing to Go's parsing functions
  • Consider using alternative IP parsing libraries that enforce strict decimal interpretation

Patch Information

The vulnerability has been addressed in Go version 1.17 and later. Oracle has released fixes as part of the Oracle January 2022 Critical Patch Update for affected Oracle products. The official Go code change can be reviewed in the Go Code Review Update. Fedora users should apply available updates per the Fedora Package Announcement. Gentoo users should reference Gentoo GLSA 2022-08-02.

Workarounds

  • Implement pre-validation logic that rejects IP addresses with leading zeros before passing them to Go's net package
  • Use regular expressions to normalize IP addresses by removing leading zeros before parsing
  • Deploy network-layer IP filtering that operates on normalized IP representations rather than string-based matching
bash
# Example: Update Go to patched version
go version  # Check current version
# If below 1.17, upgrade Go installation
# Download from https://golang.org/dl/ and install Go 1.17+

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGolang

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • DEF CON 29 Speaker Info

  • GitHub Issue #30999

  • GitHub Issue #43389

  • Sick Codes Security Advisory

  • Fedora Package Announcement

  • Gentoo GLSA 2022-08-02
  • Vendor Resources
  • Go Code Review Update

  • Go Net Package Documentation

  • Oracle January 2022 CPU Alert
  • Related CVEs
  • CVE-2025-68121: Golang Go Auth Bypass Vulnerability

  • CVE-2024-45337: Go SSH Library Auth Bypass Vulnerability

  • CVE-2022-23773: Golang Go Auth Bypass Vulnerability

  • CVE-2025-47911: Go html.Parse DoS 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