Skip to content

remove plexus-utils from production image due to CVE-2025-67030#428

Merged
Apmats merged 1 commit intomainfrom
apmats/remove-plexus-utils-CVE-2025-67030
Apr 1, 2026
Merged

remove plexus-utils from production image due to CVE-2025-67030#428
Apmats merged 1 commit intomainfrom
apmats/remove-plexus-utils-CVE-2025-67030

Conversation

@Apmats
Copy link
Copy Markdown
Contributor

@Apmats Apmats commented Apr 1, 2026

elastic/search-team#13576

plexus-utils-3.5.1.jar (CVE-2025-67030, directory traversal) is bundled inside ruby-maven-libs-3.9.9, which ships Apache Maven. Maven is only used at build time for JAR dependency resolution via jar-dependencies and is not needed at runtime.

This PR removes ruby-maven and ruby-maven-libs gems from both Docker images after the build step, eliminating the vulnerable library from the production artifact.

Verified locally:

plexus-utils-3.5.1.jar is no longer present in the built image
All default gems load successfully
Test suite passes (4 pre-existing sitemap test failures unrelated to this change)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Apmats Apmats requested a review from a team as a code owner April 1, 2026 06:11
@artem-shelkovnikov
Copy link
Copy Markdown
Member

4 pre-existing sitemap test failures unrelated to this change

What are these failures?

@Apmats
Copy link
Copy Markdown
Contributor Author

Apmats commented Apr 1, 2026

@artem-shelkovnikov Sorry, I should have clarified. In order to test that this change doesn't break anything, I ran the full test suite inside the wolfi production image. Before and after the change, we had 4 sitemap related test failures. These failures only happen inside the production image.
Claude provided reasoning "In the production image we used a stripped-down JDK built with jlink that's missing the jdk.charsets module — Nokogiri needs that for ISO-2022-JP charset support and fails to initialize without it. These same tests fail on main without any of the changes. CI runs the tests with the full JDK, so they pass there".

@Apmats Apmats merged commit 9bb93dc into main Apr 1, 2026
5 checks passed
@Apmats Apmats deleted the apmats/remove-plexus-utils-CVE-2025-67030 branch April 1, 2026 13:14
github-actions bot pushed a commit that referenced this pull request Apr 1, 2026
elastic/search-team#13576

plexus-utils-3.5.1.jar (CVE-2025-67030, directory traversal) is bundled
inside ruby-maven-libs-3.9.9, which ships Apache Maven. Maven is only
used at build time for JAR dependency resolution via jar-dependencies
and is not needed at runtime.

This PR removes ruby-maven and ruby-maven-libs gems from both Docker
images after the build step, eliminating the vulnerable library from the
production artifact.

Verified locally:

plexus-utils-3.5.1.jar is no longer present in the built image
All default gems load successfully
Test suite passes (4 pre-existing sitemap test failures unrelated to
this change)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

💚 Backport PR(s) successfully created

Status Branch Result
0.4 #429

This backport PR will be merged automatically after passing CI.

Apmats added a commit that referenced this pull request Apr 1, 2026
…#428) (#429)

Backports the following commits to 0.4:
- remove plexus-utils from production image due to CVE-2025-67030 (#428)

Co-authored-by: Apostolos Matsagkas <Apmats@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants