Secured properties in API Platform Core may be accessible within collections
CVE-2023-25575
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
