CVE-2026-80227
Low 2.1No known exploitationFix availableSQL string_trim removes only spaces, diverging from in-memory trimming in AshSql
Record last updated
CVSS score
Low on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 34% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
Incorrect Comparison vulnerability in ash-project ash_sql allows a user to pad a string field with tab, newline, carriage-return, or form-feed characters and pass a trimmed uniqueness or equality check in the database that the same expression would fail in memory (or the reverse). string_trim/1 compiles to REGEXP_REPLACE patterns built from an Elixir string in which \s is the escape for a single space (codepoint 32), not a regex whitespace class. The generated SQL therefore removes only literal spaces and leaves tabs, newlines, carriage returns, and form feeds in place, whereas String.trim/1 in Elixir removes them all. Any Ash filter, validation, or identity that relies on string_trim/1 then behaves differently depending on whether Ash pushes the expression down to SQL or evaluates it in memory, so padded input can register a near-duplicate value or slip past a trimmed comparison. This issue affects ash_sql: from 0.1.0 before 0.7.1.
Weakness: CWE-697
Patching and mitigation
- Patch status
- Fix available (source: CVE record (EEF))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| ash-project | ash_sql | from 0.1.0 before 0.7.1 | 0.7.1 | CVE Program |
| ash-project | ash_sql | from dd092ed273dec7bd2194352f24a39229fc8ae68b before 1b11b5d8bc5321e2e6acac21594ef08f61986117 | 1b11b5d8bc5321e2e6acac21594ef08f61986117 | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (EEF)
Vendor guidance and references
- Fix commit 1b11b5d in ash-project/ash_sql (opens in a new tab)patch
- https://github.com/ash-project/ash_sql/security/advisories/GHSA-76wx-w7ww-5xfq (opens in a new tab)related, vendor-advisory
- EEF CNA record for CVE-2026-80227 (opens in a new tab)related
- Introducing commit dd092ed in ash-project/ash_sql (opens in a new tab)related
- OSV record EEF-CVE-2026-80227 (opens in a new tab)related