Vulnerability DatabaseCVE-2026-128081

CVE-2026-128081: 
C# vulnerability analysis and mitigation

Overview

CVE-2026-128081 is a Denial of Service vulnerability in AutoMapper, a convention-based object-object mapper for .NET, caused by uncontrolled recursion that bypasses the library's MaxDepth limits. Affected versions include all releases prior to 15.1.4 and versions 16.0.0 through 16.3.0 (exclusive). The vulnerability was disclosed on November 13, 2026, with patches released on November 5, 2026 (v15.1.4 and v16.3.0). It carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory).

Technical details

The root cause is CWE-674 (Uncontrolled Recursion): the MaxDepth limits introduced to address a prior CVE (CVE-2026-32933) were not applied to several critical mapping paths. Specifically, derived type maps using Include or IncludeBase did not inherit the base map's MaxDepth; members typed as object or an interface bypassed self-reference detection; nested Dictionary<string, object> or ExpandoObject sources (e.g., deserialized JSON) had no depth tracking; and recursive ConvertUsing type converters that call context.Mapper.Map ignored MaxDepth entirely. An attacker who can supply deeply nested input data to any of these mapping paths can trigger an uncatchable StackOverflowException — on a 1 MB stack (the Windows thread pool default), a few thousand levels of nesting suffice to terminate the process (GitHub Advisory, Patch Commit).

Impact

Successful exploitation results in a complete availability loss of the affected application: the uncatchable StackOverflowException terminates the entire .NET process, causing a denial of service. There is no confidentiality or integrity impact. Any application that maps attacker-influenced, deeply nested data (e.g., user-submitted JSON deserialized into Dictionary<string, object> or ExpandoObject) through the affected paths is at risk, and no user interaction or authentication is required to trigger the crash (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the disclosure date. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Feedly). However, the attack requires no authentication, no user interaction, and low complexity — any network-accessible endpoint that passes attacker-controlled nested data through AutoMapper's affected mapping paths is a viable target.

Exploitation steps

  1. Identify a target endpoint: Locate a network-accessible API or web application that uses a vulnerable version of AutoMapper (< 15.1.4 or 16.0.0–16.3.0) and accepts user-supplied nested data (e.g., a JSON body deserialized into Dictionary<string, object> or ExpandoObject, or a polymorphic object graph).
  2. Craft a deeply nested payload: Construct a JSON payload or object graph with thousands of levels of nesting. For example, a JSON object where each level contains a "Next" key pointing to another object: {"Next": {"Next": {"Next": ... }}} repeated several thousand times.
  3. Submit the payload: Send the crafted payload to the target endpoint via an HTTP POST or PUT request. No authentication or special headers are required.
  4. Trigger uncontrolled recursion: AutoMapper processes the nested input through one of the unguarded mapping paths (e.g., Dictionary<string, object> source, ExpandoObject, object-typed member, or polymorphic Include/IncludeBase map), recursing without bound.
  5. Crash the process: The call stack is exhausted, throwing an uncatchable StackOverflowException that terminates the .NET host process, resulting in a denial of service (GitHub Advisory, Patch Commit).

Indicators of compromise

  • Logs: Sudden application crash logs or Windows Event Log entries showing an unhandled StackOverflowException originating from the AutoMapper Mapper.MapCore method or related mapping stack frames; IIS/Kestrel logs showing abrupt worker process termination (e.g., Event ID 5002 or similar crash events).
  • Network: Repeated HTTP requests to the same API endpoint containing unusually large or deeply nested JSON payloads; requests with abnormally high Content-Length values for endpoints that typically receive shallow data.
  • Process: Unexpected .NET application process restarts or crash dumps in the application directory; Windows Error Reporting (WER) crash dumps referencing AutoMapper.dll or Mapper.MapCore in the faulting stack trace.

Mitigation and workarounds

Upgrade AutoMapper to version 15.1.4 (for the 15.x branch) or 16.3.0 (for the 16.x branch), which fix this vulnerability by making derived type maps inherit MaxDepth, applying a default limit of 64 to self-referential derived maps, and adding a RuntimeHelpers.EnsureSufficientExecutionStack() guard in Mapper.MapCore that throws a catchable InsufficientExecutionStackException instead of crashing the process (v15.1.4 Release, v16.3.0 Release). As a partial workaround prior to patching, set MaxDepth explicitly on all derived maps and on maps reached through object or interface members. Note that there is no configuration workaround for dictionary/dynamic sources or recursive type converters — for those paths, input depth must be validated and limited before it reaches AutoMapper (GitHub Advisory).

Community reactions

The advisory was published by AutoMapper maintainer jbogard and credited @mcambria for the related constructor-mapping report. The release notes explicitly urge users to upgrade if their application maps untrusted, deeply nested data. No significant broader media coverage or notable external researcher commentary has been identified beyond the official advisory and standard vulnerability aggregator listings (v15.1.4 Release, v16.3.0 Release).

Additional resources


Source: This report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-128082HIGH7.5
  • C# logoC#
  • AutoMapper
NoYesNov 13, 2026
CVE-2026-128081HIGH7.5
  • C# logoC#
  • AutoMapper
NoYesNov 13, 2026
CVE-2026-120792HIGH7.3
  • JavaScript logoJavaScript
  • Aspire.Cli.linux-arm64
NoYesNov 10, 2026
CVE-2026-120778HIGH7.3
  • JavaScript logoJavaScript
  • Aspire.Cli.linux-x64
NoYesNov 10, 2026
CVE-2026-120796MEDIUM5.3
  • C# logoC#
  • dotnet11.0
NoYesNov 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management