CVE-2019-16774 is a critical-severity (CVSS 9.8) Code Injection vulnerability in phpfastcache/phpfastcache. A fix is available for phpfastcache/phpfastcache — see the affected versions and patch details below.
Object injection in cookie driver in phpfastcache
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
phpfastcache/phpfastcacheReal-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
An possible object injection has been discovered in cookie driver prior 5.0.13 versions (of 5.x releases).
Patches
The issue has been addressed by enforcing JSON conversion when deserializing
Workarounds
If you can't fix it, use another driver such as "Files" (Filesystem)
References
Fixing release: https://github.com/PHPSocialNetwork/phpfastcache/releases/tag/5.0.13
For more information
If you have any questions or comments about this advisory:
- Open an issue in the issue tracker
- Email us at [email protected]
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | phpfastcache/phpfastcache | ≥ 5.0.0&&< 5.0.13 | 5.0.13composer require phpfastcache/phpfastcache:^5.0.13 |
Affected Products
phpfastcachephpfastcacheDetection & mitigation playbook
Open-source dependencyDetect
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.
Fix
Update phpfastcache/phpfastcache to 5.0.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2019-16774 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Frequently Asked Questions
Is CVE-2019-16774 in your dependencies?
Find it across Packagist, including transitive dependencies.