CVE-2026-5659 Details
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.
A critical vulnerability allowing arbitrary code execution has been identified in the pytries datrie library, specifically in versions through 0.8.3. The issue arises from the datrie.Trie class's use of pickle for deserialization in the Trie.load(), Trie.read(), and Trie.__setstate__() methods. This creates a deserialization vulnerability, as a crafted .trie file can embed a malicious pickle payload that executes arbitrary Python code when the file is loaded. The vulnerability is not present in the datrie.BaseTrie class, which does not utilize pickle. The exploitation can be performed remotely, without authentication, but requires user interaction.
Users are advised to update to a version of the pytries datrie library that has addressed this vulnerability. If no such version is available, consider replacing the library with an alternative that does not have this deserialization issue.
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 Apr 6, 2026CISA-ADP
Assessed Apr 6, 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/dhabaleshwar/Open-Source-Vulnerabilities/blob/main/dartie_code_exec.md | [email protected] | ExploitTechnical Analysis |
| https://github.com/pytries/datrie/ | [email protected] | ProductSource CodeVendor |
| https://github.com/pytries/datrie/issues/109 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/submit/785228 | [email protected] | Technical Description |
| https://vuldb.com/vuln/355483 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/355483/cti | [email protected] |
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 |
|---|---|
| pytries datrie | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 6, 2026 | New CVE Received | [email protected] |
Volerion