{"id":"CVE-2021-37704","aliases":["CVE-2021-37704","GHSA-cvh5-p6r6-g2qc"],"related":[],"kind":"vulnerability","state":"published","title":"Exposed phpinfo() in PhpFastCache","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe `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).\n\n### Patches\nOnly the v6, v7 and v8 will be patched respectively in 8.0.7, 7.1.2, 6.1.5.\nOlder versions such as v5, v4 are not longer supported and will **NOT** be patched.\n\n### Workarounds\nProtect the `/vendor` directory from public access.\n\n### References\nThe first issue revealing this vulnerability is located here: https://github.com/flextype/flextype/issues/567\nV6 fix: https://github.com/PHPSocialNetwork/phpfastcache/pull/815\nV7 fix: https://github.com/PHPSocialNetwork/phpfastcache/pull/814\nV8 fix: https://github.com/PHPSocialNetwork/phpfastcache/pull/813\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [our issue tracker](https://github.com/PHPSocialNetwork/phpfastcache/issues)\n* Email us at [security@geolim4.com](mailto:security@geolim4.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"PhpFastCache es un sistema de caché backend de alto rendimiento (paquete phpfastcache/phpfastcache). En versiones anteriores a 6.1.5, 7.1.2 y 8.0.7 la función \"phpinfo()\" puede quedar expuesto si el directorio \"/vendor\" no está protegido del acceso público. Esta es una situación rara hoy en día ya que el directorio vendor suele estar situado fuera del directorio web o protegido por medio de una regla del servidor (.htaccess, etc). Sólo las versiones v6, v7 y v8 serán parcheadas respectivamente en las versiones 8.0.7, 7.1.2, 6.1.5. Las versiones más antiguas, como la v5 y la v4, ya no son compatibles y **NO** serán parcheadas. Como solución, proteja el directorio \"/vendor\" del acceso público","source":"nvd"}],"published":"2021-08-12T20:05:16.000Z","modified":"2026-09-10T03:49:07.936Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-668"],"affected":[{"ranges":[{"version":"< 6.1.5","status":"affected"},{"version":">= 7.0.0, < 7.1.2","status":"affected"},{"version":">= 8.0.0, < 8.0.7","status":"affected"}],"vendor":"PHPSocialNetwork","product":"phpfastcache","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.1.5"}],"ecosystem":"Packagist","package":"phpfastcache/phpfastcache","purl":"pkg:composer/phpfastcache/phpfastcache","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.1.2"}],"ecosystem":"Packagist","package":"phpfastcache/phpfastcache","purl":"pkg:composer/phpfastcache/phpfastcache","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.0.7"}],"ecosystem":"Packagist","package":"phpfastcache/phpfastcache","purl":"pkg:composer/phpfastcache/phpfastcache","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.1.5"},{"status":"affected","introduced":"7.0.0","fixed":"7.1.2"},{"status":"affected","introduced":"8.0.0","fixed":"8.0.7"}],"vendor":"phpfastcache","product":"phpfastcache","cpe":"cpe:2.3:a:phpfastcache:phpfastcache:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/PHPSocialNetwork/phpfastcache/security/advisories/GHSA-cvh5-p6r6-g2qc","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/flextype/flextype/issues/567","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/813","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/814","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/pull/815","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/commit/41a77d0d8f126dbd6fbedcd9e6a82e86cdaafa51","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PHPSocialNetwork/phpfastcache/blob/master/CHANGELOG.md#807","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://packagist.org/packages/phpfastcache/phpfastcache","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37704","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-37704","url":"https://www.cve.org/CVERecord?id=CVE-2021-37704","licence":"CVE Terms of Use","modified":"2024-08-04T01:23:01.504Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cvh5-p6r6-g2qc","url":"https://github.com/advisories/GHSA-cvh5-p6r6-g2qc","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:07.936Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-37704","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37704","licence":"Public domain","modified":"2026-06-17T04:01:01.280Z"}],"updatedAt":"2026-11-25T22:58:03.177Z","epss":{"score":0.05128,"percentile":0.92572,"date":"2026-12-01T12:00:22.000Z"}}