api-platform/core の脆弱性 (CVE-2026-54164)
概要
api-platform/core に 脆弱性 (CVE-2026-54164) が存在。データの不正な改ざんを許す可能性があります。AbstractItemNormalizer 経由で攻撃可能。対策: 4.3.12 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
The API Platform 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.
Impact
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.
Affected versions
api-platform/core< 4.1.30api-platform/core>= 4.2.0, < 4.2.26api-platform/core>= 4.3.0, < 4.3.12
Older major series (2.x, 3.x) ship the same vulnerable code path and are end-of-life; no fix is planned.
Patched versions
4.1.304.2.264.3.12
Fix
An is_a guard is added inside AbstractItemNormalizer::getResourceFromIri() (and the equivalent inline call sites on 4.1) so that a mismatched IRI throws InvalidArgumentException, mirroring the ope…
出典: NIST National Vulnerability Database NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
api-platform/core という製品で、CVE-2026-54164 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに AbstractItemNormalizer のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
データの不正な改ざんを許す可能性があります。重要度は CVSS スコア 6.5/10 です。
対策: api-platform/core を 4.3.12 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「api-platform/core CVE-2026-54164」を検索してください。
CVE-2026-54164 (api-platform/core) — CWE-843 / CVSS v3 6.5
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: AbstractItemNormalizer / is_a / InvalidTypeException / InvalidArgumentException
修正バージョン: 4.3.12 (即時適用推奨)
暫定回避: Declare a PHP type on every writable relation property (e.g.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
api-platform/core に 脆弱性 (CWE-843) があります。攻撃者は AbstractItemNormalizer を経由して脆弱な処理に到達できます。
api-platform/core の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: AbstractItemNormalizer / is_a / InvalidTypeException / InvalidArgumentException。
重要度: 中 (CVSS 6.5/10)。データの不正な改ざんを許す可能性があります。
4.3.12 に更新してください。
暫定回避: Declare a PHP type on every writable relation property (e.g.
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'api-platform/core' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
api-platform/coreを grep し、稼働しているサービス・バージョンを把握する。 -
2暫定回避策の適用 mitigate
Declare a PHP type on every writable relation property (e.g.パッチが適用されるまでの応急処置として、Declare a PHP type on every writable relation property (e.g. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3パッチ適用 patch
Upgrade api-platform/core to 4.3.12ステージング環境で 4.3.12 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
参照URL
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com