CVE-2026-121481

Potential Buffer Overflow in EVP_EncodeBlock with Large Input Length in OpenSSL

Published Nov 18, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Calling EVP_EncodeBlock() with an input length that approaches the maximum value for a signed 32‑bit integer causes an overflow in the calculation of the encoded output size. The resulting write past the end of the caller‑supplied output buffer can corrupt memory, potentially leading to a crash or, if an attacker can control the input, arbitrary code execution. The weakness is an integer‑overflow‑induced buffer overflow (CWE‑680).

Affected Systems

OpenSSL OpenSSL. No specific product versions are listed in the advisory; the vulnerability applies to any build of the OpenSSL library that contains the affected EVP_EncodeBlock implementation.

Risk and Exploitability

The CVSS score is not provided and the exploit probability score (EPSS) is unavailable, but the failure mode is severe: a stack or heap buffer overflow could allow an attacker who can supply large input lengths to corrupt memory. The attack vector is likely through any application that calls EVP_EncodeBlock with untrusted data; a remote attacker might induce the error via crafted network traffic, while a local attacker could exploit the code directly. The vulnerability is not yet listed in the CISA KEV catalog, however its potential impact warrants immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenSSL to a version that incorporates the pull‑request fix (e.g., commit a33652 or later).
  • In any application code that invokes EVP_EncodeBlock, validate that the input length is well below INT_MAX and that the caller‑supplied output buffer is large enough for the encoded result before the call.
  • If an immediate update is not possible, add defensive checks around the call or refactor the code to avoid using EVP_EncodeBlock with large or untrusted inputs.

Generated by OpenCVE AI on November 18, 2026 at 16:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Potential Buffer Overflow in EVP_EncodeBlock with Large Input Length in OpenSSL
Weaknesses CWE-680
Type Values Removed Values Added
First Time appeared Openssl
Openssl openssl
Vendors & Products Openssl
Openssl openssl
Type Values Removed Values Added
Description 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.
References
Weaknesses
  • CWE-680

    Integer Overflow to Buffer Overflow

Sources

Status
PUBLISHED
Assigner
openssl
Published
Updated
Nov 18, 2026, 11:43 AM
Reserved
Nov 3, 2026, 1:45 PM
Status
Awaiting Analysis
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 12:17 PM