{"id":"CVE-2026-81638","sourceIdentifier":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","published":"2026-09-07T23:16:51.757","lastModified":"2026-11-19T09:18:03.487","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","affectedData":[{"vendor":"ash-project","product":"ash_double_entry","defaultStatus":"unaffected","collectionURL":"https://repo.hex.pm","packageName":"ash_double_entry","cpes":["cpe:2.3:a:ash-project:ash_double_entry:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshDoubleEntry.ULID'"],"programFiles":["lib/ulid.ex"],"programRoutines":[{"name":"'Elixir.AshDoubleEntry.ULID':cast_input/2"},{"name":"'Elixir.AshDoubleEntry.ULID':dump_to_native/2"}],"repo":"https://github.com/ash-project/ash_double_entry","packageURL":"pkg:hex/ash_double_entry","versions":[{"version":"0.1.0","lessThan":"1.0.19","versionType":"semver","status":"affected"}]},{"vendor":"ash-project","product":"ash_double_entry","defaultStatus":"unaffected","collectionURL":"https://github.com","packageName":"ash-project/ash_double_entry","cpes":["cpe:2.3:a:ash-project:ash_double_entry:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshDoubleEntry.ULID'"],"programFiles":["lib/ulid.ex"],"programRoutines":[{"name":"'Elixir.AshDoubleEntry.ULID':cast_input/2"},{"name":"'Elixir.AshDoubleEntry.ULID':dump_to_native/2"}],"repo":"https://github.com/ash-project/ash_double_entry","packageURL":"pkg:github/ash-project/ash_double_entry","versions":[{"version":"1e5f7ce8ff25f519c904731a29eb1258324e561a","lessThan":"d3e688d300a581ae214b3ca7d95ef4de63fbb050","versionType":"git","status":"affected"}]}]}],"metrics":{"cvssMetricV40":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","cvssData":{"version":"4.0","vectorString":"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/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","baseScore":2.1,"baseSeverity":"LOW","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"LOW","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-09-08T14:44:11.859893Z","id":"CVE-2026-81638","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","description":[{"lang":"en","value":"CWE-173"}]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-81638.html","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ash-project/ash_double_entry/commit/1e5f7ce8ff25f519c904731a29eb1258324e561a","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ash-project/ash_double_entry/commit/d3e688d300a581ae214b3ca7d95ef4de63fbb050","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ash-project/ash_double_entry/security/advisories/GHSA-qxp2-vgp9-268q","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-81638","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"}]}