2026-08-30 0:18CVE-2026-77831EEF
PUBLISHED5.2ApplicationCWE-407

Algorithmic-complexity denial of service in AshPaperTrail full-diff list tracking

Inefficient 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.

With 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.

This issue affects ash_paper_trail: from 0.1.1 before 0.7.0.

Problem type

Affected products

ash-project

ash_paper_trail

< 0.7.0 - AFFECTED

ash_paper_trail

< e781f5d8840b07d57db99f9a4728298837d7b3a8 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-77831
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-77831",
    "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
    "assignerShortName": "EEF",
    "dateUpdated": "2026-08-30T00:18:38.078Z",
    "dateReserved": "2026-08-27T16:30:01.792Z",
    "datePublished": "2026-08-30T00:18:38.078Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "shortName": "EEF",
        "dateUpdated": "2026-08-30T00:18:38.078Z"
      },
      "title": "Algorithmic-complexity denial of service in AshPaperTrail full-diff list tracking",
      "descriptions": [
        {
          "lang": "en",
          "value": "Inefficient 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.",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "<p>Inefficient 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.</p>\n<p>With full-diff change tracking, <code>AshPaperTrail.ChangeBuilders.FullDiff.ListChange</code> pairs each prior array element against the new list by rebuilding the remaining-elements accumulator with <code>acc ++ [tuple]</code> 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 <code>{:array, _}</code> attribute forces tens of seconds of CPU and multi-gigabyte allocations.</p>\n<p>This issue affects ash_paper_trail: from 0.1.1 before 0.7.0.</p>"
            },
            {
              "type": "text/markdown",
              "base64": false,
              "value": "Inefficient 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."
            }
          ]
        }
      ],
      "affected": [
        {
          "vendor": "ash-project",
          "product": "ash_paper_trail",
          "collectionURL": "https://repo.hex.pm",
          "packageName": "ash_paper_trail",
          "cpes": [
            "cpe:2.3:a:ash-project:ash_paper_trail:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "'Elixir.AshPaperTrail.ChangeBuilders.FullDiff.ListChange'"
          ],
          "programFiles": [
            "lib/change_builders/full_diff/list_change.ex"
          ],
          "programRoutines": [
            {
              "name": "'Elixir.AshPaperTrail.ChangeBuilders.FullDiff.ListChange':build/2"
            }
          ],
          "repo": "https://github.com/ash-project/ash_paper_trail",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0.1.1",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "0.7.0"
            }
          ]
        },
        {
          "vendor": "ash-project",
          "product": "ash_paper_trail",
          "collectionURL": "https://github.com",
          "packageName": "ash-project/ash_paper_trail",
          "cpes": [
            "cpe:2.3:a:ash-project:ash_paper_trail:*:*:*:*:*:*:*:*"
          ],
          "modules": [
            "'Elixir.AshPaperTrail.ChangeBuilders.FullDiff.ListChange'"
          ],
          "programFiles": [
            "lib/change_builders/full_diff/list_change.ex"
          ],
          "programRoutines": [
            {
              "name": "'Elixir.AshPaperTrail.ChangeBuilders.FullDiff.ListChange':build/2"
            }
          ],
          "repo": "https://github.com/ash-project/ash_paper_trail",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "449cd2a93416853066378fa61c715e89f80dc854",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e781f5d8840b07d57db99f9a4728298837d7b3a8"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "CWE-407 Inefficient Algorithmic Complexity",
              "cweId": "CWE-407",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/ash-project/ash_paper_trail/security/advisories/GHSA-7c66-59m8-723c",
          "tags": [
            "vendor-advisory",
            "related"
          ]
        },
        {
          "url": "https://cna.erlef.org/cves/CVE-2026-77831.html",
          "tags": [
            "related"
          ]
        },
        {
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-77831",
          "tags": [
            "related"
          ]
        },
        {
          "url": "https://github.com/ash-project/ash_paper_trail/commit/e781f5d8840b07d57db99f9a4728298837d7b3a8",
          "tags": [
            "patch"
          ]
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-130",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-130 Excessive Allocation"
            }
          ]
        }
      ],
      "metrics": [
        {
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "configurations": [
        {
          "lang": "en",
          "value": "The 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.",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "<p>The resource must use full-diff change tracking (<code>change_tracking_mode :full_diff</code>) and accept an array attribute with no effective maximum length, reached through a create or update action exposed to the input.</p>"
            },
            {
              "type": "text/markdown",
              "base64": false,
              "value": "The 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."
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Peter Ullrich",
          "type": "finder"
        },
        {
          "lang": "en",
          "value": "Peter Ullrich",
          "type": "reporter"
        },
        {
          "lang": "en",
          "value": "Zach Daniel / Ash Project",
          "type": "remediation developer"
        },
        {
          "lang": "en",
          "value": "Jonatan Männchen / EEF",
          "type": "coordinator"
        }
      ]
    }
  }
}