CVE-2017-7252
Botan vulnerability analysis and mitigation

Overview

Botan's bcrypt password hashing implementation before version 2.1.0 contained a critical security flaw where passwords with lengths between 57 and 72 characters were incorrectly truncated at 56 characters, instead of the standard bcrypt 72-character limit. This vulnerability was discovered and reported by Solar Designer in March 2017 (Vendor Advisory).

Technical details

The vulnerability (CVE-2017-7252) affects the bcrypt password hashing mechanism in Botan versions from 1.11.0 to versions before 2.1.0. Due to incorrect implementation, the system would truncate passwords at 56 characters instead of the standard bcrypt specification of 72 characters. This implementation error means that for passwords between 57 and 72 characters in length, any characters beyond the 56th position were ignored during the hashing process (Vendor Advisory).

Impact

The truncation of passwords at 56 characters instead of 72 characters makes it easier for attackers to determine the cleartext password. For affected passwords (those between 57 and 72 characters), the final password bytes were ignored during hash computation, effectively weakening the password strength and making them more susceptible to cracking attempts (SUSE Bug).

Mitigation and workarounds

The vulnerability was fixed in Botan version 2.1.0. Users of affected versions should upgrade to version 2.1.0 or later to address this issue. It's worth noting that some distributions, such as SUSE Linux Enterprise (SLE) 12, which used version 1.10.x, were not affected by this vulnerability (SUSE Bug).

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
  • cpe:2.3:a:botan_project:botan
NoYesJun 30, 2024
CVE-2024-50383MEDIUM5.9
  • BotanBotan
  • botan
NoYesOct 23, 2024
CVE-2024-50382MEDIUM5.9
  • BotanBotan
  • botan
NoYesOct 23, 2024
CVE-2024-39312MEDIUM5.3
  • BotanBotan
  • botan
NoYesJul 08, 2024
CVE-2024-34702MEDIUM5.3
  • BotanBotan
  • python3-botan
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