AutoMapper recursion depth limit bypass crashes process
CVE-2026-128082
A .NET data conversion library, so deeply nested data can freeze programs.
- CVE
- CVE-2026-128082(新しいタブで開きます)
- スコア
- CVSS 7.5
- 初確認
対処法
Update to 16.3.0 or 15.1.4 or later. If the destination type has a parameterless constructor and settable properties, cfg.DisableConstructorMapping() can be used. Positional records have no workaround other than limiting input depth or upgrading.
お使いの製品に合ったバージョン以降に更新してください:
- AutoMapper >= 16.0.0, < 16.3.0 16.3.0 以降
- AutoMapper < 15.1.4 15.1.4 以降
すぐに更新できない場合:
設定ファイルにこの行を追加してください:
cfg.DisableConstructorMapping()
設定を誤るとサービスが止まったり、接続できなくなったりすることがあります。変更する前に下の原文リンクを確認してください。
要約
AutoMapper does not enforce its depth limit for recursion through constructor parameters, so attacker-influenced deeply nested input can terminate the process. Versions >= 16.0.0, < 16.3.0 and < 15.1.4 are affected.
攻撃コード公開済み
該当する条件
- Mapping to a destination type built through constructor parameters (such as positional records) with a recursive member
- Recursive ConstructUsing mapping that calls context.Mapper
製品別のインシデント: AutoMapper
AutoMapper のほかの最近のインシデント
勧告を読む · github.com(新しいタブで開きます)
- セキュリティ勧告: github.com(新しいタブで開きます)
- CVE レコード: cve.org(新しいタブで開きます)