Skip to content

Fix possible fix(deps): 15 vulnerable dependencies in requirements.txt - #199

Open
begininvoke wants to merge 1 commit into
EvolvingLMMs-Lab:mainfrom
begininvoke:redgem/security-fix-26c2ea07
Open

Fix possible fix(deps): 15 vulnerable dependencies in requirements.txt#199
begininvoke wants to merge 1 commit into
EvolvingLMMs-Lab:mainfrom
begininvoke:redgem/security-fix-26c2ea07

Conversation

@begininvoke

Copy link
Copy Markdown

Small change to requirements.txt — a scan flagged the code below and it looked genuine. It is around line 11.

The NLTK downloader extracts ZIP archives using zipfile.extractall() without sanitising the archive entries. An attacker can supply a malicious ZIP that contains path‑traversal filenames (e.g., '../../evil.py') or executable Python modules. When NLTK extracts such a package, the malicious code is written to arbitrary locations and may be imported automatically, leading to remote code execution and full system compromise. This is a classic Zip Slip vulnerability and, given the downloader runs with the privileges of the consuming application, it is rated CRITICAL. The immediate mitigation is to upgrade NLTK to version 3.9.3, which includes a fix, and to modify the _unzip_iter implementation to validate each entry before extraction.

Updated vulnerable dependencies (nltk, protobuf, sentencepiece, hydra-core) to versions that fix the reported CVEs.

For reference: rule CVE-2025-14009. Rated critical.

Take or leave whichever parts are useful. If this is not the right approach, closing is fine.


Found with automated scanning (RedGem) and reviewed before opening. If it is not useful, closing it is completely fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant