ash_paper_trail is vulnerable to Denial of Service (DoS)
21
Low Risk
AshPaperTrail builds a full diff of tracked changes when versioning a resource. The zip_up_tuples and extract_matching_value_tuple helpers in the full-diff list builder pair prior array elements against the new list by rebuilding an accumulator with repeated acc ++ [tuple] concatenation, which scales cubically in array length. A user who submits a large array attribute to a paper-trailed create or update action can force tens of seconds of CPU time and multiple gigabytes of allocation per request, exhausting server resources. The fix replaces the quadratic accumulator copying with efficient list construction.
You are affected if you are using a version that falls within the vulnerable range and you expose a paper-trailed create or update action that accepts a large user-controlled array attribute with full-diff change tracking.
ash_paper_trail is vulnerable to Denial of Service (DoS) in versions 0.1.1 - 0.6.0.
Upgrade the ash_paper_trail library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.