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

CVE-2026-5477: wolfCrypt CMAC Integer Overflow Vulnerability

CVE-2026-5477 is an integer overflow flaw in wolfCrypt CMAC implementation that allows attackers to forge CMAC tags after 4 GiB of data. This post covers technical details, affected versions, impact, and mitigation.

Published: April 17, 2026

CVE-2026-5477 Overview

An integer overflow vulnerability exists in the wolfCrypt CMAC (Cipher-based Message Authentication Code) implementation that allows attackers to forge CMAC authentication tags. The vulnerability resides in the wc_CmacUpdate function, which uses a guard condition if (cmac->totalSz != 0) to skip XOR-chaining on the first block. Because totalSz is defined as word32, it wraps to zero after 2^28 block flushes (approximately 4 GiB of processed data), causing the guard to erroneously discard the live CBC-MAC chain state. This enables a zero-work prefix-substitution forgery attack where any two messages sharing a common suffix beyond the 4 GiB boundary produce identical CMAC tags.

Critical Impact

Cryptographic authentication bypass allowing CMAC tag forgery without computational effort, undermining message integrity verification in systems processing large data volumes.

Affected Products

  • wolfSSL wolfCrypt library (versions prior to the fix)
  • Applications using wolfCrypt CMAC for message authentication
  • Systems processing messages exceeding 4 GiB through CMAC verification

Discovery Timeline

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

Technical Details for CVE-2026-5477

Vulnerability Analysis

This integer overflow vulnerability (CWE-190) affects the wolfCrypt CMAC implementation's state tracking mechanism. The core issue lies in how the wc_CmacUpdate function manages XOR-chaining operations during message authentication.

The function uses a conditional guard that checks whether totalSz equals zero to determine if XOR-chaining should be skipped on the first block—a valid optimization since the digest is all-zeros initially and the XOR operation would be a no-op. However, the totalSz variable is defined as a 32-bit unsigned integer (word32), which can only represent values up to 4,294,967,295 (2^32 - 1).

When processing data, the counter eventually wraps around to zero after 2^28 block flushes (each block being 16 bytes in AES-CMAC), equivalent to processing approximately 4 GiB of data. This wraparound causes the guard condition to evaluate as true again, incorrectly treating subsequent blocks as if they were the first block and discarding the accumulated CBC-MAC chain state.

Root Cause

The root cause is an integer overflow in the totalSz counter variable used for state tracking in the CMAC implementation. The use of a fixed-width 32-bit integer without overflow protection creates a predictable wraparound condition. The conditional logic relying on this counter for critical cryptographic state management introduces a vulnerability when the counter overflows.

The fix removes the conditional guard entirely, making the XOR operation unconditional. This preserves the no-op property on the first block (since digest is zero-initialized by wc_InitCmac_ex) while eliminating the integer overflow attack vector.

Attack Vector

The attack exploits the network-accessible nature of services using wolfCrypt CMAC authentication. An attacker can craft two distinct messages that share a common suffix beyond the 4 GiB boundary. Due to the integer overflow causing the CBC-MAC state to reset, both messages will produce identical CMAC tags despite having different prefixes.

This enables a prefix-substitution forgery attack where an attacker can:

  1. Observe a valid message with its CMAC tag
  2. Construct a malicious message with the same suffix (beyond 4 GiB)
  3. Submit the forged message with the original tag
  4. The verification will succeed, bypassing authentication

The vulnerability requires no interaction from targeted users and can be exploited remotely over a network connection.

Detection Methods for CVE-2026-5477

Indicators of Compromise

  • Unexpected CMAC authentication successes for messages with distinct prefixes but matching tags
  • Large data processing sessions exceeding 4 GiB through CMAC verification routines
  • Anomalous patterns in authenticated message traffic suggesting prefix manipulation

Detection Strategies

  • Monitor for wolfSSL/wolfCrypt library versions prior to the security patch
  • Implement logging for CMAC verification operations on messages approaching or exceeding 4 GiB
  • Deploy network traffic analysis to identify suspicious patterns in authenticated communications
  • Audit systems for applications using wc_CmacUpdate with large cumulative data volumes

Monitoring Recommendations

  • Enable verbose logging for cryptographic operations in wolfCrypt-dependent applications
  • Set alerts for CMAC processing sessions approaching the 4 GiB threshold
  • Monitor for duplicate CMAC tags appearing across distinct messages
  • Implement integrity checking for critical authenticated data streams

How to Mitigate CVE-2026-5477

Immediate Actions Required

  • Update wolfSSL/wolfCrypt to the patched version that removes the vulnerable guard condition
  • Review and audit applications processing large data volumes through CMAC authentication
  • Consider implementing application-level message size limits below the 4 GiB threshold as a temporary measure
  • Verify the integrity of data authenticated via CMAC during the vulnerable period

Patch Information

The vulnerability has been addressed through a fix that removes the conditional guard in wc_CmacUpdate, making the XOR operation unconditional. Technical details and the patch implementation are available in the wolfSSL GitHub Pull Request. The fix preserves the no-op optimization for the first block through the zero-initialization performed by wc_InitCmac_ex rather than relying on the vulnerable counter check.

Workarounds

  • Implement application-level restrictions to prevent CMAC processing of data volumes exceeding 4 GiB per session
  • Partition large data streams into smaller authenticated segments below the overflow threshold
  • Consider using alternative authentication mechanisms (HMAC) for applications processing large data volumes until patching is complete
  • Monitor and audit CMAC operations for any signs of exploitation
bash
# Configuration example
# Verify wolfSSL version and check for vulnerable CMAC implementation
# List installed wolfSSL version
wolfssl-config --version

# Check for the patched wc_CmacUpdate function (after updating)
# Ensure unconditional XOR operation in CMAC processing
grep -n "totalSz" /path/to/wolfssl/wolfcrypt/src/cmac.c

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechWolfssl

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/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
  • AvailabilityNone
  • CWE References
  • CWE-190
  • Technical References
  • GitHub Pull Request
  • Related CVEs
  • CVE-2026-5188: wolfSSL Integer Underflow Vulnerability

  • CVE-2026-5500: wolfSSL AES-GCM Tag Truncation Vulnerability

  • CVE-2026-5446: wolfSSL ARIA-GCM Nonce Reuse Vulnerability

  • CVE-2026-5448: wolfSSL X.509 Buffer Overflow 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