Am I affected?

type your ash_paper_trail version to check

Description

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.

Weaknesses & attack patterns

Weakness

CWE-407 · Inefficient Algorithmic Complexity in catalog → MITRE ↗

Attack patterns

CAPEC-130 · Excessive Allocation MITRE ↗

Affected — Hex / ash_paper_trail Hex.pm ↗ Repository ↗

0.1.1 < 0.7.0 affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_paper_trail:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.AshPaperTrail.ChangeBuilders.FullDiff.ListChange'
source files lib/change_builders/full_diff/list_change.ex
routines 'Elixir.AshPaperTrail.ChangeBuilders.FullDiff.ListChange':build/2

Affected — GitHub / ash-project/ash_paper_trail Repository ↗

449cd2a < e781f5d affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_paper_trail:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.AshPaperTrail.ChangeBuilders.FullDiff.ListChange'
source files lib/change_builders/full_diff/list_change.ex
routines 'Elixir.AshPaperTrail.ChangeBuilders.FullDiff.ListChange':build/2

Configurations

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.

References

Credits

Peter Ullrich Finder Reporter
Zach Daniel / Ash Project Remediation developer
Jonatan Männchen / EEF Coordinator

CVSS breakdown

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
« All CVEs