Serious Cryptographic Bug Fixed in PHP

Published: Aug 24, 2011
Updated: Feb 2, 2021
1 minute read
eWeek mantém conteúdo e recomendações de produtos editorialmente independentes. Podemos ganhar dinheiro quando você clica em links de nossos parceiros. Saiba mais

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.

Propriedade da TechnologyAdvice. © 2026 TechnologyAdvice. Todos os direitos reservados

Divulgação de anunciantes: alguns dos produtos que aparecem neste site são de empresas das quais a TechnologyAdvice recebe remuneração. Essa remuneração pode influenciar como e onde os produtos aparecem neste site, incluindo, por exemplo, a ordem em que aparecem. A TechnologyAdvice não inclui todas as empresas nem todos os tipos de produtos disponíveis no mercado.