HighGHSA-848f-mph5-9pm9

Zendframework Potential Information Disclosure and Insufficient Entropy vulnerability

Published 7 Jun 2024 · Updated 4 Dec 2024

Affected package

Affected
>=1.12.0 <1.12.17
Fixed in
1.12.17
Update to the fixed version for your release line, for example:composer require zendframework/zendframework1:^1.12.17

Details

In Zend Framework, Zend_Captcha_Word (v1) and Zend\Captcha\Word (v2) generate a "word" for a CAPTCHA challenge by selecting a sequence of random letters from a character set. Prior to this advisory, the selection was performed using PHP's internal array_rand() function. This function does not generate sufficient entropy due to its usage of rand() instead of more cryptographically secure methods such as openssl_pseudo_random_bytes(). This could potentially lead to information disclosure should an attacker be able to brute force the random number generation.

Is GHSA-848f-mph5-9pm9 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected zendframework/zendframework1, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.