Skip to content
RedCVE

CVE-2026-80227Ash Project Ash Sql incorrect comparison

ash-projectPublished:

CVSS score

2.1

Low

CVSS 4.0 from 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Exploit probability (EPSS)

0.39%

0.39% chance of exploitation in the next 30 days, higher than 33.7% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

How to fix it, step by step

  1. Check whether you're affected

    Find every system running ash-project Ash Sql and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Ash Sql to 0.7.1 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Local
Attack complexity
Low
Attack requirements
Present
Privileges required
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected products

Affected productsVersions
ash-project Ash Sql≥ 0.1.0, < 0.7.1 · ≥ dd092ed273dec7bd2194352f24a39229fc8ae68b, < 1b11b5d8bc5321e2e6acac21594ef08f61986117

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-80227 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-80227?

CVE-2026-80227 has a CVSS 4.0 base score of 2.1 (low).

Which versions are affected?

Ash Project Ash Sql (≥ 0.1.0, < 0.7.1; ≥ dd092ed273dec7bd2194352f24a39229fc8ae68b, < 1b11b5d8bc5321e2e6acac21594ef08f61986117)

Is there a patch for CVE-2026-80227?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.