p PatchFirst

CVE-2021-32740

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

CVSS 7.5 · High · EPSS 2.1% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

apk list -I -o ruby-addressable

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system · ruby

Affected products and versions

  • addressable

    Versions
    • > 2.3.0, <= 2.7.0: Affected

    No fix published

  • ruby-addressable Alpine 3.15

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Alpine 3.16

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Alpine 3.17

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Alpine 3.18

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Alpine 3.19

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Alpine 3.20

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Alpine 3.21

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Alpine 3.22

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Alpine 3.23

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Alpine 3.24

    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0

    Update to 2.8.0-r0

  • ruby-addressable Debian 12

    Affected ranges
    • ECOSYSTEM: < 2.7.0-2

    Update to 2.7.0-2

  • ruby-addressable Debian 13

    Affected ranges
    • ECOSYSTEM: < 2.7.0-2

    Update to 2.7.0-2

  • ruby-addressable Debian 14

    Affected ranges
    • ECOSYSTEM: < 2.7.0-2

    Update to 2.7.0-2

  • addressable RubyGems

    Versions
    • 2.3.2
    • 2.3.3
    • 2.3.4
    • 2.3.5
    • 2.3.6
    • 2.3.7
    All versions (13)
    • 2.3.8
    • 2.4.0
    • 2.5.0
    • 2.5.1
    • 2.5.2
    • 2.6.0
    • 2.7.0
    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.8.0

    Update to 2.8.0

  • ruby-addressable Ubuntu Pro 16.04 LTS

    Versions
    • 2.3.8-1
    • 2.3.8-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-addressable Ubuntu Pro 18.04 LTS

    Versions
    • 2.5.1-2
    • 2.5.2-1
    • 2.5.2-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-addressable Ubuntu Pro 20.04 LTS

    Versions
    • 2.5.2-1
    • 2.7.0-1
    • 2.7.0-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →