|
| 1 | +--- |
| 2 | +layout: advisory |
| 3 | +title: 'CVE-2026-80213 (resolv): CVE-2026-80213 - Hostname validation bypass' |
| 4 | +comments: false |
| 5 | +categories: |
| 6 | +- resolv |
| 7 | +advisory: |
| 8 | + gem: resolv |
| 9 | + cve: 2026-80213 |
| 10 | + url: https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-80213 |
| 11 | + title: CVE-2026-80213 - Hostname validation bypass |
| 12 | + date: 2026-08-27 |
| 13 | + description: |- |
| 14 | + An application that checks a hostname against an allow list or an |
| 15 | + SSRF filter and then resolves it can be made to look up a domain |
| 16 | + other than the one it checked. The string that passes validation |
| 17 | + and the name that reaches the network are not the same, so the |
| 18 | + connection can end up at a host the application never approved. |
| 19 | + This requires a hostname that exceeds the DNS length limits, so |
| 20 | + validation that rejects names longer than 255 octets, or labels |
| 21 | + longer than 63 octets, is not affected. |
| 22 | +
|
| 23 | + ## Credits |
| 24 | +
|
| 25 | + Thanks to dalifit for discovering these issues. |
| 26 | + patched_versions: |
| 27 | + - "~> 0.3.2" |
| 28 | + - ">= 0.7.2" |
| 29 | + related: |
| 30 | + url: |
| 31 | + - https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-80213 |
| 32 | + - https://rubygems.org/gems/resolv/versions/0.7.2 |
| 33 | + - https://github.com/ruby/resolv/releases/tag/v0.7.2 |
| 34 | + - https://rubygems.org/gems/resolv/versions/0.3.2 |
| 35 | + - https://github.com/ruby/resolv/releases/tag/v0.3.2 |
| 36 | + - https://www.ruby-lang.org/en/security |
| 37 | + - https://www.ruby-lang.org/en/news/2026/08/27/multiple-vulnerabilities-in-resolv |
| 38 | + notes: | |
| 39 | + - CVE is reserved, but not published. |
| 40 | + - No GHSA values and no cvss values |
| 41 | + - Text from "multiple-vulnerabilities-in-resolv" URL |
| 42 | + - "Affected versions |
| 43 | + - resolv gem 0.4.0 through 0.7.1 |
| 44 | + - resolv gem 0.3.1 and earlier |
| 45 | + - The version bundled with Ruby differs per series: Ruby 4.0 ships |
| 46 | + resolv 0.7.0, Ruby 3.4 ships 0.7.1, and Ruby 3.3 ships 0.3.1." |
| 47 | + - Recommended action |
| 48 | + - Update the resolv gem to 0.7.2. For the Ruby 3.3 series, update to 0.3.2. |
| 49 | + - No release is planned for the 0.2.x line that the Ruby 3.2 series |
| 50 | + ships, because that series has reached its end of life. Install |
| 51 | + resolv 0.7.2 there instead." |
| 52 | +--- |
0 commit comments