CVE-2023-36617
URI gem has ReDoS vulnerability
Reported by mitre · Published June 29, 2023
A ReDoS issue was discovered in the URI component before 0.12.2 for Ruby. The URI parser mishandles invalid URLs that have specific characters. There is an increase in execution time for parsing strings to URI objects with rfc2396_parser.rb and rfc3986_parser.rb. NOTE: this issue exists becuse of an incomplete fix for CVE-2023-28755. Version 0.10.3 is also a fixed version.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| uri | ruby-lang | 0.12.2, 0.10.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| amazon:2023 | ruby3.2-rubygem-bigdecimal | 0 |
| wolfi | jruby-9.4 | 0 |
| amazon:2023 | ruby3.2-libs | 0 |
| amazon:2023 | ruby3.2-rubygem-io-console | 0 |
| wolfi | ruby-3.0 | 0 |
| chainguard | ruby-3.2 | 0 |
| amazon:2023 | ruby3.2 | 0 |
| amazon:2023 | ruby3.2-rubygem-rexml | 0 |
| amazon:2023 | ruby3.2-bundled-gems | 0 |
| amazon:2023 | ruby3.2-rubygem-rbs | 0 |
| chainguard | logstash | 0 |
| amazon:2023 | ruby3.2-doc | 0 |
| wolfi | kube-fluentd-operator | 0 |
| amazon:2023 | ruby3.2-rubygem-rdoc | 0 |
| amazon:2023 | ruby3.2-rubygem-rake | 0 |
| amazon:2023 | ruby3.2-rubygem-minitest | 0 |
| amazon:2023 | ruby3.2-rubygem-power_assert | 0 |
| amazon:2023 | ruby3.2-rubygems-devel | 0 |
…and 19 more
Timeline
- Jun 29, 2023 CVE Published
- Jun 30, 2023 EPSS Score (30 in total, the first dated here)
- Aug 15, 2023 PoC Published
- Mar 17, 2026 Security Advisory (6 in total, the first dated here)
- Aug 7, 2026 Coalition ESS Score
- Oct 12, 2026 Distribution Patch (5 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-36617
vulnetix vdb fixes CVE-2023-36617
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-36617/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2024-31cac8b8ec vendor-advisory
- FEDORA-2024-48bdd3abbf vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-36617 advisory
- https://github.com/advisories/GHSA-hww2-5g85-429m advisory
- https://github.com/ruby/uri/commit/05b1e7d026b886e65a60ee35625229da9ec220bb patch
- https://github.com/ruby/uri/commit/38bf797c488bcb4a37fb322bfa84977981863ec6 patch
- https://github.com/ruby/uri/commit/3cd938df20db26c9439e9f681aadfb9bbeb6d1c0 patch
- https://github.com/ruby/uri/commit/4d02315181d8a485496f1bb107a6ab51d6f3a35f patch
- https://github.com/ruby/uri/commit/70794abc162bb15bb934713b5669713d6700d35c patch
- https://github.com/ruby/uri/commit/7e33934c91b7f8f3ea7b7a4258b468e19f636bc3 patch
- https://github.com/ruby/uri/commit/9a8e0cc03da964054c2a4ea26b59c53c3bae4921 patch
- https://github.com/ruby/uri/commit/ba36c8a3ecad8c16dd3e60a6da9abd768206c8fa patch
- https://www.ruby-lang.org/en/news/2023/06/29/redos-in-uri-CVE-2023-36617 url
- https://security.netapp.com/advisory/ntap-20230725-0002 advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QA6XUKUY7B5OLNQBLHOT43UW7C5NIOQQ url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2023-36617.yml advisory
…and 3 more