Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54164: CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') in api-platform core

0
Medium
VulnerabilityCVE-2026-54164cvecve-2026-54164cwe-843
Published: 07/01/2026 (07/01/2026, 19:14:28 UTC)
Source: CVE Database V5
Vendor/Project: api-platform
Product: core

Description

API Platform Core versions prior to 4.1.30, 4.2.26, and 4.3.12 contain a type confusion vulnerability in the serializer's AbstractItemNormalizer. This flaw allows an attacker with write access to supply a relation IRI pointing to a resource of an unintended type, bypassing type validation for untyped relation properties. Typed properties in PHP 8.x are protected by Symfony's PropertyAccessor, which blocks the substitution. The issue has been fixed in versions 4.1.30, 4.2.26, and 4.3.12.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected software

GitHub Actionsmore threats →ai
api-platform/core
pkg:github/api-platform/core
Affected versions
<4.1.30<4.2.26<4.3.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/01/2026, 21:20:13 UTC

Technical Analysis

The vulnerability (CWE-843) in API Platform Core affects the AbstractItemNormalizer serializer component. When resolving relation IRIs, the resource type returned is not validated if the getResourceFromIri() method does not pass an $operation parameter to IriConverter::getResourceFromIri(), causing the is_a type guard to be skipped. This allows an attacker who can submit write requests (POST/PUT/PATCH) to supply a relation IRI referencing a resource of a different type than declared, leading to silent assignment of the wrong-typed object for untyped relation properties. This corrupts data invariants and may impact downstream logic relying on declared types. Typed properties in PHP 8.x are protected by an exception from Symfony's PropertyAccessor. The vulnerability is fixed in versions 4.1.30, 4.2.26, and 4.3.12.

Potential Impact

The vulnerability can lead to integrity issues where relation properties are assigned resources of incorrect types, potentially causing application logic errors or data corruption. There is no direct confidentiality or availability impact reported. Exploitation requires the ability to submit write requests to API Platform endpoints with writable relations. Typed properties in PHP 8.x prevent exploitation by throwing exceptions, limiting impact to untyped legacy properties.

Mitigation Recommendations

This vulnerability is fixed in API Platform Core versions 4.1.30, 4.2.26, and 4.3.12. Users should upgrade to these or later versions to remediate the issue. No temporary or alternative mitigations are specified. Since this is not a cloud service, remediation depends on applying the official fixes.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-11T21:46:52.380Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a456fd127e9c79719097e66

Added to database: 07/01/2026, 19:51:45 UTC

Last enriched: 07/01/2026, 21:20:13 UTC

Last updated: 07/01/2026, 21:20:13 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses