Out-of-bounds Read Affecting botan package, versions [2.12.1,3.11.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-BOTAN-15871024
  • published1 Apr 2026
  • disclosed30 Mar 2026
  • creditHarutoKimura

Introduced: 30 Mar 2026

NewCVE-2026-32877  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade botan to version 3.11.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the SM2 decryption process due to improper validation of the encoded C3 hash field length prior to comparison. An attacker can cause a heap buffer over-read, potentially leading to a crash or other undefined behavior, by submitting a specially crafted invalid ciphertext.

CVSS Base Scores

version 4.0
version 3.1