CVE-2023-27898

Jenkins 2.270 through 2.393 (both inclusive), LTS 2.277.1 through 2.375.3 (both inclusive) does not escape the Jenkins version a plugin depends on when…

Critical · published March 8, 2023

CVSS v3.1
9.6
EPSS
2%
Percentile
78.8
In the wild
Unconfirmed
What it is

🔥 An error message can become a playground for attackers. Jenkins versions 2.270 to 2.393 (LTS 2.277.1 to 2.375.3) are vulnerable to a stored XSS that’s just waiting to be exploited! Think of it like a restaurant menu that lists items without checking if they contain allergens. If a chef serves up a dish with a hidden ingredient, it could cause chaos for anyone allergic. In this case, the error message serves up malicious content if an attacker slips in some tricky code through plugins. An attacker could inject malicious scripts into the Jenkins interface, leading to session hijacking, data theft, or even controlling the Jenkins instance itself. This could spell disaster for build pipelines and sensitive data, making it an absolutely devastating risk for any organization!

Put simply

Think of it like a restaurant menu that lists items without checking if they contain allergens. If a chef serves up a dish with a hidden ingredient, it could cause chaos for anyone allergic. In this case, the error message serves up malicious content if an attacker slips in some tricky code through plugins. The issue arises because Jenkins does not properly escape the version number of plugins when it shows error messages about incompatibility. An attacker providing plugins to the update sites can exploit this by including malicious scripts in the version information.

What to do

An attacker could inject malicious scripts into the Jenkins interface, leading to session hijacking, data theft, or even controlling the Jenkins instance itself. This could spell disaster for build pipelines and sensitive data, making it an absolutely devastating risk for any organization! To patch this vulnerability, upgrade Jenkins to versions 2.394 or LTS 2.376.3 immediately. Additionally, review plugin sources and limit plugin installation to trusted origins. Regularly audit your Jenkins update sites to ensure there are no unauthorized changes. You’ve got this! Secure your Jenkins instance and keep the build process smooth and safe! 🛡️

The record
Technical detail
CVSS v3.1
9.6 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01840 · 78.8th percentile
Published
2023-03-08T17:14Z
EPSS history
Timeline
  • 08 MAR 17:14Z
    Jenkins 2.270 through 2.393 (both inclusive), LTS 2.277.1 through 2.375.3 (both inclusive) does not escape the Jenkins version a plugin depends on when…
    cvelistv5