wolfSSL CRL Parser Heap-Based and Stack-Based Buffer Overflow Vulnerabilities

Vulnerability

Two buffer overflow vulnerabilities have been identified in the wolfSSL CRL parser, specifically when handling CRL numbers. A heap-based buffer overflow can occur if the CRL number is incorrectly stored as a hexadecimal string, while a stack-based overflow can be triggered by CRL numbers of sufficient size. Both vulnerabilities involve out-of-bounds writes and can be exploited with carefully crafted CRLs. This issue affects wolfSSL builds that enable CRL support, particularly when a CRL from an untrusted source is loaded.

Impact

Exploitation of these vulnerabilities leads to heap-based and stack-based buffer overflows, allowing for arbitrary memory writes that could be exploited to execute arbitrary code or cause a crash.

Reproduction

To reproduce this vulnerability, load a CRL from an untrusted source into a wolfSSL build that has CRL support enabled. Ensure that the CRL contains a CRL number formatted as a hexadecimal string and is of a size that can trigger the stack-based overflow. The CRL parser will then improperly handle the CRL number, causing a buffer overflow.

Remediation

Users should update to the latest version of wolfSSL, where this vulnerability has been addressed.

Added: Mar 19, 2026, 6:20 PM
Updated: Mar 19, 2026, 6:20 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
1.3
exploitability
4.6
remediation
8.3
relevance
4.1
threat
1.6
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.