{"id":"EEF-CVE-2026-81319","summary":"Unsafe deserialization of decrypted terms enables node DoS in AshCloak","details":"## Summary\n\nDeserialization of Untrusted Data vulnerability in ash-project ash_cloak allows an attacker who can influence the bytes of an encrypted column to crash the BEAM node, by triggering unbounded atom creation or a decompression bomb during decryption.\n\n`AshCloak.Calculations.Decrypt` decodes the decrypted binary with `Ash.Helpers.non_executable_binary_to_term/1` without the `:safe` option, so atoms in the payload are interned during the decode and never garbage collected, and the term format's compressed form is inflated transparently. `vault.decrypt!()` is the only barrier and stops tampering only for an authenticated cipher. Cloak also ships the unauthenticated `AES.CTR`, whose ciphertext an attacker who knows their own plaintext can XOR into any same-length payload without the key, so an ordinary read of the forged column reaches the decoder. A few hundred kilobytes of distinct atoms exhausts the atom table, or a small compressed payload inflates to gigabytes.\n\nThis issue affects ash_cloak: from 0.1.0 before 0.4.0.\n\n## Configurations\n\nAn application must use ash_cloak with an unauthenticated vault cipher (for example the `AES.CTR` cipher shipped by Cloak), or run in a deployment where the stored ciphertext can be modified, and read a cloaked field so the decrypt calculation runs.","aliases":["CVE-2026-81319","GHSA-rc26-mrm2-6pf9"],"modified":"2026-09-08T19:30:03.934564144Z","published":"2026-08-30T18:05:13.889Z","database_specific":{"capec_ids":["CAPEC-586"],"cpe_ids":["cpe:2.3:a:ash-project:ash_cloak:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-502"]},"references":[{"type":"ADVISORY","url":"https://github.com/ash-project/ash_cloak/security/advisories/GHSA-rc26-mrm2-6pf9"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-81319.html"},{"type":"FIX","url":"https://github.com/ash-project/ash_cloak/commit/1690f0a436efe3e7c11d70d74ff5a8ac0fdf6608"},{"type":"PACKAGE","url":"https://hex.pm/packages/ash_cloak"}],"affected":[{"package":{"name":"ash_cloak","ecosystem":"Hex","purl":"pkg:hex/ash_cloak"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.1.0"},{"fixed":"0.4.0"}]}],"versions":["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.2.0","0.2.1","0.3.0","0.3.1"],"database_specific":{"source":"https://cna.erlef.org/osv/EEF-CVE-2026-81319.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/ash-project/ash_cloak","events":[{"introduced":"f1595a77fdfa9bfc672f84c2f77feb9e7bf895fc"},{"fixed":"1690f0a436efe3e7c11d70d74ff5a8ac0fdf6608"}]}],"versions":["v0.3.1","v0.3.0","v0.2.1","v0.2.0","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0"],"database_specific":{"source":"https://cna.erlef.org/osv/EEF-CVE-2026-81319.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}],"credits":[{"name":"Peter Ullrich","type":"FINDER"},{"name":"Peter Ullrich","type":"REPORTER"},{"name":"Zach Daniel / Ash Project","type":"REMEDIATION_DEVELOPER"},{"name":"Jonatan Männchen / EEF","type":"COORDINATOR"}]}