5.3medium
API Platform Core can leak exceptions message that may contain sensitive information
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.39% (higher than 34% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-rfw5-cqjj-7v9r
Description
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. From 3.2.0 until 3.2.4, exception messages, that are not HTTP exceptions, are visible in the JSON error response. This vulnerability is fixed in 3.2.5.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| api-platform core | >= 3.2.0, < 3.2.5 | CVE List |
| api-platform/core (Packagist) | from 3.2.0 before 3.2.5 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. From 3.2.0 until 3.2.4, exception messages, that are not HTTP exceptions, are visible in the JSON error response. This vulnerability is fixed in 3.2.5.
GitHub Advisory Database
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.
NVD (es)
API Platform Core es un sistema para crear API REST y GraphQL basadas en hipermedia. Desde la versión 3.2.0 hasta la 3.2.4, los mensajes de excepción que no son excepciones HTTP son visibles en la respuesta de error JSON. Esta vulnerabilidad se corrigió en la versión 3.2.5.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-47639 changed 2025-04-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rfw5-cqjj-7v9r changed 2025-04-04 | CC-BY-4.0 |
| NVD | CVE-2023-47639 changed 2026-06-17 | Public domain |