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.

Severity
HIGH
CVSS v3
7.7
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N · source cna
Exploit chance (EPSS)
0.604%
chance of exploitation in the next 30 days
higher than 49.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impactpartial
Scored2025-03-07

Timeline

  1. 2023-02-28Published by the CNA22:21 UTC
  2. 2023-02-28GitHub advisory published (GHSA-vr2x-7687-h6qv)same day
  3. 2025-03-07CISA SSVC decision recorded738 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-vr2x-7687-h6qv, affected packages:

PackageVulnerable versionsFixed in
Packagist api-platform/corefrom 2.6.0 before 2.7.102.7.10
Packagist api-platform/corefrom 3.0.0 before 3.0.123.0.12
Packagist api-platform/corefrom 3.1.0 before 3.1.33.1.3

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
api-platform corefrom 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.32.7.103.0.123.1.3

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources