CVE-2026-3071 Deserialization in Flair

High 8.4 Published Updated

Attackers can execute arbitrary code by loading a malicious model in the Flair NLP library due to unsafe deserialization.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-3071?

CVE-2026-3071 is a high-severity unsafe deserialization vulnerability in Flair, published on 26 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Deserialization of untrusted data in the LanguageModel class of Flair from versions 0.4.1 to latest are vulnerable to arbitrary code execution when loading a malicious model.

Weakness: CWE-502

Which versions are affected by CVE-2026-3071?

How do I fix CVE-2026-3071?

No fix has been published for CVE-2026-3071 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-3071 being exploited?

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

Sources

Also known as GHSA-6v6h-v95w-6g6x.

Is CVE-2026-3071 in your software?

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

Check your SBOMs for free