CVE-2023-41937 SSRF vulnerability in Jenkins Bitbucket Push and Pull Request Plugin allows capturing credentials

High 7.5 Published Updated

Attackers can capture stored Bitbucket credentials by sending crafted webhook payloads to the Jenkins plugin, which connects to attacker-controlled URLs.

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

What is CVE-2023-41937?

CVE-2023-41937 is a high-severity server-side request forgery vulnerability in Jenkins Bitbucket Push and Pull Request Plugin, published on 6 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Jenkins Bitbucket Push and Pull Request Plugin 2.4.0 through 2.8.3 (both inclusive) trusts values provided in the webhook payload, including certain URLs, and uses configured Bitbucket credentials to connect to those URLs, allowing attackers to capture Bitbucket credentials stored in Jenkins by sending a crafted webhook payload.

Weakness: CWE-918

Which versions are affected by CVE-2023-41937?

2 open source packages ship an affected version, including io.jenkins.plugins:bitbucket-push-and-pull-request. It affects 1 product.

PackageAffectedFixed in
io.jenkins.plugins:bitbucket-push-and-pull-request MavenFrom 2.4.02.8.4
io.jenkins.plugins:bitbucket-push-and-pull-request MavenFrom 2.4.02.8.4

Products include Jenkins Bitbucket Push and Pull Request.

How do I fix CVE-2023-41937?

Upgrade io.jenkins.plugins:bitbucket-push-and-pull-request to 2.8.4 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2023-41937 being exploited?

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

Sources

Also known as GHSA-vrpg-c7c4-8mpx.

Is CVE-2023-41937 in your software?

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

Check your SBOMs for free