CVE-2026-5477
Last modified
CVE-2026-5477 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. An integer overflow existed in the wolfCrypt CMAC implementation, that could be exploited to forge CMAC tags. The function wc_CmacUpdate used the guard `if (cmac->totalSz != 0)` to skip XOR-chaining on the first block (where digest is all-zeros and the XOR is a no-op). However, totalSz is word32 and wraps to zero after 2^28 block flushes (4 GiB), causing the guard to erroneously discard the live CBC-MAC chain state. EPSS estimates a 0.42% chance of exploitation in the next 30 days.
Description
An integer overflow existed in the wolfCrypt CMAC implementation, that could be exploited to forge CMAC tags. The function wc_CmacUpdate used the guard `if (cmac->totalSz != 0)` to skip XOR-chaining on the first block (where digest is all-zeros and the XOR is a no-op). However, totalSz is word32 and wraps to zero after 2^28 block flushes (4 GiB), causing the guard to erroneously discard the live CBC-MAC chain state. Any two messages sharing a common suffix beyond the 4 GiB mark then produce identical CMAC tags, enabling a zero-work prefix-substitution forgery. The fix removes the guard, making the XOR unconditional; the no-op property on the first block is preserved because digest is zero-initialized by wc_InitCmac_ex.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Wolfssl | Wolfssl | <= 5.9.0 |
References
- https://github.com/wolfSSL/wolfssl/pull/10102Issue Tracking
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-5477?
How severe is CVE-2026-5477?
How do I fix CVE-2026-5477?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-54764Traefik is an HTTP reverse proxy and load balancer. Prior to…5.8
- CVE-2026-54765Traefik is an open source HTTP reverse proxy and load balanc…8.5
- CVE-2026-54766Vikunja is an open-source self-hosted task management platfo…5.3
- CVE-2026-54767WeGIA is a web manager for charitable institutions. Prior to…9.1
- CVE-2026-54768WPGraphQL provides a GraphQL API for WordPress sites. From 2…6.9
- CVE-2026-54769Langroid is a framework for building large-language-model-po…10
- CVE-2026-54770WebOb provides objects for HTTP requests and responses. Prio…6.1
- CVE-2026-54771Langroid is a framework for building large-language-model-po…8.1
- CVE-2026-54772CoreWCF is a port of the service side of Windows Communicati…7.5
- CVE-2026-54773CoreWCF is a port of the service side of Windows Communicati…5.9
- CVE-2026-54774CoreWCF is a port of the service side of Windows Communicati…7.4
- CVE-2026-54775CoreWCF is a port of the service side of Windows Communicati…6.5
Are you affected by CVE-2026-5477?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
