Read the docs

Deserialization flaw in hankcs HanLP word2vec vocab loading

Priority MEDIUM 63CWE-20Published · Updated

Key facts

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

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

Summary

hankcs HanLP from 2.1.0-beta.0 up to and including 2.1.0-beta.64 is affected. The load_word2vec_as_vocab_tensor function in hanlp/utils/torch_util.py deserializes untrusted data passed in the vectors.vocab argument (CWE-502). A remote attacker without privileges can trigger it, with passive user interaction. A public exploit has been disclosed and may be used.

Written with Claude Haiku 5.5 from the sources below · 2026-10-28

Description from the CNA

A vulnerability has been found in hankcs HanLP up to 2.1.0-beta.64. The affected element is the function load_word2vec_as_vocab_tensor of the file hanlp/utils/torch_util.py. The manipulation of the argument vectors.vocab leads to deserialization. The attack is possible to be carried out remotely. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00261 17th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by the CNA
Fix No fix listed No fixed version in the sources yet

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-beta.0; 2.1.0-beta.1; 2.1.0-beta.2; 2.1.0-beta.3; 2.1.0-beta.4; 2.1.0-beta.5; 2.1.0-beta.6; 2.1.0-beta.7; 2.1.0-beta.8; 2.1.0-beta.9; 2.1.0-beta.10; 2.1.0-beta.11; 2.1.0-beta.12; 2.1.0-beta.13; 2.1.0-beta.14; 2.1.0-beta.15; 2.1.0-beta.16; 2.1.0-beta.17; 2.1.0-beta.18; 2.1.0-beta.19; 2.1.0-beta.20; 2.1.0-beta.21; 2.1.0-beta.22; 2.1.0-beta.23; 2.1.0-beta.24; 2.1.0-beta.25; 2.1.0-beta.26; 2.1.0-beta.27; 2.1.0-beta.28; 2.1.0-beta.29; 2.1.0-beta.30; 2.1.0-beta.31; 2.1.0-beta.32; 2.1.0-beta.33; 2.1.0-beta.34; 2.1.0-beta.35; 2.1.0-beta.36; 2.1.0-beta.37; 2.1.0-beta.38; 2.1.0-beta.39; 2.1.0-beta.40; 2.1.0-beta.41; 2.1.0-beta.42; 2.1.0-beta.43; 2.1.0-beta.44; 2.1.0-beta.45; 2.1.0-beta.46; 2.1.0-beta.47; 2.1.0-beta.48; 2.1.0-beta.49; 2.1.0-beta.50; 2.1.0-beta.51; 2.1.0-beta.52; 2.1.0-beta.53; 2.1.0-beta.54; 2.1.0-beta.55; 2.1.0-beta.56; 2.1.0-beta.57; 2.1.0-beta.58; 2.1.0-beta.59; 2.1.0-beta.60; 2.1.0-beta.61; 2.1.0-beta.62; 2.1.0-beta.63; 2.1.0-beta.64—No fix listedCNA
  • HanLP Vendorhankcs Affected 2.1.0-beta.0; 2.1.0-beta.1; 2.1.0-beta.2; 2.1.0-beta.3; 2.1.0-beta.4; 2.1.0-beta.5; 2.1.0-beta.6; 2.1.0-beta.7; 2.1.0-beta.8; 2.1.0-beta.9; 2.1.0-beta.10; 2.1.0-beta.11; 2.1.0-beta.12; 2.1.0-beta.13; 2.1.0-beta.14; 2.1.0-beta.15; 2.1.0-beta.16; 2.1.0-beta.17; 2.1.0-beta.18; 2.1.0-beta.19; 2.1.0-beta.20; 2.1.0-beta.21; 2.1.0-beta.22; 2.1.0-beta.23; 2.1.0-beta.24; 2.1.0-beta.25; 2.1.0-beta.26; 2.1.0-beta.27; 2.1.0-beta.28; 2.1.0-beta.29; 2.1.0-beta.30; 2.1.0-beta.31; 2.1.0-beta.32; 2.1.0-beta.33; 2.1.0-beta.34; 2.1.0-beta.35; 2.1.0-beta.36; 2.1.0-beta.37; 2.1.0-beta.38; 2.1.0-beta.39; 2.1.0-beta.40; 2.1.0-beta.41; 2.1.0-beta.42; 2.1.0-beta.43; 2.1.0-beta.44; 2.1.0-beta.45; 2.1.0-beta.46; 2.1.0-beta.47; 2.1.0-beta.48; 2.1.0-beta.49; 2.1.0-beta.50; 2.1.0-beta.51; 2.1.0-beta.52; 2.1.0-beta.53; 2.1.0-beta.54; 2.1.0-beta.55; 2.1.0-beta.56; 2.1.0-beta.57; 2.1.0-beta.58; 2.1.0-beta.59; 2.1.0-beta.60; 2.1.0-beta.61; 2.1.0-beta.62; 2.1.0-beta.63; 2.1.0-beta.64 Fixed in — No fix listed CNA

CPE names CNA · 1

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

Remediation

The sources list no fixed version for hankcs HanLP.

Written with Claude Haiku 5.5 from the sources below · 2026-10-28

Timeline

  1. 2026-10-19 Threatist record created from CVE-2026-112079
  2. 2026-10-19 Alias added: GHSA-q7j8-9vmr-j8qv
  3. 2026-10-19 CISA SSVC decision points changed
  4. 2026-10-19 Priority changed: LOW → MEDIUM

References

  • TI-2026-76246 Deserialization flaw in hankcs HanLP hanlp.load allows remote attacks CVSS 4.0MEDIUM 5.3

Sources