{"id":"CVE-2026-81638","aliases":["CVE-2026-81638","EEF-CVE-2026-81638","GHSA-qxp2-vgp9-268q"],"related":[],"kind":"vulnerability","state":"published","title":"Non-canonical ULID spellings are accepted and alias to the same record in ash_double_entry","summary":"Improper Handling of Alternate Encoding vulnerability in ash-project ash_double_entry allows an attacker to submit several distinct string spellings of the same identifier.\n\nAshDoubleEntry.ULID renders a 128-bit ULID as 26 Crockford base-32 characters, but the first character encodes only 3 bits, so canonical values are 0 to 7. decode/1 in lib/ulid.ex masks the first character to its low 3 bits and valid?/1 accepts all 32 characters in that position, so 0..., 8..., G... and R... decode to the identical 16-byte value and resolve to the same row. When the type is exposed as a public ID over an HTTP or API boundary, an attacker-supplied ID can be spelled differently from the record it actually reads or writes, desynchronizing or bypassing string-level checks such as idempotency and deduplication keys, deny-lists, audit correlation, or signatures computed over the submitted ID.\n\nThis issue affects ash_double_entry: from 0.1.0 before 1.0.19.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Handling of Alternate Encoding vulnerability in ash-project ash_double_entry allows an attacker to submit several distinct string spellings of the same identifier.\n\nAshDoubleEntry.ULID renders a 128-bit ULID as 26 Crockford base-32 characters, but the first character encodes only 3 bits, so canonical values are 0 to 7. decode/1 in lib/ulid.ex masks the first character to its low 3 bits and valid?/1 accepts all 32 characters in that position, so 0..., 8..., G... and R... decode to the identical 16-byte value and resolve to the same row. When the type is exposed as a public ID over an HTTP or API boundary, an attacker-supplied ID can be spelled differently from the record it actually reads or writes, desynchronizing or bypassing string-level checks such as idempotency and deduplication keys, deny-lists, audit correlation, or signatures computed over the submitted ID.\n\nThis issue affects ash_double_entry: from 0.1.0 before 1.0.19.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Handling of Alternate Encoding vulnerability in ash-project ash_double_entry allows an attacker to submit several distinct string spellings of the same identifier.\n\n`AshDoubleEntry.ULID` renders a 128-bit ULID as 26 Crockford base-32 characters, but the first character encodes only 3 bits, so canonical values are `0` to `7`. `decode/1` in `lib/ulid.ex` masks the first character to its low 3 bits and `valid?/1` accepts all 32 characters in that position, so `0...`, `8...`, `G...` and `R...` decode to the identical 16-byte value and resolve to the same row. When the type is exposed as a public ID over an HTTP or API boundary, an attacker-supplied ID can be spelled differently from the record it actually reads or writes, desynchronizing or bypassing string-level checks such as idempotency and deduplication keys, deny-lists, audit correlation, or signatures computed over the submitted ID.\n\nThis issue affects ash_double_entry: from 0.1.0 before 1.0.19.\n\n## Configurations\n\nReachable only when an application exposes `AshDoubleEntry.ULID` as a public identifier over an HTTP or API boundary and performs string-level checks on the submitted ID (idempotency or deduplication keys, deny-lists, audit correlation, or signatures) rather than treating the value as opaque.","format":"markdown","source":"eef"}],"published":"2026-09-07T22:33:29.297Z","modified":"2026-11-25T06:31:03.815Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N"}],"cwes":["CWE-173"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"1.0.19","status":"affected"}],"vendor":"ash-project","product":"ash_double_entry","package":"ash_double_entry","cpe":"cpe:2.3:a:ash-project:ash_double_entry:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_double_entry","source":"cvelist"},{"ranges":[{"type":"git","introduced":"1e5f7ce8ff25f519c904731a29eb1258324e561a","fixed":"d3e688d300a581ae214b3ca7d95ef4de63fbb050","status":"affected"}],"vendor":"ash-project","product":"ash_double_entry","package":"ash-project/ash_double_entry","cpe":"cpe:2.3:a:ash-project:ash_double_entry:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_double_entry","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"1.0.19"}],"ecosystem":"Hex","package":"ash_double_entry","purl":"pkg:hex/ash_double_entry","source":"eef"},{"ranges":[{"type":"git","introduced":"1e5f7ce8ff25f519c904731a29eb1258324e561a","status":"affected","fixed":"d3e688d300a581ae214b3ca7d95ef4de63fbb050"}],"repo":"https://github.com/ash-project/ash_double_entry","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_double_entry/security/advisories/GHSA-qxp2-vgp9-268q","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-81638.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-81638","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_double_entry/commit/1e5f7ce8ff25f519c904731a29eb1258324e561a","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_double_entry/commit/d3e688d300a581ae214b3ca7d95ef4de63fbb050","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_double_entry","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-08T14:44:11.859Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-81638","url":"https://www.cve.org/CVERecord?id=CVE-2026-81638","licence":"CVE Terms of Use","modified":"2026-11-19T08:33:42.386Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-81638","url":"https://osv.dev/vulnerability/EEF-CVE-2026-81638","licence":"CC-BY-4.0","modified":"2026-11-25T06:31:03.815Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-81638","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81638","licence":"Public domain","modified":"2026-11-19T09:18:03.487Z"}],"updatedAt":"2026-11-25T22:59:36.556Z","epss":{"score":0.00133,"percentile":0.0305,"date":"2026-12-01T12:00:22.000Z"}}