HIGHCVSS v3.1 7.5Vulnerability

CVE-2026-128082

### Summary `MaxDepth`, whether set explicitly or applied by default (64) to self-referential type maps, was not enforced when the recursion goes through constructor parameters. Mapping a deeply nested source to a destination built through its constructor, such as a positional `record`, recurses without bound and throws a `StackOverflowException`. That exception can't be caught and terminates the process. This bypasses the mitigation for CVE-2026-32933. ### Details The type depth used by `MaxDepth` was incremented only after the destination object was created. Constructor parameters, including child objects of the same type, are mapped while the destination is created, so each level recursed before its parent was counted, and the depth check never tripped. Affected: - destination types mapped through constructor parameters, including positional records - both an explicit `MaxDepth(n)` and the default limit of 64 - `ConstructUsing` that maps recursively through `context.Mapper` With `MaxDepth(10)`, a 100-level chain was mapped to all 100 levels. On a 1 MB stack (the Windows default), the process crashed at between 1,000 and 2,000 levels. ### PoC The type only has a constructor with positional arguments, and `MaxDepth` is set to 10: ```csharp using AutoMapper; // Setup configuration - with MaxDepth set var mapper = new MapperConfiguration(cfg => { cfg.CreateMap<CircularClass, CircularClass>().MaxDepth(10); }) .CreateMapper(); // Create a deeply nested object (28,000+ levels) var root = new CircularClass(null); var current = root; for (int i = 0; i < 30000; i++) { current.Next = new CircularClass(null); current = current.Next; } // STACK OVERFLOW even though the max depth is set var mappedRoot = mapper.Map<CircularClass>(root); public class CircularClass { public CircularClass(CircularClass? Next) { this.Next = Next; } public CircularClass? Next { get; set; } } ``` ### Impact Any application that maps att

Properties

Summary
AutoMapper: Uncontrolled Recursion with Constructor Parameters
Severity
high
Nvd fetched at
2026-11-14T00:40:25.638091+00:00
Cvss score
7.5
Cvss severity
HIGH
Retrieved at
2026-11-14T00:50:08+00:00
Ghsa published
2026-11-13T19:21:02Z
Source url
https://github.com/advisories/GHSA-6vhm-j9h7-f9gh
Ghsa updated
2026-11-13T19:21:03Z
Ghsa id
GHSA-6vhm-j9h7-f9gh
Last source
GitHub Advisory Database
Score
7.5
Cvss version
3.1
Cve id
CVE-2026-128082
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
First seen by Signal
2026-11-13T20:38:23+00:00
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published at
2026-11-13T19:19:30.743
Last modified
2026-11-13T22:17:22.843

Related Entities (3)

AFFECTS (1)

→[Software]nuget/AutoMapper

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

←[Software]nuget/AutoMapper

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-128082 (CVSS v3.1 7.5) — Ninja Signal Threat Intelligence | Ninja Signal