File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 # Upgrade erb 4.0.2 -> 4.0.3.1, fixes CVE-2026-41316
4646 pkg . apply_patch "#{ base } /upgrade-erb-4.0.3.1.patch"
4747
48+ # Upgrade net-imap 0.3.9 -> 0.4.24, fixes CVE-2026-42246, other CVEs, and build issues.
49+ pkg . add_source (
50+ 'https://rubygems.org/downloads/net-imap-0.4.24.gem' ,
51+ {
52+ sum : '88289db8fd3f08aa8c661137810118e58fe309829e815e2ea8f3650662a6501b' ,
53+ sum_type : 'sha256'
54+ }
55+ )
56+ pkg . configure do
57+ [
58+ 'cp ../net-imap-0.4.24.gem gems/' ,
59+ "sed -i.bak 's/^net-imap.*/net-imap 0.4.24 https:\\ /\\ /github.com\\ /ruby\\ /net-imap/' gems/bundled_gems" ,
60+ # This next bit can be done via "make extract-gems", but that requires us
61+ # to have a "baseruby" installed.
62+ 'tar xf gems/net-imap-0.4.24.gem' ,
63+ 'mkdir .bundle/gems/net-imap-0.4.24' ,
64+ 'tar -C .bundle/gems/net-imap-0.4.24 -xzf data.tar.gz'
65+ ]
66+ end
67+
4868 ####################
4969 # ENVIRONMENT, FLAGS
5070 ####################
You can’t perform that action at this time.
0 commit comments