Skip to main content

CVE-2026-34593

HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-04-01 https://github.com/ash-project/ash GHSA-jjf9-w5vj-r6vp
8.2
CVSS 4.0 · Vendor: https://github.com/ash-project/ash
View

Attack ChainAIDerived

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

  1. Access
    Submit module-typed input starting with 'Elixir.'
  2. Exploit
    Trigger unconditional atom creation via Module.concat
  3. Execution
    Exhaust BEAM atom table
  4. Impact
    Crash entire BEAM VM

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires Ash framework resource with a :module-typed attribute or argument exposed to user input. Remote unauthenticated attacker submits binary strings starting with 'Elixir.' to exhaust BEAM VM atom table (default ~1,048,576 limit), causing denial of service. No victim interaction needed.

Impact

This represents a critical availability risk for production Elixir applications using Ash Framework with :module-typed attributes exposed to untrusted input. The attack complexity is low-requiring only the ability to submit crafted strings to API endpoints-and requires no authentication or special privileges if the affected endpoint is publicly accessible. Attack vector is network-based for typical web API deployments. The technical impact is complete denial-of-service: BEAM VM crashes are unrecoverable without process restart, affecting all tenants and services in the VM instance, not just the targeted resource. While no confirmed active exploitation exists (no CISA KEV listing) and EPSS data is unavailable for this recent CVE, the GitHub security advisory includes working proof-of-concept code demonstrating that exploitation requires only basic scripting ability and knowledge of affected endpoints. The vulnerability is not automatable at scale without reconnaissance to identify :module-typed attributes, but once identified, exploitation is trivial. Priority should be high for any internet-facing Ash-based application using :module types in public attributes or action arguments, moderate for internal-only deployments with untrusted users.

Exploit ScenarioDerived

An attacker identifies a public API endpoint for creating Widget resources that accepts a handler_module parameter of type :module, such as POST /api/widgets with JSON payload {"handler_module": "Elixir.Custom.Handler"}. Using a simple script, the attacker submits 1,100,000 HTTP requests with incrementing module names: {"handler_module": "Elixir.Attack1"}, {"handler_module": "Elixir.Attack2"}, and so on. Each request fails validation because the modules don't exist, but Ash.Type.Module.cast_input/2 has already called Module.concat to create each unique atom, permanently consuming an atom table slot. After approximately 1,048,576 unique submissions-achievable in minutes with parallel requests-the BEAM VM exhausts its atom table and crashes with a system_limit error, taking down the entire application and all services sharing the VM process. The GitHub advisory includes functional proof-of-concept code demonstrating this attack pattern.

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

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

Alert me

AnalysisAIv1 – Apr 01, 2026

BEAM VM atom table exhaustion in Ash Framework's Module type allows remote denial-of-service against Elixir applications. The ash package (all versions prior to v3.22.0) unconditionally creates Erlang atoms from user-supplied strings in Ash.Type.Module.cast_input/2 before validation, enabling attackers to crash the entire VM by submitting ~1 million unique 'Elixir.*' strings to any API endpoint with :module-typed attributes. Vendor patch released in commit 7031103 (v3.22.0). No public exploit identified at time of analysis, though the advisory provides detailed proof-of-concept code demonstrating trivial exploitation via repeated API requests.

RemediationAI

Upgrade to Ash Framework version 3.22.0 or later, released February 2025, which replaces unsafe Module.concat([value]) calls with String.to_existing_atom(value) wrapped in exception handling. The fix is available in commit 7031103da38cd1366cec8c96d6bcdc9b989aa3c2 (https://github.com/ash-project/ash/commit/7031103da38cd1366cec8c96d6bcdc9b989aa3c2) and the official v3.22.0 release (https://github.com/ash-project/ash/releases/tag/v3.22.0). For applications unable to upgrade immediately, implement input validation at the API boundary to whitelist allowed module names before they reach Ash.Type.Module, or remove public access to :module-typed attributes by setting public?: false and migrating to enumerated string types with controlled vocabularies. Review all resource definitions for attributes and arguments of type :module and assess whether user input can reach these fields. Full advisory and remediation guidance at https://github.com/advisories/GHSA-jjf9-w5vj-r6vp.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

The vulnerability exploits a fundamental property of the Erlang BEAM virtual machine: atoms are immutable, globally unique identifiers stored in a fixed-size table (default ~1,048,576 entries) that are never garbage-collected. The Ash Framework's Ash.Type.Module type handler calls Module.concat([value]) on any user-supplied string beginning with 'Elixir.' before verifying module existence via Code.ensure_loaded?/1. Module.concat/1 unconditionally converts strings to atoms using String.to_atom/1 internally, permanently consuming an atom table slot even when validation fails. This violates Erlang security best practices that mandate String.to_existing_atom/1 for untrusted input, which only succeeds if the atom already exists in the table. The same vulnerable pattern appears in both cast_input/2 (line 105-113) and cast_stored/2 (line 141) functions. The root cause is CWE-400 (Uncontrolled Resource Consumption): failure to validate input before committing limited system resources.

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/ash-project/ash) PRIMARY 8.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/ash-project/ash) · only source for this CVE.

CVSS VectorVendor: https://github.com/ash-project/ash

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 01, 2026 - 00:30 nvd
Patch available
CVE Published
Apr 01, 2026 - 00:14 nvd
HIGH 8.2

DescriptionCVE.org

Summary

Ash.Type.Module.cast_input/2 unconditionally creates a new Erlang atom via Module.concat([value]) for any user-supplied binary string that starts with "Elixir.", before verifying whether the referenced module exists. Because Erlang atoms are never garbage-collected and the BEAM atom table has a hard default limit of approximately 1,048,576 entries, an attacker who can submit values to any resource attribute or argument of type :module can exhaust this table and crash the entire BEAM VM, taking down the application.

Details

Setup: A resource with a :module-typed attribute exposed to user input, which is a supported and documented usage of the Ash.Type.Module built-in type:

elixir
defmodule MyApp.Widget do
  use Ash.Resource, domain: MyApp, data_layer: AshPostgres.DataLayer

  attributes do
    uuid_primary_key :id
    attribute :handler_module, :module, public?: true
  end

  actions do
    defaults [:read, :destroy]
    create :create do
      accept [:handler_module]
    end
  end
end

Vulnerable code in lib/ash/type/module.ex, lines 105-113:

elixir
def cast_input("Elixir." <> _ = value, _) do
  module = Module.concat([value])
# <-- Creates new atom unconditionally
  if Code.ensure_loaded?(module) do
    {:ok, module}
  else
    :error
# <-- Returns error but atom is already created
  end
end

Exploit: Submit repeated Ash.create requests (e.g., via a JSON API endpoint) with unique "Elixir.*" strings:

elixir
# Attacker-controlled loop (or HTTP requests to an API endpoint)
for i <- 1..1_100_000 do
  Ash.Changeset.for_create(MyApp.Widget, :create, %{handler_module: "Elixir.Attack#{i}"})
  |> Ash.create()
# Each iteration: Module.concat(["Elixir.Attack#{i}"]) creates a new atom
# cast_input returns :error but the atom :"Elixir.Attack#{i}" persists
end
# After ~1,048,576 unique strings: BEAM crashes with system_limit

Contrast: The non-"Elixir." path in the same function correctly uses String.to_existing_atom/1, which is safe because it only looks up atoms that already exist:

elixir
def cast_input(value, _) when is_binary(value) do
  atom = String.to_existing_atom(value)
# safe - raises if atom doesn't exist
  ...
end

Additional occurrence: cast_stored/2 at line 141 contains the identical pattern, which is reachable when reading :module-typed values from the database if an attacker can write arbitrary "Elixir.*" strings to the relevant database column.

Impact

An attacker who can submit requests to any API endpoint backed by an Ash resource with a :module-typed attribute or argument can crash the entire BEAM VM process. This is a complete denial of service: all resources served by that VM instance (not just the targeted resource) become unavailable. The crash cannot be prevented once the atom table is full, and recovery requires a full process restart.

Fix direction: Replace Module.concat([value]) with String.to_existing_atom(value) wrapped in a rescue ArgumentError block (as already done in the non-"Elixir." branch), or validate that the atom already exists before calling Module.concat by first attempting String.to_existing_atom and only falling back to Module.concat on success.

Executive ViewAI

Why It Matters

Ash Framework versions prior to v3.22.0 contain a denial-of-service vulnerability in the Module type that allows unauthenticated attackers to crash Elixir application VMs by exhausting the BEAM atom table through repeated API requests. Any organization running affected Ash versions with :module-typed attributes exposed via APIs faces immediate risk of service unavailability.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade ash package to v3.22.0 or later. If patch deployment is delayed, implement network-level rate limiting on API endpoints accepting :module-typed attributes and add input validation to reject strings that would create atoms; monitor BEAM VM memory and atom table usage with alerts on rapid atom creation anomalies.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.0%
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
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.

Affected Products (CPE)CVE.org

pkg:erlang/ash

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