CVE-2026-82736: CWE-180 Incorrect Behavior Order: Validate Before Canonicalize in ash-project ash
Description
Incorrect Behavior Order: Validate Before Canonicalize vulnerability in ash-project ash lets an attacker store a case-insensitive string value that violates its length or match constraints. Ash.Type.CiString.apply_constraints/2 (lib/ash/type/ci_string.ex) validated the max_length, min_length, and match constraints against the value as submitted, while the type case-folds the string (per its casing) for storage and comparison. Because validation ran before folding, an attacker can submit a value whose folded form breaks a constraint but whose original form passes: for example, against a match pattern requiring uppercase, an uppercase value that is stored lowercased persists a value the pattern rejects. The fix case-folds the value at the start of apply_constraints/2, so the constraints are checked against the form that is actually stored. This issue affects ash: from 1.29.0-rc0 before 3.32.2.
CVSS v4.0
Score 2.1low
Affected software
ash-project
ash
ash-project
ash
cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in ash-project ash involves an incorrect behavior order where validation of string constraints (max_length, min_length, and match patterns) occurs before the string is canonicalized by case-folding. Specifically, Ash.Type.CiString.apply_constraints/2 validates constraints against the original string, but the string is stored and compared in a case-folded form. This discrepancy allows an attacker to submit a string that passes validation in its original form but violates constraints once folded, such as an uppercase pattern requirement being bypassed by storing a lowercased value. The fix involves case-folding the string before applying constraints to ensure validation matches the stored form. The vulnerability affects versions from 1.29.0-rc0 before 3.32.2.
Potential Impact
An attacker can store strings that violate defined constraints after case-folding, potentially leading to inconsistent data validation and storage. This may cause unexpected behavior in applications relying on these constraints but does not directly lead to privilege escalation or remote code execution. The CVSS score of 2.1 indicates a low impact with limited attack vector (local) and low complexity.
Mitigation Recommendations
No official patch or fix is explicitly stated in the provided data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should be cautious about relying on constraint validation for case-insensitive strings and consider additional validation or input sanitization as a temporary measure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-31T00:59:10.001Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a964897acd9273b49296a85
Added to database: 09/01/2026, 03:37:59 UTC
Last enriched: 09/07/2026, 15:03:54 UTC
Last updated: 10/15/2026, 18:48:24 UTC
Views: 74
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.