Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver malicious TAR/model archive to victim
-
DeliveryApplication calls uncompress() extractall
-
ExploitMember paths resolve outside dest
-
ExecutionArbitrary files written beyond target dir
-
ImpactOverwrite config/code for impact
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim application to call HanLP's uncompress() on an attacker-controlled TAR/TAR.GZ archive (the vulnerable path handles non-ZIP archives via tarfile; ZIP extraction uses a separate branch). The malicious archive must contain members with traversal sequences, absolute paths, or symlink/hardlink members escaping the destination. LIMITING FACTORS: this is a library-internal extraction routine, so exploitation depends on the surrounding application loading an untrusted or substituted model/archive rather than HanLP's normal trusted model downloads - reducing real-world reach despite the PR:N/UI:N labeling. Affected versions are HanLP up to and including 2.1.6; upgrading to 2.1.7 is the vendor-stated fix. |
| Impact | This is a moderate-severity path traversal (CWE-22) in HanLP's TAR extraction routine (uncompress in hanlp/utils/io_util.py), best characterized as a 'tar slip' where archive.extractall(dest) is called without validating member paths or links. The input CVSS is a 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scoring 5.5 with VC:L/VI:L/VA:L, and E:P (Proof-of-Concept exploit maturity). Key signals conflict in a way defenders should note: the vector asserts UI:N (no user interaction), but the mechanism inherently requires the victim application to open and extract an attacker-supplied TAR archive - in practice a user or workflow must load/download a malicious model package, which is a meaningful limiting factor the 'network, no-interaction' framing understates. There is no CISA KEV listing and no EPSS score supplied, so there is no evidence of active or widespread exploitation; the vuln.today Decision label is 'this_month' (a routine-priority, not act_now/emergency). A PoC reference exists but is not verified as working exploit code. Net assessment: a real but non-urgent issue - patch on a normal maintenance cadence (this month) rather than as an emergency; the 'remote/unauthenticated' labeling overstates real-world reachability because exploitation depends on the application being fed a hostile archive. |
| Exploit ScenarioDerived | An attacker crafts a malicious .tar/.tar.gz archive whose member names contain path-traversal sequences (../) or absolute paths, or that includes symlink/hardlink members pointing outside the target directory. When a HanLP-based application extracts this archive via uncompress() - for example while loading an attacker-supplied or substituted model package - files are written outside the intended destination, enabling overwrite of sensitive files and potentially code execution via dropped files. A public PoC reference exists; it is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Path traversal in HanLP through 2.1.6 allows a crafted TAR/TAR.GZ archive to write files outside the intended extraction directory when an application calls HanLP's uncompress() routine. The flaw is in hanlp/utils/io_util.py, where non-ZIP archives are extracted via tarfile without validating member paths or links; the vendor fixed it in 2.1.7 with commit feb0f82. A public PoC reference exists but is not verified as working exploit code, and exploitation depends on the surrounding application extracting an attacker-controlled or substituted archive rather than HanLP's normal trusted model downloads.
RemediationAI
Upgrade HanLP to version 2.1.7 or later, which includes commit feb0f82d12762cf4e687b9926efd90c672857780; vendor references are https://vuldb.com/vuln/441458 and https://github.com/hankcs/HanLP/commit/feb0f82d12762cf4e687b9926efd90c672857780. If upgrading is not immediately possible, do not pass untrusted or attacker-substitutable TAR/TAR.GZ archives to uncompress(); restrict model and archive loading to trusted sources and, where feasible, pre-validate archive members for absolute paths, '..' traversal, and symlink or hardlink targets before extraction, accepting that strict validation may reject legitimate archives containing internal links.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
HanLP is a Python natural-language-processing library. Its uncompress() helper in hanlp/utils/io_util.py handles model archives; for non-ZIP files it used tarfile.extractall(dest) without checking member names, absolute paths, or symlink and hardlink targets, the classic 'tar slip' pattern (CWE-22). The ZIP extraction path is separate. The supplied CVSS 4.0 vector has PR:N and UI:N, but the independent assessment assigns UI:R because a victim application must call uncompress() on an attacker-controlled archive; exploitation is conditional on the integration loading untrusted or substituted model archives. The CPE cpe:2.3:a:hankcs:hanlp:*:*:*:*:*:*:*:* covers the product, and the evidence identifies versions up to and including 2.1.6 as affected. The fix adds _safe_tar_members(), validates names and links before writing and again before each member extraction, rejects absolute or escaping paths and unsafe special files, and uses tarfile's data filter where available.
Know when Hanlp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Traversal grants arbitrary file write outside the target (I:H, possible A:L), but requires the victim to extract an attacker-supplied archive, so UI:R; no read primitive confirmed, so C:N.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Deserialization of untrusted model checkpoints in HanLP through 2.1.6 allows code execution in the process that loads th
Unsafe deserialization in hankcs HanLP through 2.1.0-beta.64 allows unauthenticated remote attackers to achieve code exe
Deserialization of untrusted data in HanLP through 2.1.0-beta.64 allows an attacker who supplies a crafted vectors.vocab
EUVD-2026-131879
GHSA-pg82-9j2w-8982
NVD
CVE.org
EPSS
VulDB
Exploit-DB