Skip to content

Commit a1a3907

Browse files
authored
CVE 202543857: uninstall net-imap gem (#1480)
* fix: Update net-imap gem to 0.5.7 to resolve CVE-2025-43857 in Linux container build * fix: Update net-imap gem to 0.5.7 to resolve CVE-2025-43857 in Linux container build * remove and install net-imap * removed net-imap * uninstall net-imap * Added comment * Removed gem for windows agent * Removed net-imap for both windows and linux
1 parent 7dd4fc3 commit a1a3907

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

kubernetes/linux/setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ rm -rf /usr/lib/ruby/gems/3.3.0/gems/find-0.2.0
3434
rm /usr/lib/ruby/gems/3.3.0/specifications/default/rdoc-6.6.3.1.gemspec
3535
rm -rf /usr/lib/ruby/gems/3.3.0/gems/rdoc-6.6.3.1
3636

37+
# remove net-imap gem as it has a known CVE (CVE-2025-43857) and is not used by the agent
38+
gem uninstall net-imap --force
39+
3740
sudo tdnf install -y azure-mdsd-1.35.1
3841
cp -f $TMPDIR/mdsd.xml /etc/mdsd.d
3942
cp -f $TMPDIR/envmdsd /etc/mdsd.d

kubernetes/windows/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ RUN refreshenv \
3232
&& gem install win32-ipc -v 0.7.0 \
3333
&& gem install win32-event -v 0.6.3 \
3434
# remove rexml gem to avoid vulnerability
35-
&& gem uninstall rexml -v 3.2.5 --force\
35+
&& gem uninstall rexml -v 3.2.5 --force \
36+
# remove net-imap gem as it has a known CVE (CVE-2025-43857) and is not used by the agent
37+
&& gem uninstall net-imap --force \
3638
# The following gems are required for fluentd plugins, or ruby for configuration parsing
3739
&& gem install windows-pr -v 1.2.6 \
3840
&& gem install tomlrb -v 2.0.1 \

0 commit comments

Comments
 (0)