Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
MEDIUM severity

CVE-2021-37704 — phpfastcache

MEDIUMFix: PHPSocialNetwork/phpfastcache@41a77d0

CVE-2021-37704 is a medium-severity (CVSS 4.3) Information Exposure vulnerability in phpfastcache/phpfastcache. 1 public exploit reference exists, so weaponization risk is real. A fix is available for phpfastcache/phpfastcache — see the affected versions and patch details below.

Exposed phpinfo() leadked via documentation files

Also known asGHSA-cvh5-p6r6-g2qc
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
1 known
Exploitation data as of Oct 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
6.1%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs93th percentile — riskier than 93% of all scored CVEsHighest risk
0.00%22.4%44.8%67.2%53.1%6.1%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2021-37704 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,386 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

3 pkgs affected
🐘phpfastcache/phpfastcache🐘phpfastcache/phpfastcache🐘phpfastcache/phpfastcache

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

Description

Impact

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).

Patches

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.

Workarounds

Protect the /vendor directory from public access.

References

The first issue revealing this vulnerability is located here: https://github.com/flextype/flextype/issues/567 V6 fix: https://github.com/PHPSocialNetwork/phpfastcache/pull/815 V7 fix: https://github.com/PHPSocialNetwork/phpfastcache/pull/814 V8 fix: https://github.com/PHPSocialNetwork/phpfastcache/pull/813

For more information

If you have any questions or comments about this advisory:

Affected Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistphpfastcache/phpfastcacheall versions6.1.5composer require phpfastcache/phpfastcache:^6.1.5
🐘Packagistphpfastcache/phpfastcache≥ 7.0.0&&< 7.1.27.1.2composer require phpfastcache/phpfastcache:^7.1.2
🐘Packagistphpfastcache/phpfastcache≥ 8.0.0&&< 8.0.78.0.7composer require phpfastcache/phpfastcache:^8.0.7

Affected Products

1 product · 3 configurations
Application
phpfastcachephpfastcache
≥ 8.0.0 && < 8.0.7
range
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for phpfastcache/phpfastcache, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update phpfastcache/phpfastcache to 6.1.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-37704 is resolved across your whole dependency graph.

  3. Workarounds

    Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.

How to detect CVE-2021-37704

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2021-37704 -u https://target
Template
phpfastcache - phpinfo Resource Exposure
Severity
medium
Impact
An attacker can gain access to sensitive information, such as server configuration details, PHP version, and installed extensions.
Remediation
Remove or restrict access to the phpinfo.php file in the phpfastcache library.

Template by ProjectDiscovery nuclei-templates (whoever), MIT licensed. View the full template. Scan only systems you are authorised to test.

Frequently Asked Questions

### Impact 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). ### Patches 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. ### Workarounds Protect the `/vendor` directory from public access. ### References The first issue revealing this vulnerability is located here: https://github.com/flextype/flextype
O3 Security · Impact-Aware SCA

Is CVE-2021-37704 in your dependencies?

Find it across Packagist, including transitive dependencies.

CVE-2021-37704: phpfastcache — Fixed in 6.1.5