CVE-2026-54164

Source
https://cve.org/CVERecord?id=CVE-2026-54164
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54164.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54164
Aliases
Published
2026-07-01T19:14:28.770Z
Modified
2026-08-07T11:31:16.665400675Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
API Platform Core: Missing IRI type check enables resource type confusion
Details

API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. In versions prior to 4.1.30, 4.2.26 and 4.3.12, the serializer's AbstractItemNormalizer does not validate the resource type returned when resolving relation IRIs, allowing type confusion where a resource of an unintended type can be silently assigned to a relation property. An attacker who can submit write requests (POST/PUT/PATCH) to an API Platform endpoint with writable relations can supply a relation IRI pointing to a resource of a different type than the relation's declared class. Because getResourceFromIri() does not pass an $operation to IriConverter::getResourceFromIri(), the is_a type guard at IriConverter.php:86 is skipped. For untyped relation properties (legacy @var-only style), the wrong-typed object is silently assigned, corrupting invariants and potentially feeding downstream logic that assumes the declared type (CWE-843). For typed properties (modern PHP 8.x), the substitution is blocked by Symfony's PropertyAccessor with an InvalidTypeException. This issue has been fixed in versions 4.1.30, 4.2.26 and 4.3.12.

Database specific
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54164.json",
    "cwe_ids": [
        "CWE-843"
    ]
}
References

Affected packages

Git / github.com/api-platform/core

Affected ranges

Type
GIT
Repo
https://github.com/api-platform/core
Events
Database specific
{
    "source": "AFFECTED_FIELD",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "4.1.30"
        },
        {
            "introduced": "4.2.0"
        },
        {
            "fixed": "4.2.26"
        },
        {
            "introduced": "4.3.0"
        },
        {
            "fixed": "4.3.12"
        }
    ]
}

Affected versions

Other
push
remove
v1.*
v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3
v2.*
v2.0.0
v2.0.0-alpha.1
v2.0.0-alpha.2
v2.0.0-beta.1
v2.0.0-beta.2
v2.0.0-beta.3
v2.0.0-rc.1
v2.0.0-rc.2
v2.0.0-rc.3
v2.0.0-rc.4
v2.0.0-rc.5
v2.0.0-rc.6
v2.1.0
v2.1.0-beta.1
v2.1.0-beta.2
v2.2.0
v2.2.0-beta.1
v2.2.0-beta.2
v2.2.1
v2.3.0
v2.3.0-beta.1
v2.4.0-beta.1
v2.5.0-beta.1
v2.6.0
v2.6.0-alpha.1
v2.6.0-beta.1
v2.7.0-alpha.1
v2.7.0-alpha.2
v3.*
v3.0.0
v3.0.0-beta.2
v3.0.0-rc.1
v3.0.0-rc.2
v3.2.0-alpha.1
v3.2.0-alpha.2
v3.3.0-alpha.1
v3.3.0-alpha.2
v3.3.0-beta.1
v3.3.0-beta.2
v4.*
v4.0.0-alpha.1
v4.0.0-alpha.2
v4.0.0-alpha.3
v4.0.0-alpha.4
v4.0.0-alpha.5
v4.0.0-alpha.6
v4.0.0-alpha.7
v4.0.0-beta.1
v4.0.0-beta.2
v4.1.0-alpha.1
v4.1.0-alpha.2
v4.1.0-beta.1
v4.1.0-beta.2
v4.1.1
v4.1.10
v4.1.11
v4.1.12
v4.1.13
v4.1.14
v4.1.15
v4.1.16
v4.1.17
v4.1.18
v4.1.19
v4.1.2
v4.1.20
v4.1.21
v4.1.22
v4.1.23
v4.1.24
v4.1.25
v4.1.26
v4.1.27
v4.1.28
v4.1.29
v4.1.3
v4.1.4
v4.1.5
v4.1.6
v4.1.7
v4.1.8
v4.1.9
v4.2.0
v4.2.1
v4.2.10
v4.2.11
v4.2.12
v4.2.13
v4.2.14
v4.2.15
v4.2.16
v4.2.17
v4.2.18
v4.2.19
v4.2.2
v4.2.20
v4.2.21
v4.2.22
v4.2.23
v4.2.24
v4.2.25
v4.2.3
v4.2.4
v4.2.5
v4.2.6
v4.2.7
v4.2.9
v4.3.0
v4.3.1
v4.3.10
v4.3.11
v4.3.2
v4.3.3
v4.3.4
v4.3.5
v4.3.6
v4.3.7
v4.3.8
v4.3.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54164.json"