PT-2026-150387
CVE-2026-121481
·
Published
2026-11-18
·
Updated
2026-11-26
Description by
CVSS 3.1
5.9
MediumMetricsAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
OpenSSL versions 4.0.0 through 4.0.3
OpenSSL version 4.1.0
Description
An integer overflow exists in the
EVP EncodeBlock() function, which is used to base64-encode a buffer into a caller-allocated output buffer. When the input length is close to INT MAX (approximately 2 GB), the arithmetic used to calculate the required encoded output size overflows a signed integer. This causes the function to write more data than the allocated buffer can hold, resulting in a heap buffer overflow. This can lead to memory corruption or application crashes. The issue is most likely to affect applications that accept an attacker-controlled length and pass it to EVP EncodeBlock() without performing their own bound checks. OpenSSL's internal TLS, QUIC, and CMS implementations are not affected as they do not encode buffers of this size.Recommendations
Update OpenSSL versions 4.0.0 through 4.0.3 to version 4.0.4.
Update OpenSSL version 4.1.0 to version 4.1.1.
As a temporary mitigation, cap input sizes before encoding to ensure they do not approach
INT MAX.
Restrict or review the use of the EVP EncodeBlock() function in applications that process untrusted or exceptionally large inputs. Found an issue in the description? Have something to add? Feel free to write us 👾