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

Serious Cryptographic Bug Fixed in PHP

Aug 24, 2011
1 minute read
eWeek Le contenu et les recommandations de produits sont indépendants de la rédaction. Nous pouvons gagner de l'argent lorsque vous cliquez sur des liens vers nos partenaires. En savoir plus

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.

Propriété de TechnologyAdvice. © 2026 TechnologyAdvice. Tous droits réservés

Divulgation publicitaire : Certains des produits qui apparaissent sur ce site proviennent d'entreprises dont TechnologyAdvice reçoit une compensation. Cette compensation peut influencer la façon dont les produits apparaissent sur ce site, notamment l'ordre dans lequel ils apparaissent. TechnologyAdvice n'inclut pas toutes les entreprises ou tous les types de produits disponibles sur le marché.