Advisory

GHSA-8hc4-xxm3-5ppp

Also known as: CVE-2021-22880

Summary

Active Record subject to Regular Expression Denial-of-Service (ReDoS)

Details

The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 suffers from a regular expression denial of service (REDoS) vulnerability. Carefully crafted input can cause the input validation in the money type of the PostgreSQL adapter in Active Record to spend too much time in a regular expression, resulting in the potential for a DoS attack. This only impacts Rails applications that are using PostgreSQL along with money type columns that take user input.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-03-02 03:44 UTC
Modified
2024-02-20 05:21 UTC

Affected packages and fixes

activerecord

RubyGems · All systems

Affected

  • introduced 5.0.0, fixed 5.2.4.5 (ecosystem)

Fixed versions

5.2.4.5

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 6.0.0, fixed 6.0.3.5 (ecosystem)

Fixed versions

6.0.3.5

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 6.1.0, fixed 6.1.2.1 (ecosystem)

Fixed versions

6.1.2.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences