CVE-2024-2881
High · 8.8CVSS
8.8
EPSS
0.5%
Published
Aug 30, 2024
CISA due date
—
Cloudanix analysis
A flaw in the WolfSSL cryptography library lets an attacker on the same computer tamper with digital signature operations to steal secrets or gain higher access rights.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Privilege Gain
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Other
- Effort
- Other
- Patch risk
- Other
What it actually does
Rowhammer-based fault injection against the ed25519_key structure during wc_ed25519_sign_msg execution allows an attacker sharing the same physical system to corrupt cryptographic state, resulting in information disclosure and privilege escalation.
Why it matters to the business
Organizations using WolfSSL for Ed25519 operations on shared hardware face elevated risk of credential or key compromise and unauthorized access, requiring urgent patching to maintain cryptographic integrity and system isolation.
How an attack unfolds
An attacker with co-residency on the same Linux or Windows host targets the wc_ed25519_sign_msg function, uses Rowhammer to induce bit flips in the ed25519_key structure, and leverages the resulting faulty signatures to extract sensitive key material or escalate privileges.
How to fix it
Update WolfSSL to the commit 8970ff4c34034dbb3594943d11f8c9d4c5512bd5 or later; rebuild and redeploy all dependent applications; verify the updated binary no longer contains the vulnerable ed25519.c code path.
How to confirm the fix worked
Confirm the running WolfSSL library reports a version containing commit 8970ff4c34034dbb3594943d11f8c9d4c5512bd5; perform static analysis or binary diffing to ensure the Rowhammer-vulnerable ed25519_key handling has been hardened.
Typical attack path
- Gain co-residency on the same physical host as the target WolfSSL process
- Identify and trigger repeated calls to wc_ed25519_sign_msg
- Perform Rowhammer fault injection against the ed25519_key memory region
- Observe corrupted signature output to recover key material or obtain elevated access
How to detect it
Review process execution and memory access logs for repeated calls to ed25519 signing functions from untrusted co-resident processes; look for anomalous signature outputs or unexpected privilege changes following cryptographic operations.
What your security team should do
- Immediately upgrade all WolfSSL instances to the fixed commit and rebuild dependent software
- Audit environments for any Ed25519 signing workloads running on shared hardware
- Implement memory encryption or hardware-backed isolation where Rowhammer attacks are a concern
- Monitor upstream WolfSSL releases for additional hardening against fault injection
The record
Fault Injection vulnerability in wc_ed25519_sign_msg function in wolfssl/wolfcrypt/src/ed25519.c in WolfSSL wolfssl5.6.6 on Linux/Windows allows remote attacker co-resides in the same system with a victim process to disclose information and escalate privileges via Rowhammer fault injection to the ed25519_key structure.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | wolfssl | 0 | No fix |
| Debian:12 | wolfssl | 0 | No fix |
| Debian:13 | wolfssl | 0 | 5.7.0-0.3 |
| Debian:14 | wolfssl | 0 | 5.7.0-0.3 |
| Ubuntu:16.04:LTS | wolfssl | 0 | No fix |
| Ubuntu:18.04:LTS | wolfssl | 0 | No fix |
| Ubuntu:20.04:LTS | wolfssl | 0 | No fix |
| Ubuntu:22.04:LTS | wolfssl | 0 | No fix |
| Ubuntu:24.04:LTS | wolfssl | 0 | No fix |
| Ubuntu:24.10 | wolfssl | 0 | 5.7.0-0.3 |
| Ubuntu:Pro:16.04:LTS | wolfssl | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | wolfssl | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | wolfssl | 0 | No fix |
Related vulnerabilities
- CVE-2024-1545 Fault Injection vulnerability in RsaPrivateDecryption function in… Also affects wolfssl
- CVE-2024-1543 The side-channel protected T-Table implementation in wolfSSL up to version 5.6.5 protects… Also affects wolfssl
- CVE-2024-5814 A malicious TLS1.2 server can force a TLS1.3 client with downgrade capability to use a… Also affects wolfssl
- CVE-2024-1544 Generating the ECDSA nonce k samples a random number r and then truncates this randomness… Also affects wolfssl
- CVE-2024-0901 Remotely executed SEGV and out of bounds read allows malicious packet sender to crash or… Also affects wolfssl
- CVE-2023-6936 In wolfSSL prior to 5.6.6, if callback functions are enabled (via the WOLFSSL_CALLBACKS… Also affects wolfssl
- CVE-2023-6937 wolfSSL prior to 5.6.6 did not check that messages in one (D)TLS record do not span key… Also affects wolfssl
- CVE-2017-13099 wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher… Also affects wolfssl