Api-platform core
GraphQL grant on a property might be cached with different objects
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Prior to 4.0.22 and 3.4.17, a GraphQL grant on a property might be cached with different objects. The ApiPlatform\GraphQl\Serializer\ItemNormalizer::isCacheKeySafe() method is meant to prevent the caching but the parent::normalize method that is called afterwards still creates the cache key and causes the issue. This vulnerability is fixed in 4.0.22 and 3.4.17.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-696
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
api-platform core
- >= 4.0.0-alpha.1, < 4.0.22
- < 3.4.17
Fixed in 4.0.22, 3.4.17
Mitigation
Upgrade core to 4.0.22 or 3.4.17 or later.
References
- Vendor advisory github.com/api-platform/core/security/advisori…
- Patch github.com/api-platform/core/commit/7af65aad13…
- Patch github.com/api-platform/core/commit/cba3acfbd5…
1 more
- Release notes github.com/api-platform/core/releases/tag/v3.4…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.