The OpenSSL project has shipped a fix for a critical buffer overflow in EVP_EncodeBlock(), the base64 encoding function used by a huge share of the internet's encrypted traffic. The vulnerability is tracked as CVE-2026-121481 and carries a CVSS score of 9.8, the highest severity band before a perfect 10.
The patch changes how the function behaves when it is handed bad data. Instead of processing input it cannot safely handle, EVP_EncodeBlock() now returns -1 when it receives a NULL input or output buffer, a negative length, or lengths that overflow the buffer. The change landed as pull request 33652 in the official openssl/openssl repository on GitHub, where the project's code, issues and releases are maintained.
OpenSSL patch closes a CVSS 9.8 hole
According to the repository entry, the fix addresses a buffer overflow triggered by invalid arguments to EVP_EncodeBlock(). Rather than attempting to encode malformed or oversized input, the function now fails fast. That behaviour matters for any application that calls the API without validating its own inputs first.
A buffer overflow in a cryptographic library is serious because base64 encoding sits inside TLS handshakes, certificate handling, email and countless authentication flows. A flaw at this layer can, in the wrong conditions, let an attacker corrupt memory in a process that is supposed to be trusted with secrets.
The CVSS 9.8 rating signals that administrators should treat this as urgent. OpenSSL has not been shy about such scores in the past — the project's history includes Heartbleed and other bugs that forced mass patching across the industry.
The flaw at a glance
The numbers and the fix are straightforward, and that is what makes this patchable fast:
- CVE: CVE-2026-121481
- CVSS score: 9.8 (critical)
- Affected function: EVP_EncodeBlock()
- Trigger: NULL input or output buffers, negative lengths, or lengths that overflow the buffer


