A heap buffer overflow vulnerability in OpenSSL's Base64 encoding function can corrupt application memory when processing very large inputs This article explores overflow vulnerability openssl. . The flaw, identified as CVE-2026-121481, was disclosed on November 18, 2026, with a critical CVSS 3.1 score of 9.8.

Base64 encoding produces four output bytes for every three input bytes, with padding for a partial group.

This vulnerability is different from the OpenSSL flaw that could leak server memory: the Base64 bug writes outside a buffer, whereas the earlier DTLS flaw reads data outside one. While the use of OpenSSL for encrypted connections doesn't inherently address this issue, teams must examine where their applications call the function and assess the size limits before encoding begins. The CVE (Common Vulnerability and Exposures) record indicates that OpenSSL versions 4.0.0 through 4.0.3, as well as 4.1.0, are affected.

Ubuntu's security tracker has assigned the issue a Medium priority and lists the main openssl packages in Ubuntu as needing evaluation. For developers, the OpenSSL encoding documentation explains that callers must reserve space for the encoded data and a final zero byte that marks the end of the string. When dealing with large files, it's advisable to use an encoding interface that handles data in smaller chunks rather than processing the entire file in one go.