# CVE-2023-25575: Secured properties in API Platform Core may be accessible within collections

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.7
- **CVSS:** 7.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.64% (percentile 45, 2026-11-26)
- **CWE:** CWE-842
- **Aliases:** GHSA-vr2x-7687-h6qv
- **Published:** 2023-02-28T22:21:48.730Z
- **Modified:** 2026-09-10T03:49:52.271Z

## 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

## 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

- Packagist `api-platform/core`: affected \>= 3.0.0, \< 3.0.12; fixed 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)

## Mitigation

- Upgrade api-platform/core to one of 3.0.12, 3.1.3, 2.7.10 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/api-platform/core/security/advisories/GHSA-vr2x-7687-h6qv>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-25575>
- patch: <https://github.com/api-platform/core/commit/5723d68369722feefeb11e42528d9580db5dd0fb>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/core/CVE-2023-25575.yaml>
- other: <https://github.com/api-platform/core>
- other: <https://github.com/api-platform/core/releases/tag/v2.7.10>
- other: <https://github.com/api-platform/core/releases/tag/v3.0.12>
- other: <https://github.com/api-platform/core/releases/tag/v3.1.3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-25575>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-vr2x-7687-h6qv> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-25575> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-25575>
