CVE-2021-37704: PhpFastCache is a high-performance backend cache system (packagist package phpfastcache/phpfastcache)
CVE-2021-37704 is a medium-severity flaw (CVSS 5.4) affecting phpfastcache. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- EPSS top 7%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Nuclei scan template: phpfastcache - phpinfo Resource Exposure
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-37704?
phpfastcache: upgrade to 6.1.5, 7.1.2, 8.0.7. Exact commands for each OS are on this page.
Is CVE-2021-37704 being exploited?
CVE-2021-37704 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-37704 affect?
CVE-2021-37704 affects phpfastcache. Severity is medium (CVSS 5.4). 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
How urgent is CVE-2021-37704?
Priority 47/100. EPSS top 7%: very likely to be exploited; Public exploit reference