CVE-2023-25765 Sandbox escape in Jenkins Email Extension Plugin

Critical 9.9 Published Updated

Attackers with folder template permissions can bypass sandbox restrictions to execute arbitrary code on the Jenkins controller.

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

What is CVE-2023-25765?

CVE-2023-25765 is a critical code injection vulnerability in Jenkins Email Extension Plugin, published on 15 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In Jenkins Email Extension Plugin 2.93 and earlier, templates defined inside a folder were not subject to Script Security protection, allowing attackers able to define email templates in folders to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.

Weakness: CWE-693

Which versions are affected by CVE-2023-25765?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:email-ext MavenAll versions2.94
org.jenkins-ci.plugins:email-ext MavenAll versions2.94

Products include Jenkins Email Extension.

How do I fix CVE-2023-25765?

Upgrade org.jenkins-ci.plugins:email-ext to 2.94 or later.

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

Is CVE-2023-25765 being exploited?

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

Sources

Also known as GHSA-c9c2-wcxh-3w5j.

Is CVE-2023-25765 in your software?

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

Check your SBOMs for free