November 20, 2026

OpenSSL Buffer Overflow: CVE-2026-121481 Hits CVSS 9.8

A critical buffer overflow vulnerability in OpenSSL's EVP_EncodeBlock() function was disclosed today, carrying a CVSS score of 9.8. The vulnerability, tracked as CVE-2026-121481, exists in the base64 encoding path of one of the most widely deployed cryptography libraries in the world [1].

The fix, submitted as a pull request by researcher nmouha, adds input validation guards to EVP_EncodeBlock() and the corresponding EVP_DecodeBlock() function. It also corrects an incorrect length check in the base64encode() function within http_client.c, which was reachable through a long s_client -proxy_pass argument [2].

What the bug actually is

The overflow occurs when EVP_EncodeBlock() receives inputs where the output length calculation overflows an int. Specifically, when the input data length dlen exceeds (INT_MAX / 4) * 3, the computed base64 output length wraps around, and the function writes past the allocated buffer. The same class of bug exists in EVP_DecodeBlock() for negative length inputs, which were not previously rejected [3].

The fix calls OPENSSL_assert() for inputs that would trigger the undefined behavior, and backports to the 3.6.x branch add explicit bounds checks returning -1 for invalid lengths instead of asserting. An empty input now correctly writes only the NUL terminator [4].

How far it spreads

OpenSSL ships in everything. Web servers, VPN gateways, TLS terminators, package managers, language runtimes. The EVP_EncodeBlock() function is part of the public API, meaning any application that calls base64 encoding through OpenSSL's EVP interface is potentially affected. The http_client.c path is narrower, requiring an attacker to control proxy credentials passed to the s_client tool, but the EVP functions are broad surface [5].

The PR has drawn 267 points and 210 comments on Hacker News, making it one of the most discussed security disclosures of the week. Backports are already in progress: the pkgsrc maintainer atomchild411 has prepared a backport to OpenSSL 3.6.5, and a fuzzer targeting the AVX2 encoder path against the scalar reference was pushed by daedalus to verify the fix [6].

The AI angle

Two commits referencing the PR were co-authored by Claude Opus 5.5, Anthropic's latest model. One builds a differential fuzzer comparing the AVX2 encoder against the scalar implementation. The other prepares the 3.6.5 backport. This is not AI finding the bug, the vulnerability was reported by nmouha, but AI is being used in the response pipeline: writing fuzzers, preparing backports, and generating test cases. The line between AI as tool and AI as contributor keeps blurring [7].

That this lands on the same day Anthropic debuted on Nasdaq is either coincidence or the universe has a sense of humor. Probably coincidence [8].

What you should do

If you are running OpenSSL 4.x, track PR #33652 for merge into the main branch and update when a release is cut. If you are on 3.6.x, the backport to 3.6.5 is being prepared and should be available shortly. Distro maintainers will pick it up from there. The CVSS 9.8 rating means network-accessible services that expose base64 encoding through OpenSSL should be treated as potentially vulnerable until patched [9].

For most people, this means waiting for your distribution's security update and applying it. For anyone building OpenSSL from source, pull the fix and rebuild. The vulnerability is in the encoding path, not the TLS handshake itself, so the attack surface depends on how your application uses base64 encoding through OpenSSL [10].

← All posts

Sources

  1. "OpenSSL: Buffer overflow in EVP_EncodeBlock() (CVE-2026-121481, CVSS 9.8)" on GitHub. github.com/openssl/openssl, November 2026. ^
  2. Fix description: adds OPENSSL_assert() guards for EVP_EncodeBlock() and EVP_DecodeBlock(), fixes length check in base64encode() of http_client.c. github.com/openssl/openssl. ^
  3. Overflow condition: dlen > (INT_MAX / 4) * 3 causes output length to overflow int, leading to buffer overwrite. github.com/openssl/openssl. ^
  4. Backport to 3.6.5 by atomchild411: explicit bounds checks returning -1 for negative or overflowing lengths, 0 for empty input. github.com/openssl/openssl. ^
  5. EVP_EncodeBlock() is part of OpenSSL's public API, used by applications performing base64 encoding through the EVP interface. github.com/openssl/openssl. ^
  6. Hacker News discussion: 267 points, 210 comments. news.ycombinator.com, November 20, 2026. Fuzzer commit by daedalus: github.com/openssl/openssl. ^
  7. Two commits co-authored by Claude Opus 5.5: differential fuzzer (daedalus) and 3.6.5 backport (atomchild411). github.com/openssl/openssl. ^
  8. Anthropic IPO debut on Nasdaq under ticker "ANT". reuters.com, November 19, 2026. Hacker News: 1'086 points, 2'152 comments. ^
  9. CVSS 9.8 rating indicates critical severity. GitHub Advisory GHSA-83xj-7xh4-4p7x. ^
  10. Vulnerability is in the base64 encoding path, not the TLS handshake. Attack surface depends on application usage of EVP_EncodeBlock(). github.com/openssl/openssl. ^