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.
https://vuldb.com/vuln/441459/cti
https://vuldb.com/submit/1051822
https://vuldb.com/cve/CVE-2026-133836
https://github.com/hankcs/HanLP/commit/6962907e37dfa467fa6dee164b5b1d0a904b24db
https://github.com/hankcs/HanLP/
https://gist.github.com/zewolkt3939/8f665b80c0878e5efde324c255d1abcd
Published: 2026-11-20
Updated: 2026-11-20
Base Score: 6.5
Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P
Severity: Medium
Base Score: 6.3
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Severity: Medium
Base Score: 5.3
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Severity: Medium