Every CVE Search/ Get API key

CVE-2021-37704

Exposed phpinfo() in PhpFastCache

5.4 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
Low

Exploit likelihood

5.89%Up 3.9 points since Aug 13, 2021
90%50%10%1%

What each source reports

CVE List Score used 5.4

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.

Record
CVE-2021-37704
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
Weakness
CWE-200
Updated
2026-11-02
EUVDEUVD-2021-1686 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 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.

Record
EUVD-2021-1686
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
Updated
2026-11-03
GitHub AdvisoriesGHSA-cvh5-p6r6-g2qc 5.4

Exposed phpinfo() leadked via documentation files

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:

Record
GHSA-cvh5-p6r6-g2qc
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
Weakness
CWE-200, CWE-668
Updated
2026-11-02
NVD 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 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.

Record
CVE-2021-37704
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
CVSS 2.0
4.0 MediumAV:N/AC:L/Au:S/C:P/I:N/A:N
Weakness
CWE-200, CWE-668
Updated
2026-11-02
OSV 4.3

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.

Record
CVE-2021-37704
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVGHSA-cvh5-p6r6-g2qc 5.4

Exposed phpinfo() leadked via documentation files

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:

Record
GHSA-cvh5-p6r6-g2qc
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
Weakness
CWE-200, CWE-668
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
phpfastcache/phpfastcache
Packagist
before 6.1.5
6.1.5
phpfastcache/phpfastcache
Packagist
7.0.0 up to 7.1.2
7.1.2
phpfastcache/phpfastcache
Packagist
8.0.0 up to 8.0.7
8.0.7
phpfastcache/phpfastcache
Packagist
before 6.1.5, plus listed versions
2.4.22.4.33.0.03.0.13.0.10
Show 45 moreShow less
3.0.113.0.123.0.133.0.143.0.153.0.163.0.173.0.183.0.193.0.23.0.203.0.213.0.223.0.233.0.243.0.253.0.263.0.273.0.283.0.33.0.43.0.53.0.63.0.73.0.83.0.93.1.03.1.14.04.0.14.0.104.0.114.0.124.0.134.0.144.0.154.0.164.0.174.0.184.0.24.0.2beta14.0.34.0.3-beta14.0.44.0.5
6.1.5
phpfastcache/phpfastcache
Packagist
7.0.0 up to 7.1.2, plus listed versions
7.0.17.0.27.0.37.0.47.0.57.1.07.1.1
7.1.2
phpfastcache/phpfastcache
Packagist
8.0.0 up to 8.0.7, plus listed versions
8.0.18.0.28.0.38.0.48.0.58.0.6
8.0.7

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
Nucleiphpfastcache - phpinfo Resource Exposure

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, Nuclei, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-37704 is a medium vulnerability (CVSS 5.4) in Phpfastcache, published August 12, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.89%, the 93rd percentile. Fixed in phpfastcache/phpfastcache 6.1.5.

References

Show 4 moreShow less
This page doesn't list everything

Left out here: 80 versions. The JSON record has them.

MoveEnter Open