Read the docs
TI-2024-38928 Aliases GHSA-xg9w-r469-m455

ZendFramework Potential Information Disclosure and Insufficient Entropy vulnerabilities

Priority LOW 38CWE-330Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

In Zend Framework 2, the `Zend\Math\Rand` component generates random bytes using the OpenSSL or Mcrypt extensions when available but will otherwise use PHP's `mt_rand()` function as a fallback. All outputs from `mt_rand()` are predictable for the same PHP process if an attacker can brute force the seed used by the Marsenne-Twister algorithm in a Seed Recovery Attack. This attack can be successfully applied with minimum effort if the attacker has access to either a random number from `mt_rand()` or a Session ID generated without using additional entropy. This makes `mt_rand()` unsuitable for generating non-trivial random bytes since it has Insufficient Entropy to protect against brute force attacks on the seed. The `Zend\Validate\Csrf` component generates CSRF tokens by SHA1 hashing a salt, random number possibly generated using `mt_rand()` and a form name. Where the salt is known, an attacker can brute force the SHA1 hash with minimum effort to discover the random number when `mt_rand()` is utilised as a fallback to the OpenSSL and Mcrypt extensions. This constitutes an Information Disclosure where the recovered random number may itself be brute forced to recover the seed value and predict the output of other `mt_rand()` calls for the same PHP process. This may potentially lead to vulnerabilities in areas of an application where `mt_rand()` calls exist beyond the scope of Zend Framework.

Why it matters now

Fix Fixed zendframework/zendframework (Packagist): 2.0.8, 2.1.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—zendframework/zendframework (Packagist)2.0.0 to before 2.0.82.0.8Patch availableGHSA-xg9w-r469-m455
—zendframework/zendframework (Packagist)2.1.0 to before 2.1.42.1.4Patch availableGHSA-xg9w-r469-m455
  • zendframework/zendframework (Packagist) Vendor— Affected 2.0.0 to before 2.0.8 Fixed in 2.0.8 Patch available GHSA-xg9w-r469-m455
  • zendframework/zendframework (Packagist) Vendor— Affected 2.1.0 to before 2.1.4 Fixed in 2.1.4 Patch available GHSA-xg9w-r469-m455

Remediation

  • Fix · GHSA-xg9w-r469-m455 zendframework/zendframework (Packagist) Fixed in 2.0.8 Advisory →
  • Fix · GHSA-xg9w-r469-m455 zendframework/zendframework (Packagist) Fixed in 2.1.4 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-xg9w-r469-m455

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences