Read the docs

Path traversal in hankcs HanLP TAR archive extraction

Priority HIGH 70CWE-22Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00621 44th percentileScored 2026-11-30
Public exploit Yes 1 exploit referenceTagged by the CNA
Fix Fixed HanLP (hankcs): 2.1.7

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

VendorProductAffected versionsFixed inStatusSource
hankcsHanLP2.1.0; 2.1.1; 2.1.2; 2.1.3; 2.1.4; 2.1.5; 2.1.62.1.7Patch availableCNA
  • HanLP Vendorhankcs Affected 2.1.0; 2.1.1; 2.1.2; 2.1.3; 2.1.4; 2.1.5; 2.1.6 Fixed in 2.1.7 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:hankcs:hanlp:*:*:*:*:*:*:*:*——hankcs
  • cpe:2.3:a:hankcs:hanlp:*:*:*:*:*:*:*:* Versions — — ·hankcs

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

  1. 2026-11-20 Threatist record created from CVE-2026-133835
  2. 2026-11-21 Alias added: GHSA-pg82-9j2w-8982
  3. 2026-11-23 CISA SSVC decision points changed
  4. 2026-11-24 EPSS moved to the below the 50th percentile

References

  • 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