{"id":"JLSEC-2026-727","aliases":["JLSEC-2026-727"],"related":["CVE-2026-5477","GHSA-grqc-3vmg-p68x","EUVD-2026-21305"],"kind":"vulnerability","state":"published","title":"An integer overflow existed in the wolfCrypt CMAC implementation, that could be exploited to forge...","summary":"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`.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"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`.","format":"markdown","source":"jlsec"}],"published":"2026-07-14T21:41:35.775Z","modified":"2026-07-25T18:24:49.566Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"Julia Security Advisories","scheme":"CVSS:4.0","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"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.9.2+0"}],"ecosystem":"Julia","package":"wolfSSL_jll","purl":"pkg:julia/wolfSSL_jll?uuid=98c43586-9870-5ae5-ab22-acc77b9bbdb5","source":"jlsec"}],"references":[{"url":"https://github.com/advisories/GHSA-grqc-3vmg-p68x","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/wolfSSL/wolfssl/pull/10102","tags":["web"],"sources":["jlsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5477","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-727","url":"https://osv.dev/vulnerability/JLSEC-2026-727","licence":"CC-BY-4.0","modified":"2026-07-25T18:24:49.566Z"}],"updatedAt":"2026-11-25T22:56:26.217Z"}