{"affected":[{"package":{"ecosystem":"Hex","name":"ash_paper_trail","purl":"pkg:hex/ash_paper_trail"},"ranges":[{"events":[{"introduced":"0.1.1"},{"fixed":"0.7.0"}],"type":"SEMVER"}],"versions":["0.1.1","0.1.2-rc.0","0.1.2","0.1.3","0.1.4","0.2.0","0.2.1","0.3.0","0.3.1","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.5.7","0.6.0"]},{"ranges":[{"events":[{"introduced":"449cd2a93416853066378fa61c715e89f80dc854"},{"fixed":"e781f5d8840b07d57db99f9a4728298837d7b3a8"}],"repo":"https://github.com/ash-project/ash_paper_trail","type":"GIT"}]}],"aliases":["GHSA-7c66-59m8-723c","CVE-2026-77831"],"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-130"],"cpe_ids":["cpe:2.3:a:ash-project:ash_paper_trail:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-407"]},"details":"## Summary\n\nInefficient Algorithmic Complexity vulnerability in ash-project ash_paper_trail allows a user who can submit a large array attribute to a paper-trailed create or update action to cause a denial of service through excessive CPU and memory use.\n\nWith full-diff change tracking, `AshPaperTrail.ChangeBuilders.FullDiff.ListChange` pairs each prior array element against the new list by rebuilding the remaining-elements accumulator with `acc ++ [tuple]` on every step, copying the growing list each time, so the pairing scales cubically in the array length. Nothing bounds the length and the value comes straight from action input, so one request carrying a large accepted `{:array, _}` attribute forces tens of seconds of CPU and multi-gigabyte allocations.\n\nThis issue affects ash_paper_trail: from 0.1.1 before 0.7.0.\n\n## Configurations\n\nThe resource must use full-diff change tracking (`change_tracking_mode :full_diff`) and accept an array attribute with no effective maximum length, reached through a create or update action exposed to the input.","id":"EEF-CVE-2026-77831","modified":"2026-09-08T01:45:01.181789Z","published":"2026-08-30T00:18:38.078Z","references":[{"type":"ADVISORY","url":"https://github.com/ash-project/ash_paper_trail/security/advisories/GHSA-7c66-59m8-723c"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-77831.html"},{"type":"FIX","url":"https://github.com/ash-project/ash_paper_trail/commit/e781f5d8840b07d57db99f9a4728298837d7b3a8"},{"type":"PACKAGE","url":"https://hex.pm/packages/ash_paper_trail"}],"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:L/SC:N/SI:N/SA:N","type":"CVSS_V4"}],"summary":"Algorithmic-complexity denial of service in AshPaperTrail full-diff list tracking","upstream":[]}