All Today

🔒 OpenSSL base64 bug carries a CVSS score of 9.8, and Hacker News argues over how serious it really is

· 6 min

In brief


A bug in OpenSSL, the cryptography library behind much of the internet's encrypted traffic, is catalogued as CVE-2026-121481. The function EVP_EncodeBlock(), which turns binary data into base64 text, works out how long its output will be. For inputs above roughly 1.5 GB that calculation overflows, and the function can write beyond the end of the buffer the calling program supplied. The entry carries a CVSS base score of 9.8 (critical), but reviewers quote the same entry as rating the severity low: no way for an attacker to reach the flaw is known, and the caller would need a buffer of about 2 GB. 🧐 On Hacker News on 20 November, readers debated whether a 9.8 means anything here, who is really exposed (apparently only the OpenSSL 4 line) and whether the interface design is to blame. In the public pull request, maintainers were still weighing on 22 November whether the fix should return an error value, return 0 or abort the program.


**What the code does wrong.** EVP_EncodeBlock() is documented to turn every 3 input bytes into 4 output characters, add padding and a closing NUL character, and return the length of the text it wrote. The caller allocates the output buffer and has to work out its size; the function is never told how large that buffer is. The pull request that fixes the bug (number 33652, opened on 10 November by a contributor who goes by nmouha) says the function does not guard against NULL pointers, negative lengths and lengths whose encoded size no longer fits in a 32-bit int. The same guard is added to the matching decoder, EVP_DecodeBlock(), and to a length check in OpenSSL's HTTP client code. The author describes a command-line way to reach the problem: a very long -proxy_pass value, handed to the openssl s_client tool through an environment variable.

🕐 **Timeline and process.** The OpenSSL security response team asked for the fix to be made in public, and the advisory was still pending when the pull request was opened. Maintainers labelled it for the master, 4.0 and 4.1 branches; no 3.x branch is listed. One commenter notes that the CVE had become public only about two days before the thread, while the fix was still unmerged, and asks whether the team had been warned in advance.

📊 **Is 9.8 a fair score?** Commenters split. One side says the base score is a fixed formula: network access, low complexity, no privileges and full impact on confidentiality, integrity and availability multiply out to 9.8, and the number does not measure how likely anyone is to meet the bug. The other side says a score in the headline invites panic. One commenter, who says they have written a TLS implementation, argues the flaw matters only if untrusted input of well over a gigabyte reaches the function; a protocol with a 16-bit length field is safe, and as far as the commenter knows TLS itself does not use base64. Several point to the wording quoted from the NVD entry: severity low, no attacker-controlled path known, caller already holds a buffer of about two gigabytes. A reviewer on the pull request adds that the project treats every CVE handled in public as low severity, and an issue in CISA's vulnrichment repository asks whether the score is too high. Another commenter first read the bug as a plain integer overflow in the return value, then corrected the comment: an input of exactly INT_MAX bytes can send a loop past the end of the buffer.

🧩 **Who needs to patch?** Because the pull request lists only the master, 4.0 and 4.1 branches, several readers conclude that only the OpenSSL 4 line is affected. Commenters say enterprise Linux distributions still ship 3.x and that OpenSSL 4.2 is expected to be the first long-term-support release of the 4 series. Arch Linux and Fedora already ship 4.x and should get patches quickly, they add; one reader pastes an Arch machine that has OpenSSL 4.1.0 next to 3.5.9, another is writing from Fedora 45. Some readers wish the headline had said so.

🛠️ **API design.** A second strand blames the interface rather than the arithmetic. One commenter calls the API bad because the caller must compute the output size with a formula and never tells the function how big the buffer is, so the function cannot check it. Others answer that the caller owns allocation, that validation belongs where untrusted input first enters a program, and that the formula (four thirds of the input length, rounded up, plus padding and a NUL) is simple. The first replies that how easy it is to get wrong proves the point. Links to API-design essays, calls for slice types in C and for Rust rewrites follow; replies note that Rust TLS libraries exist but are not drop-in replacements, and that cryptographic code has to run in constant time.

⚖️ **How to fix it.** In the pull request, the first version returned -1 for invalid input. A reviewer worried that third-party callers might cast the result to an unsigned size without checking; others pointed out that 0 is already a valid result for empty input. The author then switched to OPENSSL_assert(), which drew strong objections that an assert turns a memory-corruption bug into a denial-of-service bug. On 13 November a project member put the pull request on hold for discussion. On 20 November the author changed it again: invalid lengths now give 0 and an error code is placed on OpenSSL's error stack. A later review comment still objects to setting an error code on a return value that can also mean success. One Hacker News commenter reads the harsh review as hostile; others reply that it is ordinary technical review that reached a direction within about a week.

🔭 **The larger worry.** Many comments leave the bug behind. Some use it to attack OpenSSL's code quality and funding and to recall that Heartbleed in 2014 led to the BoringSSL and LibreSSL forks; others reply that the forks stay mostly compatible and that one well-funded standard would be better than many. A group of administrators complains about alert fatigue: one says their team dropped everything four times in a month for a CVE that did not apply to them, and another says Heartbleed and log4shell deserved a 9.8 but this does not. A third thread asks how defenders cope if AI tools keep finding bugs faster than people can patch; the suggestions are better live patching, workload isolation, system-call monitoring and layered defences instead of trying to keep up with every patch. Until the review ends, the pull request keeps its 'hold: discussion' label.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service