CVE-2023-25575
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.
Weakness
- CWE-842: Placement of User into Incorrect Group
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-03-07 |
Timeline
- 2023-02-28Published by the CNA22:21 UTC
- 2023-02-28GitHub advisory published (GHSA-vr2x-7687-h6qv)same day
- 2025-03-07CISA SSVC decision recorded738 days after publication
Exploit and advisory records
GitHub advisory GHSA-vr2x-7687-h6qv, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist api-platform/core | from 2.6.0 before 2.7.10 | 2.7.10 |
| Packagist api-platform/core | from 3.0.0 before 3.0.12 | 3.0.12 |
| Packagist api-platform/core | from 3.1.0 before 3.1.3 | 3.1.3 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| api-platform core | from 2.6.0 before 2.7.10fixed in 2.7.10from 3.0.0 before 3.0.12fixed in 3.0.12from 3.1.0 before 3.1.3fixed in 3.1.3 | 2.7.103.0.123.1.3 |
References
- https://github.com/api-platform/core/commit/5723d68369722feefeb11e42528d9580db5dd0fb
- https://github.com/api-platform/core/security/advisories/GHSA-vr2x-7687-h6qv
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2023-25575'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2023-25575'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2023-25575'curl 'https://api.contrastcyber.com/cve_products/CVE-2023-25575'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).