GHSA-4qhp-652w-c22x

Suggest an improvement
Source
https://github.com/advisories/GHSA-4qhp-652w-c22x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-4qhp-652w-c22x/GHSA-4qhp-652w-c22x.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4qhp-652w-c22x
Aliases
Related
Published
2024-01-18T16:12:28Z
Modified
2024-02-16T08:22:17.780582Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
Unsecured endpoints in the jupyter-lsp server extension
Details

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.

Database specific
{
    "nvd_published_at": "2024-01-18T21:15:09Z",
    "cwe_ids": [
        "CWE-22",
        "CWE-23"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-01-18T16:12:28Z"
}
References

Affected packages

PyPI / jupyter-lsp

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.2

Affected versions

0.*

0.6.0b0
0.7.0b0
0.7.0
0.8.0
0.9.0
0.9.1
0.9.2
0.9.3

1.*

1.0.0rc0
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.2.0
1.3.0
1.4.0
1.4.1
1.5.0
1.5.1

2.*

2.0.0
2.0.1
2.1.0
2.2.0
2.2.1

Database specific

{
    "last_known_affected_version_range": "<= 2.2.1"
}