CVE-2025-23204
JSON

4.4medium

GraphQl securityAfterResolver not called

Severity
4.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7mxx-3cgm-xxv3

Description

API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Starting in version 3.3.8, a security check that gets called after GraphQl resolvers is always replaced by another one as there's no break in a clause. As this falls back to `security`, the impact is there only when there's only a security after resolver and none inside security. Version 3.3.15 contains a patch for the issue.

Affected

Product or packageVersionsReported by
api-platform core>= 3.3.8, < 3.3.15CVE List
api-platform/core (Packagist)from 3.3.8 before 3.3.15GitHub Advisory Database

All scores

GitHub_M4.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
GitHub4.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N

Classification

CWE-20CWE-484

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Starting in version 3.3.8, a security check that gets called after GraphQl resolvers is always replaced by another one as there's no break in a clause. As this falls back to `security`, the impact is there only when there's only a security after resolver and none inside security. Version 3.3.15 contains a patch for the issue.

GitHub Advisory Database
Summary

A security check that gets called after GraphQl resolvers is always replaced by another one as there's no break in this clause: https://github.com/api-platform/core/pull/6444/files#diff-09e3c2cfe12a2ce65bd6c983c7ca6bfcf783f852b8d0554bb938e8ebf5e5fa65R56

https://github.com/soyuka/core/blob/7e2e8f9ff322ac5f6eb5f65baf432bffdca0fd51/src/Symfony/Security/State/AccessCheckerProvider.php#L49-L57

PoC

Create a graphql endpoint with a security after resolver.

Impact

As this fallsback to security, the impact is there only when there's only a security after resolver and none inside security. The test at https://github.com/api-platform/core/pull/6444 is probably broken.

NVD (es)

API Platform Core es un sistema para crear APIs REST y GraphQL basadas en hipermedia. A partir de la versión 3.3.8, una comprobación de seguridad que se ejecuta después de los resolvers GraphQL siempre se reemplaza por otra, ya que no hay interrupción en una cláusula. Dado que esto se basa en la seguridad, el impacto solo se produce cuando solo hay una seguridad después del resolver y ninguna dentro de la seguridad. La versión 3.3.15 incluye un parche para este problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-23204 changed 2025-03-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-7mxx-3cgm-xxv3 changed 2025-03-24CC-BY-4.0
NVDCVE-2025-23204 changed 2026-06-17Public domain