p PatchFirst

CVE-2026-126352

CVE-2026-126352 · Addressable: Regular Expression Denial of Service in Addressable templates with multiple variables

CVSS 5.9 · Medium · EPSS 0.4% · 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:

gem list --exact addressable
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="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. From 2.3.0 until 2.9.1, URI templates with several variables in one expression or several adjacent expressions generate ambiguous regular expressions. Affected forms include multi-variable expressions using operators other than plus and number sign, large plus or number-sign expressions, and adjacent single-variable expressions. Template#match or Template#extract can backtrack polynomially or exponentially on attacker-controlled URIs, causing denial of service on MRI Ruby before 3.2 and JRuby, with the large plus and number-sign form also affecting MRI Ruby 3.2 and TruffleRuby 40.0. URI parsing and Template#expand are unaffected. This issue is fixed in version 2.9.1.

Published
Updated

Stack: system · ruby

Affected products and versions

  • addressable

    Versions
    • >= 2.3.0, < 2.9.1: Affected

    No fix published

  • addressable RubyGems

    Versions
    • 2.3.2
    • 2.3.3
    • 2.3.4
    • 2.3.5
    • 2.3.6
    • 2.3.7
    All versions (25)
    • 2.3.8
    • 2.4.0
    • 2.5.0
    • 2.5.1
    • 2.5.2
    • 2.6.0
    • 2.7.0
    • 2.8.0
    • 2.8.1
    • 2.8.10
    • 2.8.2
    • 2.8.3
    • 2.8.4
    • 2.8.5
    • 2.8.6
    • 2.8.7
    • 2.8.8
    • 2.8.9
    • 2.9.0
    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.9.1

    Update to 2.9.1

  • 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

  • ruby-addressable Ubuntu Pro 22.04 LTS

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

    No fix published

  • ruby-addressable Ubuntu Pro 24.04 LTS

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

    No fix published

  • ruby-addressable Ubuntu 26.10

    Versions
    • 2.8.7-2
    • 2.9.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-addressable Ubuntu Pro 26.04 LTS

    Versions
    • 2.8.7-2
    • 2.8.7-2ubuntu0.26.04.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →