{"id":"CVE-2026-3580","summary":"Compiler-induced timing leak in sp_256_get_entry_256_9 on RISC-V","details":"In wolfSSL 5.8.4, constant-time masking logic in sp_256_get_entry_256_9 is optimized into conditional branches (bnez) by GCC when targeting RISC-V RV32I with -O3. This transformation breaks the side-channel resistance of ECC scalar multiplication, potentially allowing a local attacker to recover secret keys via timing analysis.","modified":"2026-08-12T03:51:14.837050564Z","published":"2026-03-19T19:46:58.783Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3580.json","cna_assigner":"wolfSSL","cwe_ids":["CWE-203"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3580.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3580"},{"type":"FIX","url":"https://github.com/wolfSSL/wolfssl/pull/9855"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wolfssl/wolfssl","events":[{"introduced":"59f4fa568615396fbf381b073b220d1e8d61e4c2"},{"fixed":"922d04b3568c6428a9fb905ddee3ef5a68db3108"}],"database_specific":{"cpe":"cpe:2.3:a:wolfssl:wolfssl:5.8.4:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"5.9.0"},{"introduced":"5.8.4"},{"last_affected":"5.8.4"}],"source":["AFFECTED_FIELD","CPE_STRING"]}}],"versions":["5.8.4","v5.8.4-stable","wolfEntropy2d"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-3580.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N"}]}