cve.bz

CVE-2021-37704 phpfastcache phpfastcache: Exposure of Resource to Wrong Sphere

4.3 mediumExploit referenceEPSS 5.1%Fix available

Medium (4.3) in phpfastcache phpfastcache. EPSS 5.1% estimated probability of exploitation activity in the next 30 days. Fixed in phpfastcache/phpfastcache 6.1.5, 7.1.2, 8.0.7.

On this page
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.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS
5.1% (unchanged from 5.1% a week ago; 5.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-668 Exposure of Resource to Wrong Sphere
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-37704 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-37704?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-37704?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-37704 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
phpfastcache:phpfastcachebefore 6.1.5
phpfastcache:phpfastcachefrom 7.0.0 before 7.1.2
phpfastcache:phpfastcachefrom 8.0.0 before 8.0.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cvh5-p6r6-g2qcPackagistphpfastcache/phpfastcache<6.1.56.1.5
GHSA-cvh5-p6r6-g2qcPackagistphpfastcache/phpfastcache>=7.0.0 <7.1.27.1.2
GHSA-cvh5-p6r6-g2qcPackagistphpfastcache/phpfastcache>=8.0.0 <8.0.78.0.7

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON