CVE-2025-31485

Source
https://cve.org/CVERecord?id=CVE-2025-31485
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31485.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-31485
Aliases
Published
2025-04-03T19:31:46.021Z
Modified
2026-04-10T05:25:01.946757Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
GraphQL grant on a property might be cached with different objects
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31485.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-696"
    ]
}
References

Affected packages

Git / github.com/api-platform/core

Affected ranges

Type
GIT
Repo
https://github.com/api-platform/core
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
GIT
Repo
https://github.com/api-platform/core
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
GIT
Repo
https://github.com/api-platform/core
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other
push
remove
v1.*
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v2.*
v2.0.0
v2.0.0-alpha.1
v2.0.0-alpha.2
v2.0.0-beta.1
v2.0.0-beta.2
v2.0.0-beta.3
v2.0.0-rc.1
v2.0.0-rc.2
v2.0.0-rc.3
v2.0.0-rc.4
v2.0.0-rc.5
v2.0.0-rc.6
v2.1.0
v2.1.0-beta.1
v2.1.0-beta.2
v2.2.0
v2.2.0-beta.1
v2.2.0-beta.2
v2.2.1
v2.3.0
v2.3.0-beta.1
v2.4.0-beta.1
v2.5.0-beta.1
v2.6.0
v2.6.0-alpha.1
v2.6.0-beta.1
v2.7.0-alpha.1
v2.7.0-alpha.2
v3.*
v3.0.0
v3.0.0-beta.2
v3.0.0-rc.1
v3.0.0-rc.2
v3.2.0-alpha.1
v3.2.0-alpha.2
v3.3.0-alpha.1
v3.3.0-alpha.2
v3.3.0-beta.1
v3.3.0-beta.2
v3.4.0
v3.4.0-alpha.1
v3.4.0-alpha.2
v3.4.0-alpha.3
v3.4.0-alpha.4
v3.4.0-alpha.5
v3.4.0-alpha.6
v3.4.0-alpha.7
v3.4.0-beta.1
v3.4.1
v3.4.10
v3.4.11
v3.4.14
v3.4.15
v3.4.16
v3.4.2
v3.4.3
v3.4.4
v3.4.5
v3.4.6
v3.4.7
v3.4.8
v3.4.9
v4.*
v4.0.0-alpha.1
v4.0.0-alpha.2
v4.0.0-alpha.3
v4.0.0-alpha.4
v4.0.0-alpha.5
v4.0.0-alpha.6
v4.0.0-alpha.7
v4.0.0-beta.1
v4.0.0-beta.2
v4.0.1
v4.0.10
v4.0.11
v4.0.12
v4.0.13
v4.0.14
v4.0.15
v4.0.16
v4.0.17
v4.0.18
v4.0.19
v4.0.2
v4.0.20
v4.0.21
v4.0.3
v4.0.4
v4.0.5
v4.0.6
v4.0.7
v4.0.8
v4.0.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31485.json"