Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. zendframework/zendframework1
  4. ›
  5. GHSA-848f-mph5-9pm9

GHSA-848f-mph5-9pm9: Zendframework Potential Information Disclosure and Insufficient Entropy vulnerability

June 7, 2024

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.

References

  • framework.zend.com/security/advisory/ZF2015-09
  • github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2015-09.yaml
  • github.com/advisories/GHSA-848f-mph5-9pm9
  • github.com/zendframework/zf1

Code Behaviors & Features

Detect and mitigate GHSA-848f-mph5-9pm9 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.12.0 before 1.12.17

Fixed versions

  • 1.12.17

Solution

Upgrade to version 1.12.17 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-331: Insufficient Entropy

Source file

packagist/zendframework/zendframework1/GHSA-848f-mph5-9pm9.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:41 +0000.