CVE-2023-28677 Jenkins Convert To Pipeline Plugin vulnerable to command injection

Critical 9.8 Published Updated

Attackers with Freestyle project configuration access can inject Pipeline script code via the Convert To Pipeline plugin, leading to arbitrary code execution.

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

What is CVE-2023-28677?

CVE-2023-28677 is a critical code injection vulnerability in Jenkins Convert To Pipeline Plugin, published on 23 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Jenkins Convert To Pipeline Plugin 1.0 and earlier uses basic string concatenation to convert Freestyle projects' Build Environment, Build Steps, and Post-build Actions to the equivalent Pipeline step invocations, allowing attackers able to configure Freestyle projects to prepare a crafted configuration that injects Pipeline script code into the (unsandboxed) Pipeline resulting from a convertion by Jenkins Convert To Pipeline Plugin.

Weakness: CWE-77

Which versions are affected by CVE-2023-28677?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:convert-to-pipeline. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:convert-to-pipeline MavenAll versions to 1.0None
org.jenkins-ci.plugins:convert-to-pipeline MavenAll versions to 1.0None

Products include Jenkins Convert to Pipeline.

How do I fix CVE-2023-28677?

No fix has been published for CVE-2023-28677 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-28677 being exploited?

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

Sources

Also known as GHSA-7c44-m589-36w7.

Is CVE-2023-28677 in your software?

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

Check your SBOMs for free