CVE-2011-2483: Medium severity PHP PHP vulnerability
A flaw in John the Ripper and cryptblowfish was reported [1],[2],[3] where passwords with 8-bit characters were mishandled. A password containing a single character with the 8th bit set have 1 to 3 characters immediately preceding the 8-bit character ignored (approximately 3 in 16 passwords). With more than one 8-bit character in the password, there may be more ignored characters. This can result in passwords being even easier to crack than expected. This is due to a char signedness bug in cryptblowfish.
Other programs, such as PHP Suhosin, PHP 5.3.x, and PostgreSQL's pgcrypt module, contain the vulnerable cryptblowfish code.
A fix for this flaw [4], as well as 8-bit tests [5] and a self-test at runtime [6] have been committed upstream.
[1] http://www.openwall.com/lists/oss-security/2011/06/20/2 [2] http://www.openwall.com/lists/john-dev/2011/06/20/3 [3] http://www.openwall.com/lists/john-dev/2011/06/20/5 [4] http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/cryptblowfish/cryptblowfish.c.diff?r1=1.9;r2=1.10 [5] http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/cryptblowfish/wrapper.c.diff?r1=1.9;r2=1.10 [6] http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/cryptblowfish/cryptblowfish.c.diff?r1=1.10;r2=1.11
Other sources
cryptblowfish before 1.1, as used in PHP before 5.3.7 on certain platforms, PostgreSQL before 8.4.9, and other products, does not properly handle 8-bit characters, which makes it easier for context-dependent attackers to determine a cleartext password by leveraging knowledge of a password hash.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 5.3.7 - Upgrade
Upgrade
crypt_blowfishto a version that resolves this vulnerability.Fixed in 1.1 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 5.3.7 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 8.4.9
Event History
Frequently Asked Questions
What is the severity of CVE-2011-2483?
CVE-2011-2483 has been classified as a medium severity vulnerability due to its potential to expose cleartext passwords.
How do I fix CVE-2011-2483?
To fix CVE-2011-2483, upgrade to a version of PHP greater than 5.3.6 or an updated version of the crypt_blowfish library.
Which software is affected by CVE-2011-2483?
CVE-2011-2483 affects PHP versions prior to 5.3.7, PostgreSQL versions before 8.4.9, and older versions of the crypt_blowfish library.
What are the implications of CVE-2011-2483?
Exploitation of CVE-2011-2483 can allow attackers to determine cleartext passwords based on knowledge of password hashes.
How can I mitigate the risks of CVE-2011-2483?
Mitigation for CVE-2011-2483 includes updating affected software to the latest versions and disallowing the use of weak passwords.