RubySec

Providing security resources for the Ruby community

CVE-2021-32740 (addressable): Regular Expression Denial of Service in Addressable templates

ADVISORIES

GEM

addressable

SEVERITY

CVSS v3.x: 7.5 (High)

UNAFFECTED VERSIONS

  • < 2.3.0

PATCHED VERSIONS

  • >= 2.8.0

DESCRIPTION

Within the URI template implementation in Addressable, a maliciously crafted template may result in uncontrolled resource consumption, leading to denial of service when matched against a URI. In typical usage, templates would not normally be read from untrusted user input, but nonetheless, no previous security advisory for Addressable has cautioned against doing this. Users of the parsing capabilities in Addressable but not the URI template capabilities are unaffected.