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

Serious Cryptographic Bug Fixed in PHP

Aug 24, 2011
1 minute read
eWeek content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

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.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.