CVE-2023-47639: API Platform Core can leak exceptions message that may contain sensitive information
Summary Exception messages, that are not HTTP exceptions, are visible in the JSON error response. Details While we wanted to make our errors compatible with the JSON Problem specification, we ended up handling more exceptions then we did previously (introduced at https://github.com/api-platform/core/pull/5823).
Published Apr 3, 2025 · Updated Apr 4, 2025
Affected packages
api-platform/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 3.2.0, < 3.2.5
- Fixed in
- 3.2.5
- Check
composer show api-platform/core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Exception messages, that are not HTTP exceptions, are visible in the JSON error response.
Details
While we wanted to make our errors compatible with the JSON Problem specification, we ended up handling more exceptions then we did previously (introduced at https://github.com/api-platform/core/pull/5823). Instead of leaving that to Symfony, we ended up serializing errors with our normalizers which lead to not hiding the exception details. Note that the trace is hidden in production but the message is not, and the message can contain sensitive information.
PoC
At https://github.com/ili101/api-platform/tree/test3.2 it triggers an authentication exception as LDAP is not reachable. You can find the message available as a JSON response when trying to reach an endpoint.
Impact
Version 3.2 until 3.2.4 is impacted.
References
- https://github.com/api-platform/core/security/advisories/GHSA-rfw5-cqjj-7v9r
- https://github.com/api-platform/core/commit/ba8a7e6538bccebf14c228e43a9339214c4d9201
- https://nvd.nist.gov/vuln/detail/CVE-2023-47639
- https://github.com/api-platform/core/pull/5823
- https://github.com/advisories/GHSA-rfw5-cqjj-7v9r
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-54164
API Platform Core: Relation IRIs are not type-checked: a related resource can be denormalised as the wrong resource type (type confusion)
medium6.5Aug 7, 2026CVE-2026-49858
API Platform Core vulnerable to cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate
medium5.9Jul 10, 2026CVE-2025-31481
GraphQL query operations security can be bypassed
high7.5Apr 4, 2025CVE-2025-31485
GraphQL grant on a property might be cached with different objects
high7.5Apr 4, 2025CVE-2025-23204
API Platform Core does not call GraphQl securityAfterResolver
medium4.4Mar 24, 2025
