CVE-2026-39377
MEDIUM6.5EPSS 0.05%nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames
描述
# Arbitrary File Write via Path Traversal in Cell Attachment Filenames ## Summary nbconvert allows arbitrary file writes to locations outside the intended output directory when processing notebooks containing crafted cell attachment filenames. The `ExtractAttachmentsPreprocessor` passes attachment filenames directly to the filesystem without sanitization, enabling path traversal attacks. This vulnerability provides complete control over both the destination path and file extension. ## Impact This vulnerability allows writing files with arbitrary content to arbitrary filesystem locations, limited only by the permissions of the process running nbconvert. The attacker controls: - Full destination path (via `../` traversal) - Filename - File extension - File content ## Patches - upgrade to nbconvert v7.17.1 ## Workarounds disable ExtractAttachmentsPreprocessor by setting: ```python c. ExtractAttachmentsPreprocessor.enabled = False ```
受影響套件(2)
- Debian/nbconvertfrom 0
- PyPI/nbconvert>= 6.5.0, < 7.17.1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
參考連結(5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-39377
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-39377
- PATCHhttps://github.com/jupyter/nbconvert
- WEBhttps://github.com/jupyter/nbconvert/releases/tag/v7.17.1
- WEBhttps://github.com/jupyter/nbconvert/security/advisories/GHSA-4c99-qj7h-p3vg