> CVE-2026-54164 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-07-01 20:17
MODIFIED
2026-07-01 20:17
CVSS_SCORE V3
6.5
EPSS (Prob. Exploit)
0.34%
Top 73.0%
DATA SOURCES:
NVD 🔗 2026-07-01 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-11-01 GITHUB 🔗 2026-11-05 OSV 🔗 2026-11-02

> DESCRIPTION

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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EXPLOITABILITY
2.8
IMPACT
3.6

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-843

> CWE DETAILED DESCRIPTIONS

CWE-843: Access of Resource Using Incompatible Type - The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.

> GITHUB SECURITY ADVISORY

GHSA-9rjg-x2p2-h68h MODERATE

API Platform Core: Relation IRIs are not type-checked: a related resource can be denormalised as the wrong resource type (type confusion)

AFFECTED PACKAGES:
COMPOSER / api-platform/core
>= 4.3.0, < 4.3.12
Fixed in: 4.3.12
COMPOSER / api-platform/core
>= 4.2.0, < 4.2.26
Fixed in: 4.2.26
COMPOSER / api-platform/core
< 4.1.30
Fixed in: 4.1.30

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

API Platform Core: Missing IRI type check enables resource type confusion

AFFECTED PACKAGES:
Unknown / Unknown
122 versions affected
ALIASES:
GHSA-9rjg-x2p2-h68h

> HISTORIQUE DES MODIFICATIONS

Première apparition
01/07/2026 20:17
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:59
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') - The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses th...
Nouvelle valeur:
CWE-843: Access of Resource Using Incompatible Type - The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a...
📊 ENRICHISSEMENT 01/08/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') - The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses th...
Total des modifications: 2 Dernière mise à jour: 5 days ago

> REFERENCES

https://github.com/api-platform/core/security/advisories/GHSA-9rjg-x2p2-h68h
« BACK_TO_HOME