Information disclosure in Phpfastcache
CVE-2021-37704
PhpFastCache is a high-performance backend cache system (packagist package phpfastcache/phpfastcache). In versions before 6.1.5, 7.1.2, and 8.0.7 the `phpinfo()` can be exposed if the `/vendor` is not protected from public access. This is a rare situation today since the vendor directory is often located outside the web directory or protected via server rule (.htaccess, etc). Only the v6, v7 and v8 will be patched respectively in 8.0.7, 7.1.2, 6.1.5. Older versions such as v5, v4 are not longer supported and will **NOT** be patched. As a workaround, protect the `/vendor` directory from public access.
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L.
EPSS exploit prediction
EPSS 0.051, 92.5th percentile (last changed ); down from 0.059 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.059 · newest: 0.051 · change: -0.008
Affected products
- Phpfastcache
- Phpsocialnetwork Phpfastcache — versions < 6.1.5, >= 7.0.0, < 7.1.2, >= 8.0.0, < 8.0.7
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 7 other repositories (anonymous364872/Rapier_Tool, apif-review/APIF_tool_2024, apit-review-account/apit-tool, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/PHPSocialNetwork/phpfastcache/security/advisories/GHSA-cvh5-p6r6-g2qc (Third Party Advisory)
- github.com/flextype/flextype/issues/567 (Exploit, Third Party Advisory, Issue Tracking)
- github.com/PHPSocialNetwork/phpfastcache/pull/813 (Patch, Third Party Advisory)
- github.com/PHPSocialNetwork/phpfastcache/pull/814 (Third Party Advisory)
- github.com/PHPSocialNetwork/phpfastcache/pull/815 (Third Party Advisory)
- github.com/PHPSocialNetwork/phpfastcache/commit/41a77d0d8f126dbd6fbedcd9e6a82e8… (Patch, Third Party Advisory)
- github.com/PHPSocialNetwork/phpfastcache/blob/master/CHANGELOG.md (Third Party Advisory, Release Notes)
- packagist.org/packages/phpfastcache/phpfastcache (Product, Third Party Advisory)