Skip to main content

AutoMapper CVE-2026-128081

| EUVDEUVD-2026-125688 HIGH
Uncontrolled Recursion (CWE-674)
2026-11-13 https://github.com/LuckyPennySoftware/AutoMapper GHSA-gpwp-5797-mjff
7.5
CVSS 3.1 · Vendor: https://github.com/LuckyPennySoftware/AutoMapper
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send deeply nested JSON payload
  2. Exploit
    Deserialized to dictionary/dynamic/polymorphic graph
  3. Execution
    AutoMapper recurses without MaxDepth enforcement
  4. Impact
    StackOverflowException terminates the process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires that the application use AutoMapper (vulnerable < 15.1.4 or >= 16.0.0 < 16.3.0) to map attacker-influenced, deeply nested data through one of the specific unguarded paths: (1) polymorphic derived-type maps via Include/IncludeBase that don't inherit the base map's MaxDepth; (2) members typed as object or an interface, which escape self-reference detection; (3) nested Dictionary<string, object> or ExpandoObject sources (e.g. deserialized JSON) mapped onto typed destinations; or (4) recursive type converters using ConvertUsing that call context.Mapper.Map. The attack is remote and unauthenticated per the CVSS vector (PR:N/UI:N), but is LIMITED by the need for the application to actually route untrusted nested input through one of these mapping configurations, and by sufficient nesting depth to exhaust the stack (a few thousand levels on a 1 MB Windows stack). For dictionary/dynamic sources and recursive converters there is no configuration workaround other than limiting input depth before mapping.

Impact

All signals point to a moderate, availability-only issue rather than a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) correctly reflects a pure denial-of-service: no confidentiality or integrity impact, only process termination via an uncatchable StackOverflowException (CWE-674, uncontrolled recursion). No EPSS score is provided and the CVE is not listed in CISA KEV, so there is no evidence of active exploitation; exploitation status is 'no public exploit identified at time of analysis' (the repository contains a regression unit test demonstrating the condition, but the input does not flag a working PoC). The vuln.today Decision label is 'this_week', consistent with a patched, network-reachable DoS in a very widely used library but without confirmed in-the-wild abuse. The practical risk is real but conditional: it only matters where an application maps attacker-influenced, deeply nested data through one of the specific unguarded paths. This is therefore a genuine but scoped priority - patch within the vendor-indicated window - rather than a high-CVSS-but-illusory issue or a drop-everything event. Missing data to note explicitly: EPSS probability is absent, KEV status is negative, and POC status is not asserted in the input, so widespread exploitation cannot be inferred.

Exploit ScenarioDerived

A .NET web service deserializes attacker-supplied JSON into a Dictionary<string, object> or ExpandoObject (or an object/interface-typed member, or a polymorphic graph) and maps it onto typed destinations with AutoMapper. The attacker submits a request body nested a few thousand levels deep; on a default 1 MB Windows stack this exhausts the stack during the unbounded recursive mapping and throws an uncatchable StackOverflowException, crashing the worker process. No authentication or user interaction is required (PR:N/UI:N), and no public exploit is identified at time of analysis, though a simple deeply-nested payload is trivial to construct.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Uncontrolled recursion in AutoMapper's mapping pipeline lets attacker-influenced, deeply nested input crash a .NET process: several mapping paths bypass the MaxDepth guard introduced for CVE-2026-32933 and recurse until a StackOverflowException terminates the application, which cannot be caught. Affected are NuGet package AutoMapper versions below 15.1.4 and 16.0.0 through 16.2.x, specifically where an application maps untrusted nested data through polymorphic derived-type maps (Include/IncludeBase), members typed as object or an interface, Dictionary<string, object> or ExpandoObject sources such as deserialized JSON, or ConvertUsing converters that call context.Mapper.Map; on a 1 MB Windows stack a few thousand nesting levels suffice. The vector is network-reachable and unauthenticated (AV:N/AC:L/PR:N/UI:N) with availability-only impact, no public exploit has been identified at time of analysis, and fixes ship in 15.1.4 and 16.3.0.

RemediationAI

Vendor-released patch: upgrade AutoMapper to 15.1.4 (for the 15.x and earlier line) or 16.3.0 (for the 16.x line), per the release notes at https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4 and https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0, with the underlying commit at https://github.com/LuckyPennySoftware/AutoMapper/commit/aee81b50574c3c7005283cca2b2396e295bd8ed9 and details in GHSA-gpwp-5797-mjff. After upgrading, the mapper inherits MaxDepth onto derived Include/IncludeBase maps and throws a catchable InsufficientExecutionStackException instead of letting a StackOverflowException kill the process, so callers should catch that exception and return a 4xx rather than rethrowing. If upgrading cannot be done immediately, the vendor's documented workarounds are: set MaxDepth explicitly on derived maps that are reached via Include or IncludeBase, and set MaxDepth explicitly on maps reached through object or interface-typed members, since those are not picked up by the default self-referential limit. There is no configuration workaround for dictionary and dynamic sources (Dictionary<string, object>, ExpandoObject) or for recursive ConvertUsing converters that call context.Mapper.Map; for those paths the only mitigation before patching is to bound input depth or reject over-nested payloads before the mapping call, for example by validating nesting depth in the JSON deserialization layer or capping request body size - note that this requires knowing the maximum legitimate depth for the payload, and any omitted validation path remains exposed. Applications using PreserveReferences() also rely on the new stack guard rather than MaxDepth and should prioritize upgrading.

Affected VersionsENISA

AutoMapper < 15.1.4
AutoMapper 16.0.0, < 16.3.0

Affected Packages

nuget automapper fix: 15.1.4, 16.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in nuget

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

AutoMapper is a convention-based object-to-object mapper for .NET that builds expression-tree execution plans per type map. CWE-674 (uncontrolled recursion) is the root cause here: the depth-limiting logic that the maintainers added for the earlier CVE-2026-32933 only attaches to type maps that the self-reference detection can see, so any path that recurses without a tracked type map recurses without a bound. Concretely, derived type maps created via Include/IncludeBase never inherited the base map's MaxDepth (and the implicit default limit for self-referential maps was applied only to the base), members declared as object or as an interface are invisible to the self-reference detector, dictionary and dynamic sources (Dictionary<string, object>, ExpandoObject - the typical shape of deserialized JSON) are mapped onto typed destinations with no depth tracking at all, and a ConvertUsing converter that calls context.Mapper.Map re-enters the mapper outside the depth accounting. On the .NET runtime a StackOverflowException cannot be caught and tears down the process, which is why the impact is purely availability. The upstream fix has two parts: TypeMap.ApplyInheritedTypeMap and the TypeMapPlanBuilder cycle check now copy MaxDepth onto derived maps when they have none of their own, and Mapper.MapWithOptions calls RuntimeHelpers.EnsureSufficientExecutionStack() so that a near-exhausted stack raises a catchable InsufficientExecutionStackException instead; the expression builder also adds an exception filter so the rethrow wrapper does not add another dispatch frame at every level, which would itself overflow. Note that maps configured with PreserveReferences() are documented as not depth-limited and rely on the new stack guard. A sibling issue, GHSA-6vhm-j9h7-f9gh (MaxDepth not enforced through constructor parameters and positional records), is fixed in the same releases.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/LuckyPennySoftware/AutoMapper) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote unauthenticated attacker sends deeply nested input (AV:N/AC:L/PR:N/UI:N); only availability is affected via process crash (C:N/I:N/A:H), scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/LuckyPennySoftware/AutoMapper).

CVSS VectorVendor: https://github.com/LuckyPennySoftware/AutoMapper

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Summary

The 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.

Affected paths

  • 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.
  • Runtime-typed members: members typed as object or an interface aren't seen by self-reference detection, so the default limit isn't applied.
  • 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.
  • Recursive type converters: ConvertUsing that calls context.Mapper.Map ignores MaxDepth.

Impact

An 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.

Fix

  • Derived type maps inherit MaxDepth, and the default limit is applied to them.
  • Every runtime map call checks for sufficient stack, and fails with a catchable InsufficientExecutionStackException instead of overflowing.

Workarounds

Set 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.

Related

  • CVE-2026-32933 (GHSA-rvv3-g6hj-g44x)
  • GHSA-6vhm-j9h7-f9gh: MaxDepth not enforced through constructor parameters and positional records, fixed in the same releases.

Technical POC Analysis

CWE-674 (Uncontrolled Recursion).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity flaw in AutoMapper, a widely used .NET mapping library, allows unauthenticated attackers to crash application processes via deeply nested input, impacting availability. This affects any team using vulnerable AutoMapper versions in internet-facing services, potentially causing service outages and disrupting business operations.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 54% exploitable
Prevalence
High
AutoMapper is one of the most widely used object-mapping libraries across .NET applications
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy