CVE-2024-39312
Botan vulnerability analysis and mitigation

Overview

Botan, a C++ cryptography library, was found to contain a vulnerability (CVE-2024-39312) related to X.509 certificate handling. The issue affects versions prior to 3.5.0 and 2.19.5, where a bug in parsing name constraint extensions in X.509 certificates caused the system to only check permitted subtrees while ignoring excluded subtrees when both were present (GitHub Advisory).

Technical details

The vulnerability stems from improper certificate validation (CWE-295) in the handling of X.509 certificates. When processing certificates that identify elliptic curves using either an object identifier or explicit parameter encoding, the system fails to properly validate both permitted and excluded subtrees in name constraint extensions. The issue has been assigned a CVSS v3.1 score of 5.3 (Medium) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (NVD).

Impact

When exploited, this vulnerability allows certificates to be accepted even when they contain names that should be excluded by the excluded subtree, as long as they are permitted by the permitted subtree. This could potentially lead to unauthorized certificate acceptance and compromise the integrity of the certificate validation process (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Botan versions 3.5.0 and 2.19.5. Users are advised to upgrade to these patched versions to address the security issue. No workarounds are available for unpatched versions (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Botan vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-34703HIGH7.5
  • BotanBotan
  • Botan
NoYesJun 30, 2024
CVE-2024-50383MEDIUM5.9
  • BotanBotan
  • botan
NoYesOct 23, 2024
CVE-2024-50382MEDIUM5.9
  • BotanBotan
  • cpe:2.3:a:botan_project:botan
NoYesOct 23, 2024
CVE-2024-39312MEDIUM5.3
  • BotanBotan
  • Botan
NoYesJul 08, 2024
CVE-2024-34702MEDIUM5.3
  • BotanBotan
  • libbotan-devel
NoYesJul 08, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management