{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-121481","assignerOrgId":"3a12439a-ef3a-4c79-92e6-6081a721f1e5","state":"PUBLISHED","assignerShortName":"openssl","dateReserved":"2026-11-03T13:45:42.894Z","datePublished":"2026-11-18T11:43:33.634Z","dateUpdated":"2026-11-20T10:13:53.149Z"},"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"OpenSSL","vendor":"OpenSSL","versions":[{"lessThan":"4.1.1","status":"affected","version":"4.1.0","versionType":"semver"},{"lessThan":"4.0.4","status":"affected","version":"4.0.0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"reporter","value":"Nicky Mouha"},{"lang":"en","type":"remediation developer","value":"Nicky Mouha"}],"datePublic":"2026-11-20T10:08:15.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Issue summary: Calling EVP_EncodeBlock() with an input length close to INT_MAX<br>may overflow the calculation of the encoded output size and write past the end<br>of the caller-supplied output buffer.<br><br>Impact summary: No path by which an attacker can trigger this has been<br>identified. An application that passes an input length near INT_MAX to<br>EVP_EncodeBlock() could suffer a heap buffer overflow, crashing or corrupting<br>its own memory, but it must itself supply such a length.<br><br>CWE: CWE-190: Integer Overflow or Wraparound<br><br>Description: EVP_EncodeBlock() base64-encodes a buffer of a caller-supplied<br>length into an output buffer that the caller allocates. The caller is expected<br>to reserve 4*((len+2)/3)+1 bytes. For input lengths close to INT_MAX, the<br>arithmetic that computes the encoded length overflows a signed integer, so the<br>function writes more data than the documented output size. The result is a<br>heap buffer overflow in the calling process.<br><br>Reaching this requires an application to pass an input length near INT_MAX to<br>EVP_EncodeBlock(). OpenSSL's TLS, QUIC and CMS implementations never encode<br>buffers of that size, and the command line tools cannot practically be made to<br>do so: the limits on reading a proxy password from a file and on bignum sizes<br>prevent it. An application that accepts an attacker-controlled length and<br>forwards it to EVP_EncodeBlock() without its own bound check is exposed.<br><br>The severity is Low because no attacker-controlled path to the overflow is<br>known. The caller must already hold a buffer of about two gigabytes before the<br>defect can be reached.<br><br>FIPS impact: no<br>The affected code is outside the FIPS module boundary."}],"value":"Issue summary: Calling EVP_EncodeBlock() with an input length close to INT_MAX\nmay overflow the calculation of the encoded output size and write past the end\nof the caller-supplied output buffer.\n\nImpact summary: No path by which an attacker can trigger this has been\nidentified. An application that passes an input length near INT_MAX to\nEVP_EncodeBlock() could suffer a heap buffer overflow, crashing or corrupting\nits own memory, but it must itself supply such a length.\n\nCWE: CWE-190: Integer Overflow or Wraparound\n\nDescription: EVP_EncodeBlock() base64-encodes a buffer of a caller-supplied\nlength into an output buffer that the caller allocates. The caller is expected\nto reserve 4*((len+2)/3)+1 bytes. For input lengths close to INT_MAX, the\narithmetic that computes the encoded length overflows a signed integer, so the\nfunction writes more data than the documented output size. The result is a\nheap buffer overflow in the calling process.\n\nReaching this requires an application to pass an input length near INT_MAX to\nEVP_EncodeBlock(). OpenSSL's TLS, QUIC and CMS implementations never encode\nbuffers of that size, and the command line tools cannot practically be made to\ndo so: the limits on reading a proxy password from a file and on bignum sizes\nprevent it. An application that accepts an attacker-controlled length and\nforwards it to EVP_EncodeBlock() without its own bound check is exposed.\n\nThe severity is Low because no attacker-controlled path to the overflow is\nknown. The caller must already hold a buffer of about two gigabytes before the\ndefect can be reached.\n\nFIPS impact: no\nThe affected code is outside the FIPS module boundary."}],"metrics":[{"format":"other","other":{"content":{"text":"Low"},"type":"https://openssl-library.org/policies/general/security-policy/"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","description":"CWE-190 Integer Overflow or Wraparound","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"3a12439a-ef3a-4c79-92e6-6081a721f1e5","shortName":"openssl","dateUpdated":"2026-11-20T10:13:53.149Z"},"references":[{"name":"Fix PR #33652","tags":["patch"],"url":"https://github.com/openssl/openssl/pull/33652"}],"source":{"discovery":"UNKNOWN"},"title":"Integer Overflow in EVP_EncodeBlock() with Very Large Input Lengths","x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"problemTypes":[{"descriptions":[{"type":"CWE","cweId":"CWE-122","lang":"en","description":"CWE-122 Heap-based Buffer Overflow"}]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T21:20:00.274936Z","id":"CVE-2026-121481","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-11-19T21:20:33.130Z"}},{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2026-11-20T04:27:53.034Z"},"references":[{"url":"https://news.ycombinator.com/item?id=50569226"}],"title":"CVE Program Container","x_generator":{"engine":"ADPogram 0.0.1"}}]}}