/en/articles/openssl-and-the-cvss-9-8-that-wasnt-whats-really-going-on-with-cve-2026-121481

Infrastructure

OpenSSL and the CVSS 9.8 That Wasn't: What's Really Going On with CVE-2026-121481

This week a headline made the rounds on Hacker News that would scare anyone who runs a server: "OpenSSL buffer overflow, CVSS 9.8." The vulnerability is real, it's called CVE-2026-121481, and it lives in EVP_EncodeBlock(), the function that encodes data to base64. But the 9.8 doesn't come from OpenSSL. The project itself, which is the authority that assigned the CVE (the CNA), rates it as low, because no way for an attacker to trigger it is known. And the patch doesn't exist yet in any released version: it's still being debated in a pull request. This post explains what's real, what's noise, and what's worth checking.

What exactly is broken

According to the official description published on NVD, written by OpenSSL as the CNA, the problem shows up when an application calls EVP_EncodeBlock() with an input length close to INT_MAX, the maximum of a signed 32-bit integer (about 2 GB). The caller has to allocate 4*((len+2)/3)+1 bytes for the output. With inputs that large, the calculation of the encoded length overflows and the function writes more than what's documented. The result is a heap buffer overflow inside the process that made the call.

The entry classifies it as CWE-190 (integer overflow) and clarifies that it doesn't touch the FIPS module. The affected versions, according to that same record, are:

  • OpenSSL 4.1.0 (before 4.1.1).
  • OpenSSL 4.0.0 to 4.0.3 (before 4.0.4).

The 3.x, 1.1.1, and 1.0.2 branches are not on the affected list.

Why OpenSSL says "low"

The CNA's text is blunt: no path has been identified by which an attacker can trigger the flaw. To get there, the application itself has to hand EVP_EncodeBlock() a length close to INT_MAX, in other words, it must already have a buffer of around two gigabytes in memory. OpenSSL says its TLS, QUIC, and CMS implementations never encode buffers that size, and that the command-line tools can't realistically be pushed there either, because of the limits on reading a proxy password from a file and on bignum sizes.

What does remain exposed, per the same entry, is a custom application that receives an attacker-controlled length and passes it straight to EVP_EncodeBlock() without validating it first.

There's a disagreement here worth noting. Nicky Mouha, author of pull request #33652, which proposes the fix, wrote when opening it that the flaw could be exploited from the command line by passing a huge password to openssl s_client with -proxy_pass, stuffed into an environment variable. The CNA's entry, published later, concludes the opposite. My take: the CNA's version is the one that carries weight, because it's the project's formal assessment. Even so, anyone who builds OpenSSL 4 into their own software has good reason to review their calls.

Where the 9.8 came from

Comparison of the three ratings for CVE-2026-121481: GitHub Advisory Database 9.8 critical, CISA-ADP 5.9 medium, and OpenSSL low, with the affected versions and patch status

The number that went viral comes from the GitHub Advisory Database. There, entry GHSA-83xj-7xh4-4p7x shows up as critical, 9.8, with a vector of AV:N/AC:L/PR:N/UI:N: network attack, no complexity, no privileges, and no user interaction. But that same page says the entry has not been reviewed, that it lists no package or affected or fixed versions, and that's why Dependabot won't send alerts for it.

On NVD there's a third opinion. CISA, as an ADP, gave it a 5.9 (medium) with a high-complexity vector and impact on availability only: the process crashes, but your data isn't stolen. NVD hasn't published its own assessment yet; the entry is awaiting enrichment.

Who's rating Score Based on
OpenSSL (CNA) Low No known attack path; the app must pass ~2 GB
CISA-ADP 5.9 medium Network, high complexity, availability only
GitHub Advisory DB 9.8 critical Unreviewed entry, theoretical worst case

The EPSS score that GitHub shows, which estimates the probability of exploitation over the next 30 days, is 0.462%.

The patch doesn't exist yet in any version

This is the part that matters most to anyone running servers, and almost nobody covered it. The PR was opened on November 10, 2026. Mouha wrote that the OpenSSL security team asked for the fix to be done in public and that the formal advisory was still pending. As of November 22, the PR is still open, unmerged, and labeled hold: discussion, which in OpenSSL means there's no consensus yet on how to proceed.

The discussion got stuck on something that seems minor but isn't: what the function should return when it receives invalid data.

  • Return -1, the first proposal. Tomáš Mráz warned that there's third-party code that converts the result to size_t without checking it, and a -1 like that becomes a gigantic number. Another reviewer recalled that something similar already happened with EVP_EncodeUpdate(), in this same file: CVE-2016-2105.
  • Use OPENSSL_assert(), which aborts the process. Bob Beck backed it. Matt Caswell strongly opposed it: in his view, an assert inside the library is "a denial of service waiting to happen."
  • Return 0 and leave an error on the stack (ERR_R_PASSED_INVALID_ARGUMENT). On November 20 Mouha wrote that the conversation had converged on this option and pushed a commit. On November 21 Beck asked for changes again.

Beck also questioned the CVE at its core: he wrote that the reproducer in the report is "completely synthetic" and that it probably shouldn't be a CVE without evidence that it happens in practice. For his part, Eugene Syromiatnikov proposed deprecating the function and creating an EVP_EncodeBlock_ex() with a saner contract. He first said the problem was an overflow of the integer it returns, not of the buffer, and then corrected himself: with an input of exactly INT_MAX there is a buffer overflow, caused by a loop that never terminates.

Watch out for a confusing detail. The CVE record marks 4.1.1 and 4.0.4 as the boundary of what's affected. The security advisory from November 17 says those versions, along with other low-severity fixes, are scheduled for December 1, 2026. But the OpenSSL vulnerabilities list doesn't yet include CVE-2026-121481, and its patch isn't merged. Whether it makes it into those versions depends on the PR being closed before then.

What to do about your servers

  1. Check which OpenSSL you use: openssl version. If you're on an LTS distribution with OpenSSL 3, this vulnerability doesn't apply to you according to the official record. For example, Ubuntu 24.04 LTS ships OpenSSL 3.0.13.
  2. If you use OpenSSL 4.0 or 4.1, because you build your own stack or your container image already ships the 4 branch, the real risk depends on your code, not on the web server. Look for calls to EVP_EncodeBlock() (and to EVP_DecodeBlock(), which the PR also hardens) and confirm they never receive an externally controlled length without a reasonable limit.
  3. Don't go by the scanner's score alone. If your dependency tool screams "critical 9.8," now you know where it comes from. Always cross-check the aggregator's rating against the CNA's.
  4. Update when 4.1.1 / 4.0.4 come out, and read the release notes to confirm whether they include this fix.

My take

The case leaves two lessons. The technical one: EVP_EncodeBlock() is an old API where the caller calculates the size of the output buffer and the function doesn't receive that size, so it can't validate it. That design, and not some brilliant attacker, is the real problem, which is why the discussion ended up being about how to change the contract without breaking anyone.

The operational one: unreviewed aggregator CVSS scores can inflate a flaw until it becomes worldwide news. The serious work is reading the vendor's entry, seeing which versions it touches, and checking whether the patch exists yet. In this case, the honest answer is "low severity, OpenSSL 4 only, patch on the way." Less spectacular than a 9.8, but it's what lets you sleep at night.

Sources