CVE-2023-25575
Secured properties in API Platform Core may be accessible within collections
Also known as GHSA-vr2x-7687-h6qv
Mitigation
- Upgrade api-platform/core to one of 3.0.12, 3.1.3, 2.7.10 (or later in the same release line).
Who should check
- Projects that depend on Packagist package api-platform/core (>= 3.0.0, < 3.0.12)
- Anyone running api-platform core >= 3.0.0, < 3.0.12; >= 3.1.0, < 3.1.3; >= 2.6.0, < 2.7.10
Vulnerability facts
- Affected
- api-platform/core >= 3.0.0, < 3.0.12
- Fixed in
- 3.0.12, 3.1.3, 2.7.10
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.64% chance of exploitation in 30 days (percentile 45, 2026-11-26)
- CWE
- CWE-842
- Modified
Description
API Platform Core is the server component of API Platform: hypermedia and GraphQL APIs. Resource properties secured with the `security` option of the `ApiPlatform\Metadata\ApiProperty` attribute can be disclosed to unauthorized users. The problem affects most serialization formats, including raw JSON, which is enabled by default when installing API Platform. Custom serialization formats may also be impacted. Only collection endpoints are affected by the issue, item endpoints are not. The JSON-LD format is not affected by the issue. The result of the security rule is only executed for the first item of the collection. The result of the rule is then cached and reused for the next items. This bug can leak data to unauthorized users when the rule depends on the value of a property of the item. This bug can also hide properties that should be displayed to authorized users. This issue impacts the 2.7, 3.0 and 3.1 branches. Please upgrade to versions 2.7.10, 3.0.12 or 3.1.3. As a workaround, replace the `cache_key` of the context array of the Serializer inside a custom normalizer that works on objects if the security option of the `ApiPlatform\Metadata\ApiProperty` attribute is used.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist api-platform/core | >= 3.0.0, < 3.0.12 | 3.0.12, 3.1.3, 2.7.10 | osv |
| api-platform core | >= 3.0.0, < 3.0.12; >= 3.1.0, < 3.1.3; >= 2.6.0, < 2.7.10 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-25575. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-25575.md Affected: api-platform/core >= 3.0.0, < 3.0.12 Fixed in: 3.0.12, 3.1.3, 2.7.10 Steps: 1. Search this machine and project for api-platform/core (Packagist), api-platform core: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/core/CVE-2023-25575.yaml
- https://github.com/api-platform/core
- https://github.com/api-platform/core/releases/tag/v2.7.10
- https://github.com/api-platform/core/releases/tag/v3.0.12
- https://github.com/api-platform/core/releases/tag/v3.1.3
FAQ
Is CVE-2023-25575 being exploited?
There is no confirmed exploitation: CVE-2023-25575 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.64% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-25575?
High: CVSS 7.7 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2023-25575?
api-platform/core >= 3.0.0, < 3.0.12.
Is there a fix for CVE-2023-25575?
Yes. Fixed in 3.0.12, 3.1.3, 2.7.10. Upgrade api-platform/core to one of 3.0.12, 3.1.3, 2.7.10 (or later in the same release line).
How do I check if I'm affected by CVE-2023-25575?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.