Bug 1979702 (CVE-2021-32740) - CVE-2021-32740 rubygem-addressable: ReDoS in templates
Summary: CVE-2021-32740 rubygem-addressable: ReDoS in templates
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-32740
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1982122 1979703 1979704 1980197 1980283 1980946
Blocks: 1979706 1997390
TreeView+ depends on / blocked
 
Reported: 2021-07-06 18:50 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-12-22 21:56 UTC (History)
60 users (show)

Fixed In Version: addressable 2.8.0
Doc Type: If docs needed, set a value
Doc Text:
A resource-consumption vulnerability was found in rubygem addressable, where its URI template implementation could allow an attacker's crafted template to consume resources, resulting in a denial of service. The highest threat from this vulnerability is to system availability.
Clone Of:
Environment:
Last Closed: 2021-11-01 01:49:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:08:22 UTC

Description Guilherme de Almeida Suckevicz 2021-07-06 18:50:48 UTC
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. An uncontrolled resource consumption vulnerability exists after version 2.3.0 through version 2.7.0. 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. The vulnerability is patched in version 2.8.0. As a workaround, only create Template objects from trusted sources that have been validated not to produce catastrophic backtracking.

Reference:
https://github.com/sporkmonger/addressable/security/advisories/GHSA-jxhc-q857-3j6g

Comment 1 Guilherme de Almeida Suckevicz 2021-07-06 18:51:17 UTC
Created rubygem-addressable tracking bugs for this issue:

Affects: epel-7 [bug 1979704]
Affects: fedora-all [bug 1979703]

Comment 15 errata-xmlrpc 2021-11-16 14:08:20 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.10 for RHEL 7

Via RHSA-2021:4702 https://access.redhat.com/errata/RHSA-2021:4702


Note You need to log in before you can comment on or make changes to this bug.