Alpine: multiple ruby packages: security update to 3.3.13-r0

medium Tenable Cloud Security Plugin ID 477565

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- zlib is a Ruby interface for the zlib compression/decompression library. Versions 3.0.0 and below, 3.1.0,
3.1.1, 3.2.0 and 3.2.1 contain a buffer overflow vulnerability in the Zlib::GzipReader. The
zstream_buffer_ungets function prepends caller-provided bytes ahead of previously produced output but
fails to guarantee the backing Ruby string has enough capacity before the memmove shifts the existing
data. This can lead to memory corruption when the buffer length exceeds capacity. This issue has been
fixed in versions 3.0.1, 3.1.2 and 3.2.3. (CVE-2026-27820)

- ERB is a templating system for Ruby. Ruby 2.7.0 (before ERB 2.2.0 was published on rubygems.org)
introduced an `@_init` instance variable guard in `ERB#result` and `ERB#run` to prevent code execution
when an ERB object is reconstructed via `Marshal.load` (deserialization). However, three other public
methods that also evaluate `@src` via `eval()` were not given the same guard: `ERB#def_method`,
`ERB#def_module`, and `ERB#def_class`. An attacker who can trigger `Marshal.load` on untrusted data in a
Ruby application that has `erb` loaded can use `ERB#def_module` (zero-arg, default parameters) as a code
execution sink, bypassing the `@_init` protection entirely. ERB 4.0.3.1, 4.0.4.1, 6.0.1.1, and 6.0.4 patch
the issue. (CVE-2026-41316)

- An issue was discovered in the resolv gem before 0.7.2 for Ruby. Resolv::DNS::Resource.get_class,
Resolv::DNS::Resource::Generic.create, and Resolv::DNS::SvcParam::Generic.create generate a new class for
each unknown DNS resource record (type, class) pair, or each unknown SvcParamKey, encountered while
decoding a response. Each generated class was permanently registered both as a constant on Resource (or
SvcParam::Generic) and as an entry in a class-lookup hash (ClassHash), and thus the class remained
reachable through that constant after the response was discarded. Type and class are each 16-bit values,
and thus an attacker controlling DNS responses (a spoofed response, or a malicious or hijacked upstream
DNS server) has roughly 2^32 distinct (type, class) pairs to choose from. A single response of a few
hundred kilobytes carrying tens of thousands of distinct unknown types permanently grows process memory by
tens of megabytes; repeated responses accumulate without bound and are never reclaimed by garbage
collection, because the constant keeps each class alive. Any code path that calls
Resolv::DNS::Message.decode on attacker-influenced DNS responses is affected. resolv is a default gem, and
thus this is reachable from a plain Ruby installation without any additional dependency. (CVE-2026-80212)

- 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.
(CVE-2026-80213)

Solution

Update the ruby library and its related packages to version 3.3.13-r0 or later.

See Also

https://security.alpinelinux.org/vuln/CVE-2026-110264

https://security.alpinelinux.org/vuln/CVE-2026-27820

https://security.alpinelinux.org/vuln/CVE-2026-41316

https://security.alpinelinux.org/vuln/CVE-2026-80212

https://security.alpinelinux.org/vuln/CVE-2026-80213

https://security.alpinelinux.org/vuln/CVE-2026-89078

https://security.alpinelinux.org/vuln/CVE-2026-93577

https://security.alpinelinux.org/vuln/CVE-2026-97229

Plugin Details

Severity: Medium

ID: 477565

Version: Revision 1.13

Type: Local

Published: 10/27/2026

Updated: 11/13/2026

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Critical

Score: 9.5

Percentile: 99.88

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 8.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-27820

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.4

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:H/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.3

Threat Score: 1.7

Threat Vector: CVSS:4.0/E:A

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 4/16/2026

Exploitable With

Metasploit (GitLab CI/CD RegExp Integer Overflow Remote Code Execution)

Reference Information

CVE: CVE-2026-110264, CVE-2026-27820, CVE-2026-41316, CVE-2026-80212, CVE-2026-80213, CVE-2026-89078, CVE-2026-93577, CVE-2026-97229