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

Published Jul 6, 2021
·
Updated

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.

Affected Software

4 affected componentsFixes available
redhat/addressable<2.8.0
2.8.0
Addressable Project Addressable Ruby>=2.3.0<2.8.0
Fedoraproject Fedora=33
Fedoraproject Fedora=34

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/addressable to a version that resolves this vulnerability.

    Fixed in 2.8.0
  2. Upgrade

    Upgrade addressable to a version that resolves this vulnerability.

    Fixed in 2.8.0Patch GHSA-jxhc-q857-3j6g
  3. Configuration

    As a workaround, only create Template objects from trusted sources that have been validated not to produce catastrophic backtracking.

    Addressable URI template Template source trust policy = trusted-only

Event History

Jul 6, 2021
CVE Published
via MITRE·02:15 PM
Data Sourced
via MITRE·02:15 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·06:50 PM
DescriptionSeverityAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203