CVE-2022-41231 Path traversal in Jenkins build-publisher Plugin
Attackers with configure permissions can overwrite arbitrary configuration files on the Jenkins controller via path traversal, potentially escalating privileges.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-41231?
CVE-2022-41231 is a medium-severity path traversal vulnerability in Jenkins Build-Publisher Plugin, published on 21 Sep 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Jenkins Build-Publisher Plugin 1.22 and earlier allows attackers with Item/Configure permission to create or replace any config.xml file on the Jenkins controller file system by providing a crafted file name to an API endpoint.
Weakness: CWE-22
Which versions are affected by CVE-2022-41231?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:build-publisher. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:build-publisher Maven | All versions to 1.22 | None |
org.jenkins-ci.plugins:build-publisher Maven | All versions to 1.22 | None |
Products include Jenkins Build-Publisher.
How do I fix CVE-2022-41231?
No fix has been published for CVE-2022-41231 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-41231 being exploited?
There is no known exploitation of CVE-2022-41231 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Build-Publisher Plugin
Sources
Also known as GHSA-jrqh-c9v8-ccx9.