Integer Overflow in EVP_EncodeBlock() with Very Large Input Lengths
Severity and exploitation
KEV coverage does not rule out exploitation.
Assessment vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HSeverity
medium5.9CVSS measures technical severity, not the likelihood of an attack.
Known exploitation
Not listed in the checked CISA KEV catalog
Absence from CISA KEV does not rule out attacks.
Public exploit
Not established by this record
Missing evidence does not mean no public exploit exists.
Remediation
Fix status not established
No structured fix or guidance is available here. Check the latest publisher advisory.
What this means
Issue summary: Calling EVP_EncodeBlock() with an input length close to INT_MAX may overflow the calculation of the encoded output size and write past the end of the caller-supplied output buffer.
Source excerpt · opensslAttack conditions
Reaching this requires an application to pass an input length near INT_MAX to EVP_EncodeBlock().
Excerpt from the original source description below.
Review supporting sources →Affected versions
Check the exact model, release, and any platform requirements against your installation.
OpenSSL · openssl
OpenSSL
2 ranges
OpenSSL · openssl
OpenSSL
Compare with this publisher’s ranges. This does not inspect your installation.
affected
4.1.0 → before 4.1.1
semver versions
4.0.0 → before 4.0.4
semver versions
Other versions: unaffected
What to do
Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.
No structured fix or remediation guidance is available here. Check the full source description and vendor’s latest advisory for a patch or workaround; do not assume another version is safe.
cve.new guidance unless attributed to a publisher. This page does not inspect your installation.
Public exploit evidence
No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.
Original source description
Read the full publisher description
Issue summary: Calling EVP_EncodeBlock() with an input length close to INT_MAX may overflow the calculation of the encoded output size and write past the end of the caller-supplied output buffer.
Impact summary: No path by which an attacker can trigger this has been identified. An application that passes an input length near INT_MAX to EVP_EncodeBlock() could suffer a heap buffer overflow, crashing or corrupting its own memory, but it must itself supply such a length.
CWE: CWE-190: Integer Overflow or Wraparound
Description: EVP_EncodeBlock() base64-encodes a buffer of a caller-supplied length into an output buffer that the caller allocates. The caller is expected to reserve 4*((len+2)/3)+1 bytes. For input lengths close to INT_MAX, the arithmetic that computes the encoded length overflows a signed integer, so the function writes more data than the documented output size. The result is a heap buffer overflow in the calling process.
Reaching this requires an application to pass an input length near INT_MAX to EVP_EncodeBlock(). OpenSSL's TLS, QUIC and CMS implementations never encode buffers of that size, and the command line tools cannot practically be made to do so: the limits on reading a proxy password from a file and on bignum sizes prevent it. An application that accepts an attacker-controlled length and forwards it to EVP_EncodeBlock() without its own bound check is exposed.
The severity is Low because no attacker-controlled path to the overflow is known. The caller must already hold a buffer of about two gigabytes before the defect can be reached.
FIPS impact: no The affected code is outside the FIPS module boundary.
References
4 sourcesInside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-121481View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Contributing organizations · 3
Assigning organization
Additional data publisher
Additional data publisher
Timeline
All times UTCAdvisory published
Publication date supplied by the source.
Source updated
Latest modification date supplied by the source.
Last imported by cve.new
Latest catalog import, not the date we first saw this advisory.
What changed
Follow changes- CVE · CVE-2026-121481
Observed 2026-11-25T21:09:11.391Z · upstream updated 2026-11-25T20:04:27.068Z
References changed
before
[ "https://github.com/openssl/openssl/pull/33652", "https://news.ycombinator.com/item?id=50569226", "http://www.openwall.com/lists/oss-security/2026/11/24/18" ]
after
[ "https://github.com/openssl/openssl/pull/33652", "https://news.ycombinator.com/item?id=50569226", "http://www.openwall.com/lists/oss-security/2026/11/24/18", "http://www.openwall.com/lists/oss-security/2026/11/25/3" ]
- CVE · CVE-2026-121481
Observed 2026-11-24T23:01:36.820Z · upstream updated 2026-11-24T22:04:43.659Z
References changed
before
[ "https://github.com/openssl/openssl/pull/33652", "https://news.ycombinator.com/item?id=50569226" ]
after
[ "https://github.com/openssl/openssl/pull/33652", "https://news.ycombinator.com/item?id=50569226", "http://www.openwall.com/lists/oss-security/2026/11/24/18" ]
- CVE · CVE-2026-121481
Observed 2026-11-20T19:55:42.578Z · upstream updated 2026-11-20T19:45:11.949Z
Severity assessment changed
before
[ { "source": "CISA-ADP", "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "score": 8.4 } ]after
[ { "source": "CISA-ADP", "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H", "score": 5.9 } ]Weakness classification changed
before
[ { "id": "CWE-190", "description": "CWE-190 Integer Overflow or Wraparound", "source": "openssl" }, { "id": "CWE-190", "description": "CWE-190 Integer Overflow or Wraparound", "source": "CISA-ADP" } ]after
[ { "id": "CWE-190", "description": "CWE-190 Integer Overflow or Wraparound", "source": "openssl" } ]Prioritization updated
before
[ { "source": "CISA-ADP", "type": "SSVC", "role": "CISA Coordinator", "timestamp": "2026-11-19T21:20:00.274936Z", "decisions": [ { "name": "Exploitation", "value": "none" }, { "name": "Automatable", "value": "yes" }, { "name": "Technical Impact", "value": "total" } ] } ]after
[ { "source": "CISA-ADP", "type": "SSVC", "role": "CISA Coordinator", "timestamp": "2026-11-20T19:45:06.462019Z", "decisions": [ { "name": "Exploitation", "value": "none" }, { "name": "Automatable", "value": "no" }, { "name": "Technical Impact", "value": "partial" } ] } ] - CVE · CVE-2026-121481
Observed 2026-11-20T18:59:57.188Z · upstream updated 2026-11-20T18:31:27.216Z
Severity assessment changed
before
[ { "source": "CISA-ADP", "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "score": 9.8 } ]after
[ { "source": "CISA-ADP", "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "score": 8.4 } ]Weakness classification changed
before
[ { "id": "CWE-190", "description": "CWE-190 Integer Overflow or Wraparound", "source": "openssl" }, { "id": "CWE-122", "description": "CWE-122 Heap-based Buffer Overflow", "source": "CISA-ADP" } ]after
[ { "id": "CWE-190", "description": "CWE-190 Integer Overflow or Wraparound", "source": "openssl" }, { "id": "CWE-190", "description": "CWE-190 Integer Overflow or Wraparound", "source": "CISA-ADP" } ] - CVE · CVE-2026-121481
Observed 2026-11-20T10:50:02.346Z · upstream updated 2026-11-20T10:13:53.149Z
Title revised
before
Calling EVP_EncodeBlock() with an input length close to INT_MAX may overflow the calculation of the encoded output size and write past the end of the…
after
Integer Overflow in EVP_EncodeBlock() with Very Large Input Lengths
Description revised
before
Calling EVP_EncodeBlock() with an input length close to INT_MAX may overflow the calculation of the encoded output size and write past the end of the caller-supplied output buffer.
after
Issue summary: Calling EVP_EncodeBlock() with an input length close to INT_MAX may overflow the calculation of the encoded output size and write past the end of the caller-supplied output buffer. Impact summary: No path by which an attacker can trigger this has been identified. An application that passes an input length near INT_MAX to EVP_EncodeBlock() could suffer a heap buffer overflow, crashing or corrupting its own memory, but it must itself supply such a length. CWE: CWE-190: Integer Overflow or Wraparound Description: EVP_EncodeBlock() base64-encodes a buffer of a caller-supplied length into an output buffer that the caller allocates. The caller is expected to reserve 4*((len+2)/3)+1 bytes. For input lengths close to INT_MAX, the arithmetic that computes the encoded length overflows a signed integer, so the function writes more data than the documented output size. The result is a heap buffer overflow in the calling process. Reaching this requires an application to pass an input length near INT_MAX to EVP_EncodeBlock(). OpenSSL's TLS, QUIC and CMS implementations never encode buffers of that size, and the command line tools cannot practically be made to do so: the limits on reading a proxy password from a file and on bignum sizes prevent it. An application that accepts an attacker-controlled length and forwards it to EVP_EncodeBlock() without its own bound check is exposed. The severity is Low because no attacker-controlled path to the overflow is known. The caller must already hold a buffer of about two gigabytes before the defect can be reached. FIPS impact: no The affected code is outside the FIPS module boundary.
Weakness classification changed
before
[ { "id": "CWE-122", "description": "CWE-122 Heap-based Buffer Overflow", "source": "CISA-ADP" } ]after
[ { "id": "CWE-190", "description": "CWE-190 Integer Overflow or Wraparound", "source": "openssl" }, { "id": "CWE-122", "description": "CWE-122 Heap-based Buffer Overflow", "source": "CISA-ADP" } ] - CVE · CVE-2026-121481
Observed 2026-11-20T04:57:59.080Z · upstream updated 2026-11-20T04:27:53.034Z
References changed
before
[ "https://github.com/openssl/openssl/pull/33652" ]
after
[ "https://github.com/openssl/openssl/pull/33652", "https://news.ycombinator.com/item?id=50569226" ]
- CVE · CVE-2026-121481
Observed 2026-11-20T00:32:24.837Z · upstream updated 2026-11-19T21:20:33.130Z
Severity assessment changed
before
[]
after
[ { "source": "CISA-ADP", "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "score": 9.8 } ]Weakness classification changed
before
[]
after
[ { "id": "CWE-122", "description": "CWE-122 Heap-based Buffer Overflow", "source": "CISA-ADP" } ]Prioritization updated
before
[]
after
[ { "source": "CISA-ADP", "type": "SSVC", "role": "CISA Coordinator", "timestamp": "2026-11-19T21:20:00.274936Z", "decisions": [ { "name": "Exploitation", "value": "none" }, { "name": "Automatable", "value": "yes" }, { "name": "Technical Impact", "value": "total" } ] } ]
Large field values are marked as truncated previews. Original source snapshots remain retained.
Showing up to 50 most recent observed changes.
Related advisories
Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.
Unbounded Out-of-Order Fragment Reassembly in QUIC Streams
Issue summary: A QUIC peer that sends many small out-of-order STREAM fragments while withholding the first byte of the stream may cause OpenSSL to buffer a large number of reassembly nodes occupying much larger memory than the actual data sent.
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
Excessive Memory Allocation in DTLS Handshake Message Reassembly
Issue summary: Receiving crafted out-of-sequence DTLS handshake fragments may cause OpenSSL to allocate a full message-length reassembly buffer for each buffered message, so a small amount of wire data consumes a large amount of memory.
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
Possible NULL Dereference in Non-SMTP DANE Clients
Issue summary: A DANE-enabled TLS client may crash by dereferencing a NULL pointer when processing an unusual combination of certificate and TLSA records.
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
Relative CRL Distribution Point Names Rebuilt per CRL in X.509 Verification
Issue summary: Verifying a maliciously crafted CMS or PKCS#7 SignedData message with CRL checking enabled may consume excessive CPU time, growing with the square of the message size.
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
Unbounded QUIC RETIRE_CONNECTION_ID Frame Sending Queue
Issue summary: The QUIC stack queues a RETIRE_CONNECTION_ID frame also for retransmitted NEW_CONNECTION_ID frames. This allows a remote malicious QUIC stack to queue an unlimited number of RETIRE_CONNECTION_ID frames.
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
Out-of-Bounds Read in TLS 1.3 Key-Share Processing with Suite B Certificate Flag
Issue summary: A server configured with the Suite B certificate flag through SSL_CTX_set_cert_flags() and with TLS 1.3 enabled may read past the end of a fixed group list when it processes a ClientHello whose supported_groups and key_share contain no Suite B group.
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established