Bug 2527311 - CVE-2026-80213 rubygems: Resolv gem: DNS allowlist and egress bypass, and cache poisoning via crafted hostnames [fedora-all]
Summary: CVE-2026-80213 rubygems: Resolv gem: DNS allowlist and egress bypass, and cac...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygems
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Vít Ondruch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["5a9e5396-f74d-43b6-b30d-e...
Depends On:
Blocks: CVE-2026-80213
TreeView+ depends on / blocked
 
Reported: 2026-09-02 10:01 UTC by Tomas Hoger
Modified: 2026-09-16 00:54 UTC (History)
3 users (show)

Fixed In Version: rubygems-4.0.20-1.fc46 rubygems-4.0.20-1.fc44
Clone Of:
Environment:
Last Closed: 2026-09-16 00:54:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tomas Hoger 2026-09-02 10:01:32 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

An issue was discovered in the resolv gem before 0.7.2 for Ruby. Resolv::DNS::MessageEncoder wrote a DNS label's length into a single octet without checking its range. A label longer than 255 octets had its length stored modulo 256 but the label data was written unchanged, and thus the bytes on the wire described a different name than the one the application asked to encode. RFC 1035 section 2.3.4 limits a label to 63 octets, and the two high bits of the length octet are reserved for compression pointers. put_string packed the length with put_pack("C", d.length) and put_label used it for labels, and thus any value from 0 to 255 could end up as a label length octet, including the reserved 0x40-0xBF range and the 0xC0-0xFF pointer range. Resolv::DNS::Name.create did not check per-label or total name length either, and thus an attacker-controlled hostname reached the encoder unchanged. An application that resolves an attacker-controlled hostname sends a query whose wire bytes name a domain the attacker chose. A hostname suffix that the application validates against an allowlist becomes padding that never appears on the wire, and thus allowlist and egress checks can be bypassed. The recursive resolver caches the response under the attacker's name, and DNS logs record that name rather than the one the application asked for. A label length whose low octet lands in the 0xC0-0xFF range produces a length octet that conforming parsers read as the start of a compression pointer, with the following attacker-controlled byte as the offset.

Comment 1 Fedora Update System 2026-09-10 07:21:41 UTC
FEDORA-2026-c77b963cc9 (rubygems-4.0.20-1.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-c77b963cc9

Comment 2 Fedora Update System 2026-09-10 07:25:41 UTC
FEDORA-2026-c77b963cc9 (rubygems-4.0.20-1.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2026-09-10 07:54:47 UTC
FEDORA-2026-9831a751e2 (rubygems-4.0.20-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-9831a751e2

Comment 4 Fedora Update System 2026-09-10 07:55:18 UTC
FEDORA-2026-2857104379 (rubygems-4.0.20-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-2857104379

Comment 5 Mamoru TASAKA 2026-09-10 07:58:57 UTC
Note that I am not going to update Fedora 43 rubygems.src .
Currently F-43 rubygems.src FTBFS, and F43 rubygems.src is behind rubygems binary coming from F43 ruby.src, so just updating ruby.src should be fine for F43.
(New update for ruby.src in F43 will include CVE security fixes)

Comment 6 Fedora Update System 2026-09-11 01:34:55 UTC
FEDORA-2026-9831a751e2 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-9831a751e2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-9831a751e2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-09-11 02:27:39 UTC
FEDORA-2026-2857104379 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-2857104379`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-2857104379

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2026-09-16 00:16:51 UTC
FEDORA-2026-9831a751e2 (rubygems-4.0.20-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2026-09-16 00:54:10 UTC
FEDORA-2026-2857104379 (rubygems-4.0.20-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.