CVE-2026-112079 Details
Description
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.
A vulnerability allowing arbitrary code execution through insecure deserialization has been identified in hankcs HanLP versions prior to 2.1.0-beta.64. The issue arises in the 'load_word2vec_as_vocab_tensor' function within 'hanlp/utils/torch_util.py'. When the 'cache' parameter is set to true, the function deserializes a Word2Vec-style vocabulary cache file using 'pickle' without any restrictions. This flaw can be exploited remotely by crafting a malicious vocabulary file that executes arbitrary commands during the deserialization process, potentially leading to unauthorized actions being performed with the victim's privileges.
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 Oct 19, 2026CISA-ADP
Assessed Oct 19, 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://github.com/hankcs/HanLP/ | [email protected] | ProductSource CodeVendor |
| https://github.com/hankcs/HanLP/issues/1968 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/user-attachments/files/32910161/hanlp-ddb1299-vocab-pickle-poc.zip | [email protected] | Broken LinkExploit |
| https://vuldb.com/cve/CVE-2026-112079 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/1009644 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/421758 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/421758/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.0-beta.64 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Modified | CISA-ADP |
| Oct 19, 2026 | New CVE Received | [email protected] |
Volerion