Read the docs

Unsafe deserialization in hankcs HanLP language model loading

Priority MEDIUM 57CWE-20Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
Low · Low · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502.

Summary

hankcs HanLP versions 2.1.0 through 2.1.6 are affected. Improper input validation in RNNLanguageModel.load_language_model lets the model_file argument cause deserialization of untrusted data (CWE-502). A remote attacker with low privileges can trigger it without user interaction. A public exploit has been disclosed.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

Description from the CNA

A vulnerability has been found in hankcs HanLP up to 2.1.6. The affected element is the function RNNLanguageModel.load_language_model of the file hanlp/layers/embeddings/contextual_string_embedding.py. Such manipulation of the argument model_file leads to deserialization. The attack may be performed from remote. The exploit has been disclosed to the public and may be used. Upgrading to version 2.1.7 is sufficient to fix this issue. The name of the patch is 6962907e37dfa467fa6dee164b5b1d0a904b24db. The affected component should be upgraded.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00431 29th 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
No
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. The fix is the patch 6962907.

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-133836
  2. 2026-11-21 Alias added: GHSA-c6gp-rcww-7pq6
  3. 2026-11-23 CISA SSVC decision points changed

References

  • TI-2026-96079 Path traversal in hankcs HanLP TAR archive extraction CVSS 4.0MEDIUM 6.9
  • TI-2026-76241 Deserialization flaw in hankcs HanLP word2vec vocab 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