PT-2026-147128
CVE-2026-128081
·
Published
2026-11-13
·
Updated
2026-11-13
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
AutoMapper versions prior to 15.1.4
AutoMapper versions 16.0.0 through 16.3.0
Description
AutoMapper can recurse without an effective
MaxDepth limit when mapping polymorphic graphs through Include or IncludeBase, runtime-typed object or interface members, nested Dictionary<string, object> or ExpandoObject sources, or recursive ConvertUsing type converters. This occurs because derived type maps did not inherit the base map's MaxDepth, runtime-typed members bypassed self-reference detection, and certain sources or converters ignored depth tracking. An attacker providing deeply nested data can trigger an uncatchable StackOverflowException, which terminates the process. On a standard 1 MB stack, a few thousand levels of nesting are sufficient to cause a crash.Recommendations
Update to version 15.1.4 or 16.3.0.
As a temporary workaround, explicitly set
MaxDepth on derived maps and on maps reached through object or interface members.
Limit the depth of input data before mapping when using dictionary or dynamic sources, or recursive type converters. Found an issue in the description? Have something to add? Feel free to write us 👾