CVE-2021-37704
MEDIUM 4.3CVSS 3.1Exposed phpinfo() leadked via documentation files
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.
- Published
- 12 Aug 2021
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-668
- Also known as
- GHSA-cvh5-p6r6-g2qc
- Sources
- NVDJSONOSV GHSA-cvh5-p6r6-g2qcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phpfastcache | phpfastcachecpe:2.3:a:phpfastcache:phpfastcache:*:*:*:*:*:*:*:* |
< 6.1.5 | 6.1.5 |
| NVD | phpfastcache | phpfastcachecpe:2.3:a:phpfastcache:phpfastcache:*:*:*:*:*:*:*:* |
>= 7.0.0, < 7.1.2 | 7.1.2 |
| NVD | phpfastcache | phpfastcachecpe:2.3:a:phpfastcache:phpfastcache:*:*:*:*:*:*:*:* |
>= 8.0.0, < 8.0.7 | 8.0.7 |
| OSV | Packagist | phpfastcache/phpfastcache | < 6.1.5 | 6.1.5 |
| OSV | Packagist | phpfastcache/phpfastcache | >= 7.0.0, < 7.1.2 | 7.1.2 |
| OSV | Packagist | phpfastcache/phpfastcache | >= 8.0.0, < 8.0.7 | 8.0.7 |
References
- https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CHANGELOG.md#807 · Release Notes, Third Party Advisory, WEB
- https://github.com/PHPSocialNetwork/phpfastcache/commit/41a77d0d8f126dbd6fbedcd9e6a82e86cdaafa51 · Patch, Third Party Advisory, WEB
- https://github.com/PHPSocialNetwork/phpfastcache/pull/813 · Patch, Third Party Advisory, WEB
- https://github.com/PHPSocialNetwork/phpfastcache/pull/814 · Third Party Advisory, WEB
- https://github.com/PHPSocialNetwork/phpfastcache/pull/815 · Third Party Advisory, WEB
- https://github.com/PHPSocialNetwork/phpfastcache/security/advisories/GHSA-cvh5-p6r6-g2qc · Third Party Advisory, WEB
- https://github.com/flextype/flextype/issues/567 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://packagist.org/packages/phpfastcache/phpfastcache · Product, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-37704 · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 12 Aug 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 30 Aug 2021)