CVE-2025-23204: Api platform/core API Platform Core Does Not Vulnerability

MODERATE
Advisory Identifier: GHSA-7mxx-3cgm-xxv3
CVSS 4.4
CWE-20 CWE-484
Published
Advisory Summary

CVE-2025-23204 is a MODERATE (CVSS 4.4) api platform core does not vulnerability (CWE-20: Improper Input Validation) affecting Api platform/core libraries in the Packagist ecosystem. The issue involves api platform core does not call graphql securityafterresolver. Remediation is available by upgrading affected packages to version 3.3.15.

CVE-2025-23204 at a Glance

CVE Identifier CVE-2025-23204
GHSA Identifier GHSA-7mxx-3cgm-xxv3
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-20: Improper Input Validation
Affected Product Api platform/core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-23204

To remediate this vulnerability, upgrade all affected Api platform/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

api-platform/core fixed: 3.3.15
Upgrade api-platform/core to 3.3.15
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for api-platform/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-23204, inspect your project dependencies for Api platform/core:

inspect dependencies for api-platform/core

Analyze the terminal output to locate any version of Api platform/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.15), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Api platform/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2025-23204 Affected Api platform/core Versions

1 component(s)
Fixed Versions:
3.3.15
Product / Package Ecosystem Affected Versions Fixed Version
api-platform/core
Packagist
≥ 3.3.8
< 3.3.15
3.3.15

References

Frequently Asked Questions

What is CVE-2025-23204?
CVE-2025-23204 is a security vulnerability in Api platform/core involving API Platform Core does not call GraphQl securityAfterResolver under CWE-20: Improper Input Validation.
Which Api platform/core versions are affected?
Affected versions include releases prior to 3.3.15 across affected packages: api-platform/core.
What version fixes CVE-2025-23204?
Upgrading to 3.3.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is api-platform/core affected?
Yes, api-platform/core is affected in releases prior to 3.3.15. Upgrade your dependency to 3.3.15 or later.
What is the CVSS score of CVE-2025-23204?
CVE-2025-23204 has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2025-23204?
CVE-2025-23204 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2025-23204?
Run the dependency tree command: 'inspect dependencies for api-platform/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7mxx-3cgm-xxv3",
  "modified" : "2025-03-24T18:41:25Z",
  "published" : "2025-03-24T16:31:08Z",
  "aliases" : [ "CVE-2025-23204" ],
  "summary" : "API Platform Core does not call GraphQl securityAfterResolver",
  "details" : "### Summary\nA 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\n\nhttps://github.com/soyuka/core/blob/7e2e8f9ff322ac5f6eb5f65baf432bffdca0fd51/src/Symfony/Security/State/AccessCheckerProvider.php#L49-L57 \n\n### PoC\n\nCreate a graphql endpoint with a security after resolver.\n\n### Impact\n\nAs 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "api-platform/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.8"
      }, {
        "fixed" : "3.3.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/api-platform/core/security/advisories/GHSA-7mxx-3cgm-xxv3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-23204"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/api-platform/core/pull/6444"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/api-platform/core/pull/6444/files#diff-09e3c2cfe12a2ce65bd6c983c7ca6bfcf783f852b8d0554bb938e8ebf5e5fa65R56"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/api-platform/core/commit/dc4fc84ba93e22b4f44a37e90a93c6d079c1c620"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/api-platform/core"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/soyuka/core/blob/7e2e8f9ff322ac5f6eb5f65baf432bffdca0fd51/src/Symfony/Security/State/AccessCheckerProvider.php#L49-L57"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-484" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-24T16:31:08Z",
    "nvd_published_at" : "2025-03-24T16:15:56Z"
  }
}