Addressable::Template builds its regexp in quadratic time for patterns with non-ASCII characters or many adjacent expressions
CVE-2026-141529
Impact Addressable::Template builds a regular expression from its pattern the first time it's needed, by #match, #extract, #toregexp, #variables (and its aliases #keys and #names), #variabledefaults or #freeze. When the pattern has non-ASCII characters, or a long run of expressions with no literal text between them (such as {a}{b}{c}), building it takes time quadratic in the pattern's length. A non-ASCII pattern of a few hundred kilobytes takes seconds on MRI and longer on JRuby. A run of 5,000 expressions, 15 KB, takes about 4 seconds on MRI and 8 seconds on JRuby. Other templates build in linear time. The cost is in the pattern, not in the URI being matched, so only an application that builds templates from untrusted input is affected. Matching untrusted URIs against the application's own templates isn't. The regular expression is cached on the template, so the cost is paid once per template, except that #match and #extract with a processor build it on every call. #expand and #partialexpand don't build it and aren't affected. Templates from untrusted sources are uncommon, and the attacker needs a pattern of many kilobytes to cause a delay of seconds, so attack complexity is…
Assessment
- CVSS
- 3.7 (v3.1)
- Severity
- Low
- EPSS
- 0.00639% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 1 December 2026
- Last updated
- 1 December 2026
- Affected
- sporkmonger · addressable · addressable
- Weakness
- CWE-407
- Assigner
- security-advisories@github.com
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
At the source
References
- https://github.com/sporkmonger/addressable/security/advisories/GHSA-h78h-gj97-g737
- https://nvd.nist.gov/vuln/detail/CVE-2026-141529
- https://github.com/sporkmonger/addressable/commit/ebe911f8623bcc664d2e6df079c96c325ad181c8
- https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0
- https://github.com/advisories/GHSA-h78h-gj97-g737
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-141529