URI gem has ReDoS vulnerability
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| uri RubyGems |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| uri RubyGems |
|
|
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.
From the CVE record · mitre
The Ruby uri package takes longer to parse invalid URLs containing specific characters in rfc2396_parser.rb and rfc3986_parser.rb. An attacker who can supply such a URL for parsing may cause a denial of service. The input does not specify whether network access, authentication, or user interaction is required.
Check applications using the RubyGems uri package in versions <0.10.0.3, >=0.10.1 <0.10.3, >=0.11.0 <0.11.2, or >=0.12.0 <0.12.2.