{"affected":[{"package":{"ecosystem":"Hex","name":"ash_cloak","purl":"pkg:hex/ash_cloak"},"ranges":[{"events":[{"introduced":"0.1.0"},{"fixed":"0.4.0"}],"type":"SEMVER"}],"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"]},{"ranges":[{"events":[{"introduced":"f1595a77fdfa9bfc672f84c2f77feb9e7bf895fc"},{"fixed":"1690f0a436efe3e7c11d70d74ff5a8ac0fdf6608"}],"repo":"https://github.com/ash-project/ash_cloak","type":"GIT"}]}],"aliases":["GHSA-rc26-mrm2-6pf9","CVE-2026-81319"],"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"}],"database_specific":{"capec_ids":["CAPEC-586"],"cpe_ids":["cpe:2.3:a:ash-project:ash_cloak:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-502"]},"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\nAshCloak.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## Configuration\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.","id":"EEF-CVE-2026-81319","modified":"2026-08-30T18:05:14.312461Z","published":"2026-08-30T18:05:13.889Z","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"}],"related":[],"schema_version":"1.7.3","severity":[{"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","type":"CVSS_V4"}],"summary":"Unsafe deserialization of decrypted terms enables node DoS in AshCloak","upstream":[]}