# JLSEC-2026-727: An integer overflow existed in the wolfCrypt CMAC implementation, that could be exploited to forge...

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-14T21:41:35.775Z
- Modified: 2026-07-25T18:24:49.566Z
- Related: CVE-2026-5477, GHSA-grqc-3vmg-p68x, EUVD-2026-21305

## 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`.

(As written by Julia Security Advisories.)

## Affected

- wolfSSL_jll (Julia): before 5.9.2+0

## Every score

- Julia Security Advisories: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Julia Security Advisories: CVSS:4.0 `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`

## References

- <https://github.com/advisories/GHSA-grqc-3vmg-p68x> (web)
- <https://github.com/wolfSSL/wolfssl/pull/10102> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-5477> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-727](https://osv.dev/vulnerability/JLSEC-2026-727), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2026-727 · Whole record: https://cve.day/JLSEC-2026-727.json · Rebuilt by cve.day 2026-11-25T22:56:26.217Z
