Skip to content

Commit 48e966a

Browse files
committed
net-imap: Update 0.3.9->0.4.24
This commit upgrades the bundled net-imap gem in Ruby 3.2.11 from the original version of 0.3.9 to 04.24. This release contains a fix for the following high-severity issue with STARTTLS: - GHSA-vcgp-9326-pqcp There will be no further upstream releases to Ruby 3.2, thus we have to upgrade this gem ourselves. The 0.4.0 release has a few breaking changes, however there are several issues with the 0.3.10 version of `net-imap`: - It will be the last release to `net-imap` 0.3.x - The 0.3.x releases will not install in containerized build environments where the default locale is set to `POSIX` (Debian). This was resloved in the 0.4.3 release by: ruby/net-imap#210 - The 0.4.24 release contains fixes for additional medium-to-low severity issues: * GHSA-hm49-wcqc-g2xg * GHSA-q2mw-fvj9-vvcw * GHSA-87pf-fpwv-p7m7 * GHSA-75xq-5h9v-w6px CVE-2026-42246 CVE-2026-42257 CVE-2026-42256 CVE-2026-42258 CVE-2026-42245 Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
1 parent b4c2130 commit 48e966a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

configs/components/ruby-3.2.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,26 @@
4343
pkg.apply_patch "#{base}/openssl3_fips.patch"
4444
end
4545

46+
# Upgrade net-imap 0.3.9 -> 0.4.24, fixes CVE-2026-42246, other CVEs, and build issues.
47+
pkg.add_source(
48+
'https://rubygems.org/downloads/net-imap-0.4.24.gem',
49+
{
50+
# NOTE: Has to be MD5 due to vanagon limitations.
51+
sum: 'dfe894c164fcef8eb7145f0dd3b9ce4f'
52+
}
53+
)
54+
pkg.configure do
55+
[
56+
'cp ../net-imap-0.4.24.gem gems/',
57+
"sed -i.bak 's/^net-imap.*/net-imap 0.4.24 https:\\/\\/github.com\\/ruby\\/net-imap/' gems/bundled_gems",
58+
# This next bit can be done via "make extract-gems", but that requires us
59+
# to have a "baseruby" installed.
60+
'tar xf gems/net-imap-0.4.24.gem',
61+
'mkdir .bundle/gems/net-imap-0.4.24',
62+
'tar -C .bundle/gems/net-imap-0.4.24 -xzf data.tar.gz'
63+
]
64+
end
65+
4666
####################
4767
# ENVIRONMENT, FLAGS
4868
####################

0 commit comments

Comments
 (0)