Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 800926 (CVE-2021-32740)

Summary: <dev-ruby/addressable-2.8.0: uncontrolled resource consumption (CVE-2021-32740)
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: minor CC: ruby
Priority: Normal Flags: nattka: sanity-check+
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/sporkmonger/addressable/security/advisories/GHSA-jxhc-q857-3j6g
Whiteboard: B3 [noglsa]
Package list:
dev-ruby/addressable-2.8.0
Runtime testing required: ---

Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-07-06 22:03:00 UTC
CVE-2021-32740:

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.


Please bump
Comment 1 Hans de Graaff gentoo-dev Security 2021-07-06 22:06:56 UTC
commit d03e64e235cabf050aa9a548ad4c75d00ba29b68
Author: Hans de Graaff <graaff@gentoo.org>
Date:   Tue Jul 6 21:47:38 2021 +0200

    dev-ruby/addressable: add 2.8.0
    
    Package-Manager: Portage-3.0.20, Repoman-3.0.2
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Comment 2 Agostino Sarubbo gentoo-dev 2021-07-09 06:27:23 UTC
amd64 stable
Comment 3 Agostino Sarubbo gentoo-dev 2021-07-13 06:34:23 UTC
x86 stable.

Maintainer(s), please cleanup.
Security, please vote.
Comment 4 Hans de Graaff gentoo-dev Security 2021-07-13 09:21:48 UTC
Cleanup done.
Comment 5 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-07-13 15:01:29 UTC
Only a DoS and input not typically read from untrusted sources, so I vote no. Thanks graaff, all done!