Vulnerability DatabaseGHSA-2fhr-8r8r-qp56

GHSA-2fhr-8r8r-qp56
PHP vulnerability analysis and mitigation

Overview

In Zend Framework, a security vulnerability was identified affecting both Zend_Captcha_Word (v1) and Zend\Captcha\Word (v2) components. The vulnerability involves insufficient entropy in CAPTCHA word generation, where the system used PHP's internal array_rand() function, which relies on the less secure rand() function instead of cryptographically secure methods. This vulnerability was disclosed on November 23, 2015, affecting versions >= 2.0.0 and < 2.4.9 of the framework (Zend Advisory, GitHub Advisory).

Technical details

The vulnerability stems from the use of PHP's array_rand() function in the CAPTCHA word generation process. This function relies on the rand() function, which provides insufficient entropy compared to more secure cryptographic methods like openssl_pseudo_random_bytes(). The issue has been assigned a moderate severity rating with a CVSS score of 5.3, with the following base metrics: Network attack vector, Low attack complexity, No privileges required, No user interaction, Unchanged scope, Low confidentiality impact, and No impact on integrity or availability. The vulnerability is classified under CWE-200 (Information Exposure) and CWE-331 (Insufficient Entropy) (GitHub Advisory).

Impact

The primary impact of this vulnerability is potential information disclosure. An attacker could potentially predict or brute force the random number generation used in CAPTCHA word creation, potentially compromising the security of the CAPTCHA system (Zend Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple versions: Zend Framework 1.12.17, Zend Framework 2.4.9, zend-captcha 2.4.9, and zend-captcha 2.5.2. The fix involves replacing array_rand() with more secure random number generation methods - Zend_Crypt_Math::randInteger() in version 1 and Zend\Math\Rand::getInteger() in version 2. Users are recommended to upgrade to these patched versions (Zend Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-51511CRITICAL9.8
  • PHPPHP
  • cadmium-org/cadmium-cms
NoNoDec 23, 2025
CVE-2025-14180HIGH8.2
  • PHPPHP
  • php-ldap-debuginfo
NoYesDec 27, 2025
CVE-2025-14178MEDIUM6.5
  • PHPPHP
  • php85
NoYesDec 27, 2025
CVE-2024-42718MEDIUM6.5
  • PHPPHP
  • croogo/croogo
NoNoDec 26, 2025
CVE-2025-14177MEDIUM6.3
  • PHPPHP
  • php-dba
NoYesDec 27, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management