OpenSSL buffer overflow in EVP_EncodeBlock() ()Illustration: Topicex
Developing

OpenSSL buffer overflow in EVP_EncodeBlock() ()

Heat 70 · #3 in Security · Rising2 reports · 2 sources · First reported Nov 18 · Updated Nov 20

The story

OpenSSL published CVE-2026-121481 on 18 November 2026, a buffer overflow in the EVP_EncodeBlock() base64 function that earned a CVSS score of 9.8. Calling the function with an input length close to INT_MAX can overflow the calculation of the encoded output size and write past the end of the caller-supplied buffer, a flaw rooted in the function's signed-int API contract dating back to the SSLeay era. Only OpenSSL 4.0.0 through 4.0.3 and 4.1.0 are affected; the 3.x line is outside the affected set. There is no fixed release to download yet: the fix lives in public pull request #33652, and the releases carrying it, 4.0.4 and 4.1.1, are scheduled for 1 December 2026. Until then, the only complete mitigation is to keep enormous lengths away from the function.
Latest development
until then the only complete mitigation is keeping enormous lengths away from the function. The CyberSec Guru published an independent explainer the same week with the scope, timing and overflow mechanics - the second source that lifts this over the single-source hold (rounds 242 and earlier: only the vendor advisory, vuln-DB listings and the HN mirror). HN #4, 64 pts/35 cmt (post 50569226). Score 70.0 (rank 90, discussion 60, cross 50).

How it unfolded

  1. until then the only complete mitigation is keeping enormous lengths away from the function. The CyberSec Guru published an independent explainer the same week with the scope, timing and overflow mechanics - the second source that lifts this over the single-source hold (rounds 242 and earlier: only the vendor advisory, vuln-DB listings and the HN mirror). HN #4, 64 pts/35 cmt (post 50569226). Score 70.0 (rank 90, discussion 60, cross 50).
  2. Dec 1
    no fixed release yet - the fix is in public PR #33652, releases 4.0.4 and 4.1.1 scheduled for 2026-12-01
  3. affects OpenSSL 4.0.0-4.0.3 and 4.1.0 only (3.x unaffected)
  4. Nov 18
    OpenSSL published CVE-2026-121481 on 2026-11-18: calling EVP_EncodeBlock() with an input length close to INT_MAX may overflow the encoded output size calculation and write past the caller-supplied buffer, CVSS 3.1 9.8 Critical

The angle

A 9.8 OpenSSL overflow with no patch until December - what the bug is, who is actually affected, and what to do until 4.0.4 landsSuggested format: Short video · for Developers, DevOps, security watchers, self-hosters

Heat

Now 70 · Peak 82 · 64 recorded checks since Nov 20
Full ranking →