Path traversal in hankcs HanLP TAR archive extraction
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Versions 2.1.0 to 2.1.6 of hankcs HanLP are affected. The uncompress function in hanlp/utils/io_util.py does not keep extracted paths inside the target directory, which is a path traversal flaw (CWE-22). A remote attacker without privileges and without user interaction can trigger it. A public exploit has been published and may be used.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
A flaw has been found in hankcs HanLP up to 2.1.6. Impacted is the function uncompress of the file hanlp/utils/io_util.py of the component TAR Archive Extraction Handler. This manipulation causes path traversal. The attack is possible to be carried out remotely. The exploit has been published and may be used. Upgrading to version 2.1.7 is recommended to address this issue. Patch name: feb0f82d12762cf4e687b9926efd90c672857780. You should upgrade the affected component.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade hankcs HanLP to version 2.1.7, which contains the fix in patch feb0f82.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA HanLP (hankcs) Fixed in 2.1.7
Timeline
- 2026-11-20 Threatist record created from CVE-2026-133835
- 2026-11-21 Alias added: GHSA-pg82-9j2w-8982
- 2026-11-23 CISA SSVC decision points changed
- 2026-11-24 EPSS moved to the below the 50th percentile
References
More hankcs vulnerabilities
- TI-2026-76241 Deserialization flaw in hankcs HanLP word2vec vocab loading CVSS 4.0MEDIUM 5.3
- TI-2026-96080 Unsafe deserialization in hankcs HanLP language model loading CVSS 4.0MEDIUM 5.3
- TI-2026-76246 Deserialization flaw in hankcs HanLP hanlp.load allows remote attacks CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-133835 · CVE Program
- CVE-2026-133835 · NVD
- FIRST EPSS
- GHSA-pg82-9j2w-8982 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences