CVE-2026-5659 pytries datrie trie File datrie.pyx Trie.__setstate__ deserialization

Medium 5.3 Published Updated

Remote attackers can execute arbitrary code via unsafe deserialization in the pytries datrie library's Trie loading functions.

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-5659?

CVE-2026-5659 is a medium-severity unsafe deserialization vulnerability in pytries datrie, published on 6 Apr 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 was found in pytries datrie up to 0.8.3. The affected element is the function Trie.load/Trie.read/Trie.__setstate__ of the file src/datrie.pyx of the component trie File Handler. The manipulation results in deserialization. The attack can be launched remotely. The exploit has been made public and could 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-5659?

How do I fix CVE-2026-5659?

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

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

Sources

Also known as GHSA-wc65-8wqw-hgc9.

Is CVE-2026-5659 in your software?

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

Check your SBOMs for free