CVE-2026-32933: AutoMapper Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-rvv3-g6hj-g44x
CVSS 7.5
CWE-674
Published
Advisory Summary

CVE-2026-32933 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-674: Uncontrolled Recursion) affecting AutoMapper libraries in the NuGet ecosystem. The issue involves automapper vulnerable to denial of service (dos) via uncontrolled recursion. Remediation is available by upgrading affected packages to version 16.1.1, 15.1.1.

CVE-2026-32933 at a Glance

CVE Identifier CVE-2026-32933
GHSA Identifier GHSA-rvv3-g6hj-g44x
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product AutoMapper
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-32933

To remediate this vulnerability, upgrade all affected AutoMapper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

AutoMapper fixed: 16.1.1
Upgrade AutoMapper to 16.1.1
AutoMapper fixed: 15.1.1
Upgrade AutoMapper to 15.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for AutoMapper

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-32933, inspect your project dependencies for AutoMapper:

inspect dependencies for AutoMapper

Analyze the terminal output to locate any version of AutoMapper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.1.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In AutoMapper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary AutoMapper is vulnerable to a Denial of Service (DoS) attack. When mapping deeply nested object graphs, the library uses recursive method calls without enforcing a default maximum depth limit. This allows an attacker to provide a specially crafted object graph that exhausts the thread's stack memory, triggering a `StackOverflowException` and causing the entire application process to terminate. ### Description The vulnerability exists in the core mapping engine. When a source object contains a property of the same type (or a type that eventually points back to itself), AutoMapper recursively attempts to map each level. Because there is no default limit on how many levels deep this recursion can go, a sufficiently nested object (approximately 25,000+ levels in standard .NET environments) will exceed the stack size. Since `StackOverflowException` cannot be caught in modern .NET runtimes, the application cannot recover and will crash immediately. ### Impact * **Availability:** An attacker can crash the application server, leading to a complete Denial of Service. * **Process Termination:** Unlike standard exceptions, this terminates the entire process, not just the individual request thread. ### Proof of Concept (PoC) The following C# code demonstrates the crash by creating a nested "Circular" object graph and attempting to map it: ```csharp class Circular { public Circular Self { get; set; } } // Setup configuration var config = new MapperConfiguration(cfg => { cfg.CreateMap<Circular, Circular>(); }); var mapper = config.CreateMapper(); // Create a deeply nested object (28,000+ levels) var root = new Circular(); var current = root; for (int i = 0; i < 30000; i++) { current.Self = new Circular(); current = current.Self; } // This call triggers the StackOverflowException and crashes the process mapper.Map<Circular>(root); ``` ### Recommended Mitigation 1. **Secure Defaults:** Implement a default `MaxDepth` (e.g., 32 or 64) for all mapping operations. 2. **Configurable Limit:** Allow users to increase this limit if necessary, but ensure it is enabled by default to protect unsuspecting developers.

CVE-2026-32933 Affected AutoMapper Versions

2 component(s)
Fixed Versions:
16.1.115.1.1
Product / Package Ecosystem Affected Versions Fixed Version
AutoMapper
NuGet
≥ 16.0.0
< 16.1.1
16.1.1
AutoMapper
NuGet
< 15.1.1
15.1.1

References

Frequently Asked Questions

What is CVE-2026-32933?
CVE-2026-32933 is a security vulnerability in AutoMapper involving AutoMapper Vulnerable to Denial of Service (DoS) via Uncontrolled Recursion under CWE-674: Uncontrolled Recursion.
Which AutoMapper versions are affected?
Affected versions include releases prior to 16.1.1, 15.1.1 across affected packages: AutoMapper.
What version fixes CVE-2026-32933?
Upgrading to 16.1.1, 15.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is AutoMapper affected?
Yes, AutoMapper is affected in releases prior to 16.1.1, 15.1.1. Upgrade your dependency to 16.1.1, 15.1.1 or later.
What is the CVSS score of CVE-2026-32933?
CVE-2026-32933 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-32933?
CVE-2026-32933 is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check NuGet dependencies for CVE-2026-32933?
Run the dependency tree command: 'inspect dependencies for AutoMapper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rvv3-g6hj-g44x",
  "modified" : "2026-03-25T18:53:07Z",
  "published" : "2026-03-13T20:57:07Z",
  "aliases" : [ "CVE-2026-32933" ],
  "summary" : "AutoMapper Vulnerable to Denial of Service (DoS) via Uncontrolled Recursion",
  "details" : "### Summary\n\nAutoMapper is vulnerable to a Denial of Service (DoS) attack. When mapping deeply nested object graphs, the library uses recursive method calls without enforcing a default maximum depth limit. This allows an attacker to provide a specially crafted object graph that exhausts the thread's stack memory, triggering a `StackOverflowException` and causing the entire application process to terminate.\n\n### Description\n\nThe vulnerability exists in the core mapping engine. When a source object contains a property of the same type (or a type that eventually points back to itself), AutoMapper recursively attempts to map each level.\n\nBecause there is no default limit on how many levels deep this recursion can go, a sufficiently nested object (approximately 25,000+ levels in standard .NET environments) will exceed the stack size. Since `StackOverflowException` cannot be caught in modern .NET runtimes, the application cannot recover and will crash immediately.\n\n### Impact\n\n* **Availability:** An attacker can crash the application server, leading to a complete Denial of Service.\n* **Process Termination:** Unlike standard exceptions, this terminates the entire process, not just the individual request thread.\n\n### Proof of Concept (PoC)\n\nThe following C# code demonstrates the crash by creating a nested \"Circular\" object graph and attempting to map it:\n\n```csharp\nclass Circular { public Circular Self { get; set; } }\n\n// Setup configuration\nvar config = new MapperConfiguration(cfg => {\n    cfg.CreateMap<Circular, Circular>();\n});\nvar mapper = config.CreateMapper();\n\n// Create a deeply nested object (28,000+ levels)\nvar root = new Circular();\nvar current = root;\nfor (int i = 0; i < 30000; i++) {\n    current.Self = new Circular();\n    current = current.Self;\n}\n\n// This call triggers the StackOverflowException and crashes the process\nmapper.Map<Circular>(root);\n\n```\n\n### Recommended Mitigation\n\n1. **Secure Defaults:** Implement a default `MaxDepth` (e.g., 32 or 64) for all mapping operations.\n2. **Configurable Limit:** Allow users to increase this limit if necessary, but ensure it is enabled by default to protect unsuspecting developers.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "AutoMapper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.0.0"
      }, {
        "fixed" : "16.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "AutoMapper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "15.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-rvv3-g6hj-g44x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32933"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper/commit/0afaf1e91648fca1a57512e94dd00a76ee016816"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper/discussions/4624"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.1.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-674" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-13T20:57:07Z",
    "nvd_published_at" : "2026-03-20T03:16:00Z"
  }
}