{"id":"CVE-2026-128081","aliases":["CVE-2026-128081","GHSA-gpwp-5797-mjff"],"related":[],"kind":"vulnerability","state":"published","title":"AutoMapper: Denial of Service via uncontrolled recursion that bypasses MaxDepth","summary":"AutoMapper is a convention-based object-object mapper in .NET. Prior to 15.1.4 and from 16.0.0 until 16.3.0, 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. Deep attacker-influenced graphs on these paths can throw an uncatchable StackOverflowException and terminate the process. This issue is fixed in versions 15.1.4 and 16.3.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"AutoMapper is a convention-based object-object mapper in .NET. Prior to 15.1.4 and from 16.0.0 until 16.3.0, 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. Deep attacker-influenced graphs on these paths can throw an uncatchable StackOverflowException and terminate the process. This issue is fixed in versions 15.1.4 and 16.3.0.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe default and explicit `MaxDepth` limits added for CVE-2026-32933 don't apply to several mapping paths. Mapping a deeply nested source through any of them recurses without bound and throws a `StackOverflowException`, which can't be caught and terminates the process.\n\n### Affected paths\n- **Polymorphic maps:** derived type maps (`Include` / `IncludeBase`) didn't inherit the base map's `MaxDepth`, and the default limit for self-referential maps was only applied to the base map. A chain of derived objects was mapped without a limit, even with `MaxDepth` set on the base map.\n- **Runtime-typed members:** members typed as `object` or an interface aren't seen by self-reference detection, so the default limit isn't applied.\n- **Dictionary and dynamic sources:** mapping a nested `Dictionary<string, object>` or `ExpandoObject` (for example, deserialized JSON) onto typed destinations recurses with no depth tracking. `MaxDepth` has no effect.\n- **Recursive type converters:** `ConvertUsing` that calls `context.Mapper.Map` ignores `MaxDepth`.\n\n### Impact\nAn application that maps attacker-influenced, deeply nested data through one of these paths can be crashed. On a 1 MB stack (the Windows default), a few thousand levels of nesting are enough.\n\n### Fix\n- Derived type maps inherit `MaxDepth`, and the default limit is applied to them.\n- Every runtime map call checks for sufficient stack, and fails with a catchable `InsufficientExecutionStackException` instead of overflowing.\n\n### Workarounds\nSet `MaxDepth` explicitly on derived maps and on maps reached through `object` or interface members. There is no configuration workaround for dictionary or dynamic sources, or for recursive type converters, other than limiting input depth before mapping.\n\n### Related\n- CVE-2026-32933 (GHSA-rvv3-g6hj-g44x)\n- GHSA-6vhm-j9h7-f9gh: `MaxDepth` not enforced through constructor parameters and positional records, fixed in the same releases.","format":"markdown","source":"ghsa"}],"published":"2026-11-13T18:35:45.452Z","modified":"2026-11-18T13:17:25.660Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"version":">= 16.0.0, < 16.3.0","status":"affected"},{"version":"< 15.1.4","status":"affected"}],"vendor":"LuckyPennySoftware","product":"AutoMapper","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"16.0.0","status":"affected","fixed":"16.3.0"}],"ecosystem":"NuGet","package":"AutoMapper","purl":"pkg:nuget/AutoMapper","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"15.1.4"}],"ecosystem":"NuGet","package":"AutoMapper","purl":"pkg:nuget/AutoMapper","source":"ghsa"}],"references":[{"url":"https://github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-gpwp-5797-mjff","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/LuckyPennySoftware/AutoMapper/commit/aee81b50574c3c7005283cca2b2396e295bd8ed9","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/LuckyPennySoftware/AutoMapper/commit/bdbbf5967d20d28e611ab65de1d96d1047a95ab9","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/LuckyPennySoftware/AutoMapper","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-18T13:00:07.887Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-128081","url":"https://www.cve.org/CVERecord?id=CVE-2026-128081","licence":"CVE Terms of Use","modified":"2026-11-18T13:00:25.700Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gpwp-5797-mjff","url":"https://github.com/advisories/GHSA-gpwp-5797-mjff","licence":"CC-BY-4.0","modified":"2026-11-13T19:15:07.330Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-128081","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128081","licence":"Public domain","modified":"2026-11-18T13:17:25.660Z"}],"updatedAt":"2026-11-25T22:59:50.771Z","epss":{"score":0.00545,"percentile":0.47126,"date":"2026-12-01T12:00:22.000Z"}}