Object injection in cookie driver in phpfastcache
Published 12 Dec 2019 · Updated 8 Jul 2026
Is your project on an affected phpfastcache/phpfastcache?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=5.0.0 <5.0.13
- Fixed in
- 5.0.13
composer require phpfastcache/phpfastcache:^5.0.13Details
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 [security@geolim4.com](mailto:security@geolim4.com)
Is GHSA-484f-743f-6jx2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected phpfastcache/phpfastcache, and gives you the command that fixes it.
More advisories for phpfastcache/phpfastcache
- MediumCVE-2021-37704Exposed phpinfo() leadked via documentation files · 30 Aug 2021
References
- Linkgithub.com/PHPSocialNetwork/phpfastcache/security/advisories/GHSA-484f-743f-6jx2
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-16774
- Linkgithub.com/PHPSocialNetwork/phpfastcache/commit/c4527205cb7a402b595790c74310791f5b04a1a4
- Packagegithub.com/PHPSocialNetwork/phpfastcache
- Linkgithub.com/PHPSocialNetwork/phpfastcache/releases/tag/5.0.13
- Advisorygithub.com/advisories/GHSA-484f-743f-6jx2
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.