CVE-2024-22415: Unsecured endpoints in the jupyter-lsp server extension

Published Jan 18, 2024
·
Updated

Impact Installations of jupyter-lsp running in environments without configured file system access control (on the operating system level), and with jupyter-server instances exposed to non-trusted network are vulnerable to unauthorised access and modification of file system beyond the jupyter root directory.

Patches Version 2.2.2 has been patched.

Workarounds Users of jupyterlab who do not use jupyterlab-lsp can uninstall jupyter-lsp.

Credits We would like to credit Bary Levy, researcher of pillar.security research team, for the discovery and responsible disclosure of this vulnerability.

Edit: based on advice from pillar.security the Confidentiality/Integrity/Availability were increased to High to reflect potential for critical impact on publicly hosted jupyter-server instances lacking isolation of user privileges on operating system level (for best practices please consult https://jupyterhub.readthedocs.io/en/stable/explanation/websecurity.html#protect-users-from-each-other) and CWE-94 was added due to a potential vulnerability chaining in specific environments.

Other sources

jupyter-lsp is a coding assistance tool for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol. Installations of jupyter-lsp running in environments without configured file system access control (on the operating system level), and with jupyter-server instances exposed to non-trusted network are vulnerable to unauthorised access and modification of file system beyond the jupyter root directory. This issue has been patched in version 2.2.2 and all users are advised to upgrade. Users unable to upgrade should uninstall jupyter-lsp.

MITRE

Affected Software

2 affected componentsFixes available
jupyter Language Server Protocol Integration Jupyter<2.2.2
pip/jupyter-lsp<=2.2.1
2.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/jupyter-lsp to a version that resolves this vulnerability.

    Fixed in 2.2.2
  2. Upgrade

    Upgrade jupyter-lsp to a version that resolves this vulnerability.

    Fixed in 2.2.2Patch Version 2.2.2 has been patched.
  3. Remove

    Remove jupyter-lsp from your environment.

    If you do not use jupyterlab-lsp, uninstall jupyter-lsp.

  4. Remove

    Remove jupyter-lsp from your environment.

    If you are unable to upgrade, uninstall jupyter-lsp.

  5. Compensating control

    Ensure jupyter-server instances are not exposed to non-trusted networks and enforce operating system-level filesystem access control so users cannot access/modify files beyond the jupyter root directory.

Event History

Jan 18, 2024
Advisory Published
via GitHub·04:12 PM
CVE Published
via MITRE·08:27 PM
Data Sourced
via MITRE·08:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-22415?

CVE-2024-22415 has been classified as a high-severity vulnerability due to the potential for unauthorized access and modification of the file system.

2

How do I fix CVE-2024-22415?

To fix CVE-2024-22415, upgrade jupyter-lsp to version 2.2.2 or later, and ensure proper file system access control is configured.

3

What versions of jupyter-lsp are affected by CVE-2024-22415?

CVE-2024-22415 affects jupyter-lsp versions up to and including 2.2.1.

4

Can CVE-2024-22415 be exploited on all systems running jupyter-lsp?

CVE-2024-22415 can be exploited specifically on systems without configured file system access controls and with exposed jupyter-server instances.

5

Is there a workaround for CVE-2024-22415 if I can't upgrade jupyter-lsp?

A possible workaround for CVE-2024-22415 includes implementing strict file system access controls to limit unauthorized access while a full update is not feasible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203