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

    Threat Intelligence

    EPSS
    0.07% (33rd 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 ID SNYK-JAVA-ORGJENKINSCIMAIN-6191175
  • published 26 Jan 2024
  • disclosed 24 Jan 2024
  • credit Yaniv Nizry

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
Expand this section

Snyk

Recommended
8.8 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

8.8 high
Expand this section

Red Hat

8.8 high