CVE-2026-34580

Botan is a C++ cryptography library. In 3.11.0, the function Certificate_Store::certificate_known had a misleading name; it would return true if any certificate in the store had a DN (and subject key identifier, if set) matching that of the argument. It did not check that the cert it found and the cert it was passed were actually the same certificate. In 3.11.0 an extension of path validation logic was made which assumed that certificate_known only returned true if the certificates were in fact identical. The impact is that if an end entity certificate is presented, and its DN (and subject key identifier, if set) match that of any trusted root, the end entity certificate is accepted immediately as if it itself were a trusted root. , This vulnerability is fixed in 3.11.1.
Configurations

Configuration 1 (hide)

cpe:2.3:a:botan_project:botan:3.11.0:*:*:*:*:*:*:*

History

24 Jul 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) Botan es una biblioteca de criptografía C++. En 3.11.0, la función Certificate_Store::certificate_known tenía un nombre engañoso; devolvería verdadero si cualquier certificado en el almacén tuviera un DN (y un identificador de clave de sujeto, si está configurado) que coincidiera con el del argumento. No verificaba que el certificado que encontró y el certificado que se le pasó fueran realmente el mismo certificado. En 3.11.0 se hizo una extensión de la lógica de validación de ruta que asumía que certificate_known solo devolvía verdadero si los certificados eran de hecho idénticos. El impacto es que si se presenta un certificado de entidad final, y su DN (y el identificador de clave de sujeto, si está configurado) coincide con el de cualquier raíz de confianza, el certificado de entidad final es aceptado inmediatamente como si él mismo fuera una raíz de confianza. , Esta vulnerabilidad está corregida en 3.11.1.

30 Jun 2026, 03:18

Type Values Removed Values Added
References
  • () https://access.redhat.com/security/cve/CVE-2026-34580 -
  • () https://bugzilla.redhat.com/show_bug.cgi?id=2456288 -
  • () https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34580.json -

17 Apr 2026, 20:30

Type Values Removed Values Added
CPE cpe:2.3:a:botan_project:botan:3.11.0:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5
References () https://github.com/randombit/botan/security/advisories/GHSA-v782-6fq4-q827 - () https://github.com/randombit/botan/security/advisories/GHSA-v782-6fq4-q827 - Vendor Advisory
First Time Botan Project botan
Botan Project

07 Apr 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-07 22:16

Updated : 2026-07-24 22:10


NVD link : CVE-2026-34580

Mitre link : CVE-2026-34580

CVE.ORG link : CVE-2026-34580


JSON object : View

Products Affected

botan_project

  • botan
CWE
CWE-295

Improper Certificate Validation