CVE-2023-25765 Sandbox escape in Jenkins Email Extension Plugin
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.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:email-ext Maven | All versions | 2.94 |
org.jenkins-ci.plugins:email-ext Maven | All versions | 2.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.
Other vulnerabilities in Jenkins Email Extension Plugin
- CVE-2019-1003032 Script security sandbox bypass in Jenkins Email Extension Plugin
- CVE-2026-48920 Jenkins Email Extension Plugin: Attackers able to control email content may specify `file:` URLs for images to read arbitrary files from Jenkins controller filesystem
- CVE-2020-2232 Jenkins Email Extension Plugin SMTP password transmitted and displayed in plain text
- CVE-2018-1000176 Jenkins Email Extension Plugin showed plain text SMTP password in configuration form field
- CVE-2023-25763 Cross-site Scripting in Jenkins Email Extension Plugin
Sources
Also known as GHSA-c9c2-wcxh-3w5j.