Name | CVE-2023-28755 |
Description | A ReDoS issue was discovered in the URI component through 0.12.0 in Ruby through 3.2.1. The URI parser mishandles invalid URLs that have specific characters. It causes an increase in execution time for parsing strings to URI objects. The fixed versions are 0.12.1, 0.11.1, 0.10.2 and 0.10.0.1. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3408-1, DLA-3447-1, DLA-3858-1, ELA-1149-1 |
Debian Bugs | 1036283, 1038408 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
jruby (PTS) | jessie, jessie (lts) | 1.5.6-9+deb8u2 | vulnerable |
| stretch (security), stretch (lts), stretch | 1.7.26-1+deb9u3 | vulnerable |
| buster (security), buster, buster (lts) | 9.1.17.0-3+deb10u1 | fixed |
| bookworm | 9.3.9.0+ds-8 | vulnerable |
| sid, trixie | 9.4.8.0+ds-1 | fixed |
ruby2.1 (PTS) | jessie, jessie (lts) | 2.1.5-2+deb8u14 | fixed |
ruby2.3 (PTS) | stretch (security) | 2.3.3-1+deb9u11 | vulnerable |
| stretch (lts), stretch | 2.3.3-1+deb9u12 | fixed |
ruby2.5 (PTS) | buster, buster (lts) | 2.5.5-3+deb10u7 | fixed |
| buster (security) | 2.5.5-3+deb10u6 | fixed |
ruby2.7 (PTS) | bullseye | 2.7.4-1+deb11u1 | vulnerable |
| bullseye (security) | 2.7.4-1+deb11u2 | fixed |
ruby3.1 (PTS) | bookworm (security), bookworm | 3.1.2-7+deb12u1 | vulnerable |
| sid, trixie | 3.1.2-8.4 | vulnerable |
rubygems (PTS) | bullseye | 3.2.5-2 | vulnerable |
| bookworm | 3.3.15-2 | vulnerable |
| sid, trixie | 3.4.20-1 | fixed |
The information below is based on the following data on fixed versions.
Notes
[bookworm] - rubygems <no-dsa> (Minor issue)
[bullseye] - rubygems <no-dsa> (Minor issue)
[bookworm] - ruby3.1 <no-dsa> (Minor issue)
[bookworm] - jruby <ignored> (Minor issue)
Fixed by: https://github.com/ruby/ruby/commit/8ce4ab146498879b65e22f1be951b25eebb79300 (v3_1_4)
Fixed by: https://github.com/ruby/uri/commit/eaf89cc31619d49e67c64d0b58ea9dc38892d175 (v0.12.1)
https://www.ruby-lang.org/en/news/2023/03/28/redos-in-uri-cve-2023-28755/
Incomplete fix, cf. CVE-2023-36617
https://github.com/jruby/jruby/commit/7e220403384faef102e838b412b4d1b3a9cfb6ec (9.4.3.0)
- ruby2.1 <not-affected> (URI module refactored in 2.2, test cases from fix show expected linear performances)