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

7.7HIGH

Key Information:

Status
Vendor
CVE Published:
28 February 2023

What is CVE-2023-25575?

API Platform Core, utilized for developing hypermedia and GraphQL APIs, contains a vulnerability that exposes resource properties to unauthorized users due to improper implementation of the security option within the ApiPlatform\Metadata\ApiProperty attribute. This issue primarily affects serialization formats like raw JSON, which is enabled by default. The vulnerability impacts collection endpoints, where the security rule is only imposed on the first item and its outcome is cached for subsequent items, potentially leaking sensitive data. Furthermore, properties that should be viewable by authorized users may be obscured, compromising data integrity. Users are encouraged to upgrade to the latest versions 2.7.10, 3.0.12, or 3.1.3 to mitigate this risk, or alternatively, modify the cache_key within the Serializer's context for security compliance.

Affected Version(s)

core >= 3.0.0, < 3.0.12 < 3.0.0, 3.0.12

core >= 3.1.0, < 3.1.3 < 3.1.0, 3.1.3

core >= 2.6.0, < 2.7.10 < 2.6.0, 2.7.10

References

CVSS V3.1

Score:
7.7
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.