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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | phpfastcache/phpfastcache | 6.1.5 | GHSA-cvh5-p6r6-g2qc |
| Packagist | phpfastcache/phpfastcache | 7.1.2 | GHSA-cvh5-p6r6-g2qc |
| Packagist | phpfastcache/phpfastcache | 8.0.7 | GHSA-cvh5-p6r6-g2qc |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/PHPSocialNetwork/phpfastcache/security/advisories/GHSA-cvh5-p6r6-g2qc x_refsource_CONFIRM
- https://github.com/flextype/flextype/issues/567 x_refsource_MISC
- https://github.com/PHPSocialNetwork/phpfastcache/pull/813 x_refsource_MISC
- https://github.com/PHPSocialNetwork/phpfastcache/pull/814 x_refsource_MISC
- https://github.com/PHPSocialNetwork/phpfastcache/pull/815 x_refsource_MISC
- https://github.com/PHPSocialNetwork/phpfastcache/commit/41a77d0d8f126dbd6fbedcd9e6a82e86cdaafa51 x_refsource_MISC
- https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CHANGELOG.md#807 x_refsource_MISC
- https://packagist.org/packages/phpfastcache/phpfastcache x_refsource_MISC