---
id: CVE-2026-121481
title: >-
  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.
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.
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cvssSource: adp
vendor: OpenSSL
product: OpenSSL
affected:
  - OpenSSL >= 4.1.0 < 4.1.1
  - OpenSSL >= 4.0.0 < 4.0.4
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-11-19T21:20:00.274936Z'
published: '2026-11-18'
updated: '2026-11-19'
sourceUpdated: '2026-11-19T21:20:33.130Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-121481'
references:
  - url: 'https://github.com/openssl/openssl/pull/33652'
    label: 'Fix PR #33652'
tags:
  - cve.org
  - exploit-available
epss: 0.00307
epssPercentile: 0.24171
ingestedAt: '2026-11-18T12:08:40.529Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/Quaerendir/openssl-cve-2026-121481-audit'
  checkedAt: '2026-11-21T07:31:17.502Z'
exploitAvailable: true
---

## Overview

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.

## Affected

- `OpenSSL >= 4.1.0 < 4.1.1`
- `OpenSSL >= 4.0.0 < 4.0.4`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
