Skip to content
HighVulnerability

CVE-2022-29241: Jupyter Server token leak through REST API when root_dir includes home directory

Identifier
CVE-2022-29241
Published
Record updated
View JSON
Affected
  • jupyter-server >= 0, < 1.17.1, fixed in 1.17.1
  • jupyter-server = 2.0.0a0, fixed in 2.0.0a1
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.0%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2022-29241 affects Jupyter Server before version 1.17.1 when the server is started with a `root_dir` that contains the starting user's home directory. The REST API can be abused to leak the access token assigned at start time by guessing the PID of the Jupyter server. An attacker with an authenticated session, reached through cross-site scripting or a compromised browser, can use the leaked token to overwrite critical files such as .bashrc or .ssh/authorized_keys and potentially gain control of the system.

Mitigation

Fixed in 1.17.1