LiveActive security incident?Get immediate response
CVE Record

CVE-2021-37704: Exposed phpinfo() in PhpFastCache

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.

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Some PhpFastCache deployments could accidentally expose PHP environment details through a phpinfo() page when the Composer vendor directory is publicly reachable. The vendor says this is uncommon, but exposed configuration data can still help attackers profile systems.

Executive priority

Treat this as a moderate hygiene issue. Prioritize internet-facing PHP applications and any legacy deployments where vendor directories may be exposed, but do not treat it as confirmed exploited based on the supplied sources.

Technical view

CVE-2021-37704 is a CWE-200 information exposure issue in phpfastcache. Versions before 6.1.5, 7.1.2, and 8.0.7 may expose phpinfo() if /vendor is not protected from public access. The published CVSS v3.1 score is 5.4.

Likely exposure

Exposure is limited to PHP applications using affected phpfastcache v6, v7, or v8 ranges and deploying /vendor where it is web-accessible. The advisory states this is rare today. Versions v4 and v5 are unsupported and are not patched.

Exploitation context

The source bundle does not report active exploitation, and KEV status is false. The issue is primarily configuration-dependent: package version matters, but public reachability of /vendor is the deciding exposure condition.

Researcher notes

Focus analysis on deployment layout and package version. The advisory frames exposure as rare and dependent on unprotected /vendor access. No source in the bundle establishes exploitation in the wild or broader affected products beyond phpfastcache.

Mitigation direction

  • Upgrade phpfastcache to 6.1.5, 7.1.2, 8.0.7, or later supported versions.
  • Block public web access to the Composer /vendor directory.
  • Move /vendor outside the public web root where possible.
  • Replace unsupported v4 or v5 deployments with a supported release line.
  • Check vendor advisories before relying on compensating controls alone.

Validation and detection

  • Inventory composer.lock for phpfastcache/phpfastcache and confirm installed versions.
  • Review web server rules to ensure /vendor is denied publicly.
  • Confirm applications do not publish Composer vendor files from the web root.
  • Identify unsupported v4 or v5 usage for replacement planning.
  • Record whether remediation is version upgrade, path isolation, or access control.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-200: Information exposure and cloud metadata lookup

Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-37704 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.4 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
9Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L2.82.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.4Medium
CVSS 3.1 vector shape for CVE-2021-37704Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
PHPSocialNetworkphpfastcache< 6.1.5, >= 7.0.0, < 7.1.2, >= 8.0.0, < 8.0.7Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-200 · source CWE mapping

Exposure of Sensitive Information to an Unauthorized Actor

Exposure of Sensitive Information to an Unauthorized Actor represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.