Uncontrolled recursion in AutoMapper bypasses MaxDepth limits
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-674.
Summary
AutoMapper before 15.1.4 and from 16.0.0 before 16.3.0 increments type depth only after creating the destination, so recursive mapping through constructor parameters bypasses MaxDepth and the default limit of 64. The flaw is uncontrolled recursion (CWE-674). Deep attacker-influenced input can cause an uncatchable StackOverflowException that terminates the process.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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 increments type depth only after creating the destination, so recursive mapping performed through constructor parameters occurs before MaxDepth is counted. Destinations built through positional records or other constructors, and recursive ConstructUsing mappings that call context.Mapper, can therefore bypass explicit MaxDepth values and the default limit of 64. Deep attacker-influenced input can throw an uncatchable StackOverflowException and terminate the process. This issue is fixed in versions 15.1.4 and 16.3.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| LuckyPennySoftware | AutoMapper | 16.0.0 to before 16.3.0; before 15.1.4 | 16.3.0, 15.1.4 | Patch available | CNA |
| — | AutoMapper (NuGet) | 16.0.0 to before 16.3.0 | 16.3.0 | Patch available | GHSA-6vhm-j9h7-f9gh |
| — | AutoMapper (NuGet) | before 15.1.4 | 15.1.4 | Patch available | GHSA-6vhm-j9h7-f9gh |
- AutoMapper VendorLuckyPennySoftware Affected 16.0.0 to before 16.3.0; before 15.1.4 Fixed in 16.3.0, 15.1.4 Patch available CNA
- AutoMapper (NuGet) Vendor— Affected 16.0.0 to before 16.3.0 Fixed in 16.3.0 Patch available GHSA-6vhm-j9h7-f9gh
- AutoMapper (NuGet) Vendor— Affected before 15.1.4 Fixed in 15.1.4 Patch available GHSA-6vhm-j9h7-f9gh
Remediation
Upgrade AutoMapper to version 15.1.4 for the 15.x line or to version 16.3.0 for the 16.x line.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA AutoMapper (LuckyPennySoftware) Fixed in 16.3.0, 15.1.4
- Fix · GHSA-6vhm-j9h7-f9gh AutoMapper (NuGet) Fixed in 16.3.0 Advisory →
- Fix · GHSA-6vhm-j9h7-f9gh AutoMapper (NuGet) Fixed in 15.1.4 Advisory →
Timeline
- 2026-11-13 Threatist record created from CVE-2026-128082
- 2026-11-13 Alias added: GHSA-6vhm-j9h7-f9gh
- 2026-11-13 Fix available: NuGet/[email protected], NuGet/[email protected] · GHSA-6vhm-j9h7-f9gh
- 2026-11-13 CVSS score added · GHSA-6vhm-j9h7-f9gh
- 2026-11-13 Weakness changed · GHSA-6vhm-j9h7-f9gh
- 2026-11-13 6 new references · GHSA-6vhm-j9h7-f9gh
- 2026-11-13 CISA SSVC decision points changed
References
Other 6
- https://github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-6vhm-j9h7-f9gh
- https://github.com/LuckyPennySoftware/AutoMapper/commit/4d51a4b8125b4d2302f2f1f455747c9648ad1acb
- https://github.com/LuckyPennySoftware/AutoMapper/commit/639c2748cb9d3d07df8b86879ba7bcf211675c86
- https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4
- https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0
- https://github.com/LuckyPennySoftware/AutoMapper
More LuckyPennySoftware vulnerabilities
- TI-2026-25381 AutoMapper Vulnerable to Denial of Service (DoS) via Uncontrolled Recursion CVSS 3.1HIGH 7.5
- TI-2026-91741 Uncontrolled recursion in AutoMapper causes denial of service CVSS 3.1HIGH 7.5
Sources
- CVE-2026-128082 · CVE Program
- CVE-2026-128082 · NVD
- FIRST EPSS
- GHSA-6vhm-j9h7-f9gh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences