Cloudanix VulnDB

CVE-2024-2881

High · 8.8

CVSS

8.8

EPSS

0.5%

Published

Aug 30, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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.

Chainable
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

  1. Gain co-residency on the same physical host as the target WolfSSL process
  2. Identify and trigger repeated calls to wc_ed25519_sign_msg
  3. Perform Rowhammer fault injection against the ed25519_key memory region
  4. 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