Origin Validation Error Affecting org.jenkins-ci.main:jenkins-core package, versions [,2.426.3)[2.427,2.440.1)[2.441,2.442)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGJENKINSCIMAIN-6191175
  • published26 Jan 2024
  • disclosed24 Jan 2024
  • creditYaniv Nizry

Introduced: 24 Jan 2024

CVE-2024-23898  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade org.jenkins-ci.main:jenkins-core to version 2.426.3, 2.440.1, 2.442 or higher.

Overview

org.jenkins-ci.main:jenkins-core is an open source automation server.

Affected versions of this package are vulnerable to Origin Validation Error due to a lack of origin validation on the CLI WebSocket endpoint. An attacker can execute arbitrary CLI commands on the Jenkins controller by exploiting the cross-site WebSocket hijacking vulnerability.

Note:

Jenkins does not set an explicit SameSite attribute for session cookies. This can allow cross-site requests to make use of the session cookie, i.e., those requests are sent with the logged-in user’s authentication.

Workaround

  1. Prevent WebSocket access using a reverse proxy

  2. Disable CLI access

CVSS Scores

version 3.1