Advisory

GHSA-rfw5-cqjj-7v9r

Also known as: CVE-2023-47639

Summary

API Platform Core can leak exceptions message that may contain sensitive information

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-04-03 13:02 UTC
Modified
2025-04-04 02:19 UTC

Affected packages and fixes

api-platform/core

Packagist · All systems

Affected

  • introduced 3.2.0, fixed 3.2.5 (ecosystem)

Fixed versions

3.2.5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences