{"id":"CVE-2021-37704","published":"2021-08-12T20:05:16Z","modified":"2024-08-04T01:23:01Z","title":"Exposed phpinfo() in PhpFastCache","vendor":"PHPSocialNetwork","product":"phpfastcache","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05128,"percentile":0.92589,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/PHPSocialNetwork/phpfastcache/security/advisories/GHSA-cvh5-p6r6-g2qc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/flextype/flextype/issues/567","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/813","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/814","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/815","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/commit/41a77d0d8f126dbd6fbedcd9e6a82e86cdaafa51","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CHANGELOG.md#807","tags":["x_refsource_MISC"]},{"url":"https://packagist.org/packages/phpfastcache/phpfastcache","tags":["x_refsource_MISC"]}],"priority":{"score":27.3,"factors":[{"name":"EPSS percentile","points":18.52},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.78}]},"exploitSources":{"nuclei":[{"id":"CVE-2021-37704","name":"phpfastcache - phpinfo Resource Exposure","severity":"medium","path":"http/cves/2021/CVE-2021-37704.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-37704.yaml"}],"provenance":"source"},"vendorSlug":"phpsocialnetwork","affectedVersions":[{"vendor":"PHPSocialNetwork","product":"phpfastcache","versions":["< 6.1.5",">= 7.0.0, < 7.1.2",">= 8.0.0, < 8.0.7"]}],"affected":[{"ecosystem":"Packagist","package":"phpfastcache/phpfastcache","vulnerableRanges":["<6.1.5",">=7.0.0, <7.1.2",">=8.0.0, <8.0.7"],"patched":["6.1.5","7.1.2","8.0.7"],"from":["GHSA-cvh5-p6r6-g2qc"],"provenance":"source"}],"summary":{"text":"PhpFastCache, a PHP backend cache library (phpfastcache/phpfastcache), exposes its phpinfo() output in versions before 6.1.5, 7.1.2 and 8.0.7 when the vendor directory is publicly reachable over the web. An attacker with network access who can request files under /vendor, and who holds low-privilege authentication, can view the phpinfo() page and the configuration details it reveals, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:56:45Z"},"euvd":{"id":"EUVD-2021-1686","exploited":false,"provenance":"source"}}