/

CVE-2026-124318

Severity:

HIGH RISK

(7.2)

Unsafe Deserialization (CWE-502) in Treeio News Feeds

CVE-2026-124318

Deferred

Vulnerability type

Category:

Unsafe Deserialization

CWE:

CWE-502

Impact:

Remote Code Execution

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Treeio through 2.0 insecurely deserializes pickle data stored in an update record's format strings. A staff user able to set that data through the Django admin may cause Python code to run as the web server when news feeds render.

Affected context

The issue occurs in Treeio's UpdateRecord.get_format_strings and ModuleSetting.loads handling of format-string data. Deployments may be at risk when staff can store attacker-controlled data in an UpdateRecord and feed rendering deserializes that data without verification.

Exploit preconditions

  • Attack surface: Django admin and news-feed rendering
  • Required access: Staff-level access that permits changing an UpdateRecord format_strings field, or equivalent ability to alter that data
  • Trigger point: Rendering a news feed that processes the affected record
  • Why exploitation is possible: The application deserializes unverified pickle data, which can cause code execution during processing

Why this happens

The application uses pickle deserialization on data that may be controlled by a staff user. Pickle can reconstruct Python objects and may invoke code as part of deserialization, so it is unsafe for untrusted or insufficiently trusted input. This is CWE-502: Deserialization of Untrusted Data.

Potential impact

  • Python code may execute with the web server process's permissions
  • Application data or secrets accessible to that process could be exposed or altered
  • The application may be disrupted or used as a foothold for further activity, depending on its privileges and environment

General mitigation guidance

Mitigation patterns include removing pickle from paths that process user-controlled or staff-editable data and choosing a data format that does not execute code during parsing. Treat administrative input as untrusted, validate it against a strict schema, and apply authorization checks to changes that affect feed rendering. Run the web server with least privilege and limit its access to secrets, files, and network resources.

How teams detect issues like this

Review code for pickle deserialization and trace whether the data can be influenced through administrative interfaces or other input paths. Use static analysis rules to flag pickle loading and code review checks to verify trust boundaries and authorization around stored feed data. Policy checks can disallow unsafe deserialization in application code and require schema validation for persisted input.

Sources

SourceLink
github.comgithub.com/treeio/treeio
github.comgithub.com/treeio/treeio/blob/bae3115f4015aad2cbc5ab45572232ceec990495/treeio/core/models.py#L1101-L1109
github.comgithub.com/treeio/treeio/blob/bae3115f4015aad2cbc5ab45572232ceec990495/treeio/core/models.py#L1265-L1273
github.comgithub.com/treeio/treeio/issues/165
vulncheck.comvulncheck.com/advisories/treeio-through-2.0-insecure-deserialization-rce-via-admin-editable-pickle-fields

Frequently asked

questions

Exploitation requires the ability to set the affected format-string data, which the description associates with staff access through the Django admin.

No. The described trigger is rendering a news feed that processes the affected record.

Avoid deserializing pickle data from editable or otherwise untrusted sources; use a non-executable data format with strict schema validation.

Treat stored administrative input as untrusted, limit who can modify data consumed by rendering paths, and apply least-privilege controls to the web server process.

Find out what's already
exploitable in your codebase.