CVE-2026-133836 Details
Description
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.
A remote code execution vulnerability has been identified in hankcs HanLP versions through 2.1.6. The issue arises in the RNNLanguageModel.load_language_model function within the file hanlp/layers/embeddings/contextual_string_embedding.py. The vulnerability is caused by unsafe deserialization of model files using torch.load(), which executes arbitrary code. This flaw can be exploited by loading a maliciously crafted model file from an external source.
Users can upgrade to HanLP version 2.1.7, which addresses this vulnerability by modifying the RNNLanguageModel.load_language_model function to use torch.load() with the weights_only parameter set to True, preventing the execution of arbitrary code during deserialization.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/zewolkt3939/8f665b80c0878e5efde324c255d1abcd | [email protected] | BundleExploitRemedyTechnical Analysis |
| https://github.com/hankcs/HanLP/ | [email protected] | Vendor |
| https://github.com/hankcs/HanLP/commit/6962907e37dfa467fa6dee164b5b1d0a904b24db | [email protected] | Source CodeVendor |
| https://vuldb.com/cve/CVE-2026-133836 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/1051822 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/441459 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/441459/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| hankcs HanLP | 2.1.6 (semver) |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 20, 2026 | New CVE Received | [email protected] |
Volerion