Skip to main content

HanLP CVE-2026-133835

| EUVDEUVD-2026-131879 MEDIUM
Path Traversal (CWE-22)
2026-11-20 VulDB GHSA-pg82-9j2w-8982
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver malicious TAR/model archive to victim
  2. Delivery
    Application calls uncompress() extractall
  3. Exploit
    Member paths resolve outside dest
  4. Execution
    Arbitrary files written beyond target dir
  5. Impact
    Overwrite 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

HanLP 2.1.3
HanLP 2.1.4
HanLP 2.1.2
HanLP 2.1.1
HanLP 2.1.6
HanLP 2.1.0
HanLP 2.1.5

Affected Packages

euvd hanlp no fix

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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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
vuln.today AI 7.1 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Nov 20, 2026 - 22:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Nov 20, 2026 - 21:15 cve.org
MEDIUM 5.5

DescriptionCVE.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

EPSS Score
0.6%
Top 50% exploitable
Prevalence
Medium
popular NLP toolkit but domain-specific (Chinese NLP), not ubiquitous infrastructure
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy