CVE-2026-112079 hankcs HanLP torch_util.py load_word2vec_as_vocab_tensor deserialization

Medium 5.3 Published Updated

Remote attackers can execute arbitrary code via unsafe deserialization in HanLP's word2vec loading function, requiring immediate attention from users of this NLP library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-112079?

CVE-2026-112079 is a medium-severity unsafe deserialization vulnerability in hankcs HanLP, published on 19 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-502, CWE-20

Which versions are affected by CVE-2026-112079?

How do I fix CVE-2026-112079?

No fix has been published for CVE-2026-112079 yet. Limit exposure of the affected software until one is available.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2026-112079 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-112079 exists.

Sources

Also known as GHSA-q7j8-9vmr-j8qv.

Is CVE-2026-112079 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free