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-2026-40199

CVE-2026-40199: Net::CIDR::Lite Auth Bypass Vulnerability

CVE-2026-40199 is an authentication bypass flaw in Net::CIDR::Lite for Perl that mishandles IPv4 mapped IPv6 addresses, allowing IP ACL bypass. This article covers the technical details, affected versions, and mitigations.

Published: April 17, 2026

CVE-2026-40199 Overview

CVE-2026-40199 is an input validation vulnerability in Net::CIDR::Lite, a Perl module used for performing CIDR (Classless Inter-Domain Routing) address manipulation. Versions before 0.23 mishandle IPv4 mapped IPv6 addresses, which may allow IP-based Access Control List (ACL) bypass.

The vulnerability exists in the _pack_ipv6() function, which incorrectly includes a sentinel byte from _pack_ipv4() when building the packed representation of IPv4 mapped addresses in the format ::ffff:x.x.x.x. This produces an 18-byte value instead of the expected 17 bytes, causing misalignment of the IPv4 portion of the address.

Critical Impact

Attackers can bypass IP-based access controls by exploiting incorrect address matching behavior, potentially gaining unauthorized access to protected resources or bypassing network security policies.

Affected Products

  • Net::CIDR::Lite versions prior to 0.23 for Perl

Discovery Timeline

  • 2026-04-10 - CVE-2026-40199 published to NVD
  • 2026-04-13 - Last updated in NVD database

Technical Details for CVE-2026-40199

Vulnerability Analysis

The root cause of this vulnerability lies in improper length handling during IPv6 address packing operations. When processing RFC 4291 compliant IPv4 mapped IPv6 addresses (formatted as ::ffff:x.x.x.x), the _pack_ipv6() function erroneously incorporates a sentinel byte originating from the _pack_ipv4() function.

This sentinel byte inclusion results in a packed address representation of 18 bytes rather than the correct 17-byte length. The length mismatch has cascading effects on subsequent operations that rely on precise byte alignment for proper address comparison and manipulation.

Root Cause

The vulnerability stems from improper buffer length calculation in the _pack_ipv6() function when handling IPv4 mapped addresses. The function fails to properly exclude the sentinel byte that _pack_ipv4() appends, leading to an off-by-one error in the packed address representation. This falls under CWE-130 (Improper Handling of Length Parameter Inconsistency).

Attack Vector

The incorrect packed address length causes two distinct failure modes:

Mask Operations Failure: When performing bitwise AND operations for CIDR mask calculations, Perl truncates to the shorter operand. This causes incorrect subnet boundary calculations when comparing addresses against CIDR ranges.

String Comparison Failure: The find() and bin_find() methods rely on Perl's string comparison operators (lt/gt) for address matching. The misaligned byte structure causes these comparisons to produce incorrect results, leading to false positives or false negatives in address lookups.

An attacker can exploit this by using valid RFC 4291 IPv4 mapped addresses to bypass IP-based ACLs. For example, an address like ::ffff:192.168.2.0 might incorrectly match against a CIDR range of ::ffff:192.168.1.0/120, granting unauthorized access to protected resources.

This vulnerability is related to CVE-2026-40198, which affects the same function but involves malformed IPv6 addresses rather than valid IPv4 mapped addresses.

Detection Methods for CVE-2026-40199

Indicators of Compromise

  • Unexpected access granted to resources protected by IP-based ACLs using Net::CIDR::Lite
  • Log entries showing IPv4 mapped IPv6 addresses (::ffff:x.x.x.x) accessing restricted resources
  • Inconsistent IP filtering behavior when comparing applications using different CIDR parsing libraries

Detection Strategies

  • Audit Perl applications for Net::CIDR::Lite module usage and verify version is 0.23 or later
  • Review firewall and application logs for access attempts using IPv4 mapped IPv6 address formats
  • Implement automated dependency scanning to identify vulnerable Net::CIDR::Lite installations across your environment

Monitoring Recommendations

  • Enable detailed logging for IP-based access control decisions in applications using Net::CIDR::Lite
  • Monitor for unusual access patterns involving IPv4 mapped IPv6 addresses in network traffic
  • Set up alerts for access control bypass attempts that correlate with IPv6 address usage

How to Mitigate CVE-2026-40199

Immediate Actions Required

  • Upgrade Net::CIDR::Lite to version 0.23 or later immediately
  • Audit all Perl applications using Net::CIDR::Lite for IP-based access control functionality
  • Review access logs for any evidence of ACL bypass attempts using IPv4 mapped IPv6 addresses
  • Consider implementing defense-in-depth by adding secondary IP validation mechanisms

Patch Information

The vulnerability has been addressed in Net::CIDR::Lite version 0.23. The patch is available through the GitHub Patch Commit. Release notes and changelog are available on MetaCPAN Changes Log.

Organizations should update via CPAN:

bash
cpan Net::CIDR::Lite

Or using cpanminus:

bash
cpanm Net::CIDR::Lite

Workarounds

  • Avoid using IPv4 mapped IPv6 addresses (::ffff:x.x.x.x) in CIDR definitions until patched
  • Implement additional IP validation layers outside of Net::CIDR::Lite for critical access control decisions
  • Convert IPv4 mapped IPv6 addresses to native IPv4 format before processing through Net::CIDR::Lite
bash
# Verify installed Net::CIDR::Lite version
perl -MNet::CIDR::Lite -e 'print $Net::CIDR::Lite::VERSION, "\n"'

# Update to patched version
cpanm Net::CIDR::Lite@0.23

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechPerl

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-130
  • Technical References
  • GitHub Patch Commit

  • MetaCPAN Changes Log

  • CVE-2026-40198 Record
  • Related CVEs
  • CVE-2026-40198: Net::CIDR::Lite Auth Bypass Vulnerability

  • CVE-2025-40928: JSON::XS Perl DoS Vulnerability

  • CVE-2026-4176: Perl Compress::Raw::Zlib Vulnerability

  • CVE-2024-57854: Net::NSCA::Client Weak RNG 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