Vulnerability · Published Aug 12, 2021 · Assigned by GitHub_M

CVE-2021-37704Exposed phpinfo() in PhpFastCache

Medium 5.4

In plain English

A medium-severity information exposure in phpfastcache from PHPSocialNetwork. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.9% (higher than 93% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)5.9%top 6.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Nuclei

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistphpfastcache/phpfastcache6.1.5GHSA-cvh5-p6r6-g2qc
Packagistphpfastcache/phpfastcache7.1.2GHSA-cvh5-p6r6-g2qc
Packagistphpfastcache/phpfastcache8.0.7GHSA-cvh5-p6r6-g2qc

Affected products (as reported)

VendorProductVersions
PHPSocialNetwork phpfastcache < 6.1.5>= 7.0.0, < 7.1.2>= 8.0.0, < 8.0.7

Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L

References