Flaws - Serious Cryptographic Bug Fixed in PHP - eWeek Security Watch | eWeek

Serious Cryptographic Bug Fixed in PHP

Verfasst von
Fahmida Y. Rashid
Fahmida Y. Rashid
Aug 24, 2011
1 minute read
eWeek Inhalte und Produktempfehlungen sind redaktionell unabhängig. Wir können Geld verdienen, wenn Sie auf Links zu unseren Partnern klicken. Mehr erfahren

The PHP Group has fixed the serious bug in the cryptographic function in PHP 5.3.7 and pushed out the fix a day later in the latest PHP 5.3.8.

The PHP Group released PHP 5.3.7 on Aug. 18, but developers were told to not upgrade to that version after the bug in how the crypt() function handled certain inputs was discovered on Aug. 22. When supplied with a MD5 salt, the function returned only the salt value instead of the salted hash value it was supposed to return. Simply put, the function wasn’t actually encrypting anything and just returning the same value.

“If crypt() is executed with MD5 salts, the return value conists of the salt only. DES and BLOWFISH salts work as expected. I tested with php from openSUSE PHP5 repository,” the bug report said. Other PHP users were able to reproduce the problem later on other platforms, as well.

Version 5.3.8, released Aug. 23, fixed the crypt() issue and also rolled back a change to version 5.3.6 behavior to address a different issue introduced in 5.3.7 that was causing SSL sessions to hang.

All PHP users should upgrade to 5.3.8 as the PHP 5.2 series is no longer being supported, recommended Christopher Carboni, an “incident handler” at the SANS Institute’s Internet Storm Center.

eWeek Logo

eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site's focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

Eigentum von TechnologyAdvice. © 2026 TechnologyAdvice. Alle Rechte vorbehalten

Werbetreibenden-Offenlegung: Einige der auf dieser Website erscheinenden Produkte stammen von Unternehmen, von denen TechnologyAdvice eine Vergütung erhält. Diese Vergütung kann beeinflussen, wie und wo Produkte auf dieser Website erscheinen, einschließlich beispielsweise der Reihenfolge, in der sie erscheinen. TechnologyAdvice schließt nicht alle Unternehmen oder alle auf dem Marktplatz verfügbaren Produkttypen ein.