CVE-2024-1543
Medium · 5.5CVSS
5.5
EPSS
0.2%
Published
Aug 29, 2024
CISA due date
—
Cloudanix analysis
A cryptographic protection flaw in the wolfSSL library can let attackers in specialized secure computing environments bypass safeguards and potentially steal encryption keys.
- Exploitation
- Local Privilege
- Attacker needs
- High Privilege
- Complexity
- High
- Impact
- Data Exposure
- Component
- Library
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The side-channel protected T-Table implementation in wolfSSL up to 5.6.5 only defends against cache-line resolution attackers; in environments such as Intel SGX an attacker can obtain per-instruction sub-cache-line resolution and defeat the protection, enabling extraction of secret material during cryptographic operations.
Why it matters to the business
Organizations using wolfSSL inside SGX or similar high-resolution side-channel environments face risk of cryptographic key compromise, which can lead to loss of confidentiality for encrypted data and sessions without immediate operational disruption.
How an attack unfolds
An attacker first obtains code execution or observation capability inside the same SGX enclave or equivalent controlled environment, then monitors memory access patterns at sub-cache-line granularity during T-Table-based cryptographic operations to recover key material that the cache-line-level protection was intended to hide.
How to fix it
Upgrade wolfSSL to the commit 66596ad9e1d7efa8479656872cf09c9c1870a02e or a later release that removes the vulnerable T-Table implementation; rebuild and redeploy all dependent applications.
How to confirm the fix worked
Verify that running wolfSSL binaries or libraries report a version or commit hash at or after 66596ad9e1d7efa8479656872cf09c9c1870a02e; re-test cryptographic operations inside SGX with known side-channel tools to confirm absence of leakage.
Typical attack path
- Gain co-location or enclave access with the target wolfSSL process
- Trigger or observe repeated cryptographic operations using the vulnerable T-Table implementation
- Collect high-resolution cache or memory access traces
- Apply statistical analysis to extract secret keys or plaintext
How to detect it
Monitor SGX enclave logs and performance counters for anomalous cache-access patterns during cryptographic calls; correlate with process execution of wolfSSL-based binaries; post-exploitation indicators are limited because the attack is passive and leaves no persistent artifacts.
What your security team should do
- Immediately inventory all uses of wolfSSL inside SGX or comparable enclaves
- Prioritize upgrade to the fixed commit across all affected builds
- Review cryptographic usage patterns to determine exposure to side-channel threats
- Apply defense-in-depth controls such as constant-time implementations where possible
The record
The side-channel protected T-Table implementation in wolfSSL up to version 5.6.5 protects against a side-channel attacker with cache-line resolution. In a controlled environment such as Intel SGX, an attacker can gain a per instruction sub-cache-line resolution allowing them to break the cache-line-level protection. For details on the attack refer to: https://doi.org/10.46586/tches.v2024.i1.457-500
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | wolfssl | 0 | No fix |
| Debian:12 | wolfssl | 0 | No fix |
| Debian:13 | wolfssl | 0 | 5.6.6-1.2 |
| Debian:14 | wolfssl | 0 | 5.6.6-1.2 |
| 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 | No fix |
| Ubuntu:25.04 | wolfssl | 0 | No fix |
| Ubuntu:25.10 | wolfssl | 0 | No fix |
| 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-2881 Fault Injection vulnerability in wc_ed25519_sign_msg function in… Also affects wolfssl
- CVE-2024-1545 Fault Injection vulnerability in RsaPrivateDecryption function in… 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