Unsafe deserialization in hankcs HanLP language model loading
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
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
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
- 2026-11-20 Threatist record created from CVE-2026-133836
- 2026-11-21 Alias added: GHSA-c6gp-rcww-7pq6
- 2026-11-23 CISA SSVC decision points changed
References
More hankcs vulnerabilities
- 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
- CVE-2026-133836 · CVE Program
- CVE-2026-133836 · NVD
- FIRST EPSS
- GHSA-c6gp-rcww-7pq6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences