CVE-2021-43578 Agent-to-controller security bypass in Jenkins Squash TM Publisher (Squash4Jenkins) Plugin allows writing arbitrary files

High 8.1 Published Updated

Attackers controlling Jenkins agents can overwrite arbitrary files on the controller with malicious JSON due to missing input validation in the Squash TM Publisher plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-43578?

CVE-2021-43578 is a high-severity path traversal vulnerability in Jenkins Squash TM Publisher (Squash4Jenkins) Plugin, published on 12 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Jenkins Squash TM Publisher (Squash4Jenkins) Plugin 1.0.0 and earlier implements an agent-to-controller message that does not implement any validation of its input, allowing attackers able to control agent processes to replace arbitrary files on the Jenkins controller file system with an attacker-controlled JSON string.

Which versions are affected by CVE-2021-43578?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:squashtm-publisher-plugin. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:squashtm-publisher-plugin MavenAll versions to 1.0.0None
org.jenkins-ci.plugins:squashtm-publisher-plugin MavenAll versions to 1.0.0None

Products include Jenkins Squash Tm Publisher.

How do I fix CVE-2021-43578?

No fix has been published for CVE-2021-43578 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-2021-43578 being exploited?

There is no known exploitation of CVE-2021-43578 in the wild and no public exploit code.

Sources

Also known as GHSA-h648-gj34-5x4r.

Is CVE-2021-43578 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free