CVE-2023-47639
MEDIUM5.3EPSS 0.43%API Platform Core can leak exceptions message that may contain sensitive information
Description
### 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](https://datatracker.ietf.org/doc/html/rfc7807) 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.
Affected packages (1)
- Packagist/api-platform/core>= 3.2.0, < 3.2.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2023-47639
- PATCHhttps://github.com/api-platform/core
- WEBhttps://github.com/api-platform/core/commit/ba8a7e6538bccebf14c228e43a9339214c4d9201
- WEBhttps://github.com/api-platform/core/pull/5823
- WEBhttps://github.com/api-platform/core/security/advisories/GHSA-rfw5-cqjj-7v9r