Description
Integer Overflow or Wraparound vulnerability in ash-project ash lets an attacker corrupt a stored vector and crash later reads of it by submitting a vector with more than 65,535 elements.

Ash.Vector.new/1 (lib/ash/vector.ex) encodes a vector as <<dim::unsigned-16, 0::unsigned-16>> followed by the element floats, packing the element count into a 16-bit field without checking its range. A list of more than 65,535 elements wraps the dimension modulo 65,536, so the encoded header records a dimension that disagrees with the number of stored floats. from_binary/1 later reads binary-size(dim)-unit(32) from the wrapped header, so every read of the corrupted value misparses and raises, denying access to the affected record. The fix rejects any vector whose dimension exceeds 65,535.

This issue affects ash: from 2.14.13 before 3.32.2.
Published: 2026-09-01
Score: 5.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an integer overflow in the Ash.Vector module where vector length is packed into a 16‑bit field without bounds checking. An attacker can create a vector of more than 65,535 elements; the 16‑bit header wraps modulo 65,536, so the stored dimension no longer matches the number of floats. Later when Ash calls from_binary/1 it reads the wrapped dimension and attempts to parse that many elements, causing mis‑alignment and raising an error. This corrupts stored data and crashes any read operation, effectively denying access to the affected record.

Affected Systems

Ash project Ash, versions 2.14.13 through 3.32.1 (the issue is fixed in 3.32.2 and later).

Risk and Exploitability

The CVSS score of 5.9 signifies moderate severity. The EPSS score is not available, so exploitation likelihood cannot be quantified from public data. It is not listed in the CISA KEV catalog. The flaw can be exploited by any actor who can submit a vector with more than 65,535 elements; whether the attack is local or remote depends on how the application accepts vector input. Upon exploitation, any future read of the corrupted record will raise an exception, causing denial of service and potentially data loss.

Generated by OpenCVE AI on September 1, 2026 at 04:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Ash to version 3.32.2 or later, which rejects vectors larger than 65,535 elements.
  • If an immediate update is not possible, add validation to reject or trim vectors exceeding 65,535 elements before calling Ash.Vector.new/1.
  • Monitor application logs for read failures and rebuild corrupted records; consider adding a temporary layer that validates vector dimensions before persistence.

Generated by OpenCVE AI on September 1, 2026 at 04:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 01 Sep 2026 03:30:00 +0000

Type Values Removed Values Added
Description Integer Overflow or Wraparound vulnerability in ash-project ash lets an attacker corrupt a stored vector and crash later reads of it by submitting a vector with more than 65,535 elements. Ash.Vector.new/1 (lib/ash/vector.ex) encodes a vector as <<dim::unsigned-16, 0::unsigned-16>> followed by the element floats, packing the element count into a 16-bit field without checking its range. A list of more than 65,535 elements wraps the dimension modulo 65,536, so the encoded header records a dimension that disagrees with the number of stored floats. from_binary/1 later reads binary-size(dim)-unit(32) from the wrapped header, so every read of the corrupted value misparses and raises, denying access to the affected record. The fix rejects any vector whose dimension exceeds 65,535. This issue affects ash: from 2.14.13 before 3.32.2.
Title Ash.Vector wraps the 16-bit dimension header for vectors over 65,535 elements, corrupting data and crashing reads
First Time appeared Ash-project
Ash-project ash
Weaknesses CWE-190
CPEs cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*
Vendors & Products Ash-project
Ash-project ash
References
Metrics cvssV4_0

{'score': 5.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-09-01T03:24:14.969Z

Reserved: 2026-08-31T00:59:10.002Z

Link: CVE-2026-82737

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-01T04:18:03.193

Modified: 2026-09-01T04:18:03.193

Link: CVE-2026-82737

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T04:30:03Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound