/

CVE-2026-120833

Severity:

HIGH RISK

(7.8)

Unsafe Deserialization (CWE-502) in labbench Data Loading

CVE-2026-120833

Deferred

Vulnerability type

Category:

Unsafe Deserialization

CWE:

CWE-502

Impact:

Arbitrary Code Execution

Severity:

HIGH RISK

(7.8)

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

labbench's read() and read_relational() functions may pass files with .p or .pickle extensions to pandas.read_pickle(), which can execute code while loading crafted data. The risk arises when an attacker can supply a file or relational data archive that a user then loads with either function.

Affected context

The vulnerability affects labbench data-loading paths that select the pickle parser based on a file extension alone. It becomes risky when an untrusted or attacker-supplied .p or .pickle file, including a relational data archive, is loaded through read() or read_relational().

Exploit preconditions

  • Attack surface: File or relational archive loading through labbench.
  • Required access: The attacker must be able to supply or influence a file that a user or process can access.
  • Trigger point: A user or process loads the crafted file using read() or read_relational().
  • Why exploitation is possible: The extension alone can route the file to pandas.read_pickle(), which can execute code during deserialization.

Why this happens

The code selects a deserialization mechanism based on a filename extension without establishing that the file is trusted. Pickle deserialization can invoke executable behavior during object reconstruction, so processing attacker-controlled data this way maps to CWE-502: Deserialization of Untrusted Data.

Potential impact

  • Arbitrary code may execute in the process loading the file.
  • An attacker could gain access to data or resources available to that process.
  • The integrity of the host application or its outputs could be compromised.

General mitigation guidance

Defensive approaches focus on avoiding executable serialization formats at trust boundaries.

  • Prefer non-executable data formats with explicit schemas for untrusted inputs.
  • Do not treat a filename extension as evidence that a file is safe to deserialize.
  • Restrict pickle-based loading to data from verified, trusted sources.
  • Apply strict input validation and limit the permissions and resources available to data-loading processes.

How teams detect issues like this

  • Use static analysis to identify calls to pandas.read_pickle() and other pickle deserialization APIs, especially when reached through extension-based dispatch.
  • Review data-loading code for assumptions that file extensions establish content safety or trust.
  • Enforce policies that prohibit pickle parsing for untrusted inputs and require approved formats at ingestion boundaries.
  • Automated code review tools can help flag deserialization paths for further assessment.

Sources

SourceLink
github.comgithub.com/usnistgov/labbench
github.comgithub.com/usnistgov/labbench/blob/0.46.0/src/labbench/_data.py#L1664-L1666
github.comgithub.com/usnistgov/labbench/blob/0.46.1/ChangeLog.md
github.comgithub.com/usnistgov/labbench/commit/ac9b9b18cba67cb8e85eb563b6bb7dc1092b4c54
github.comgithub.com/usnistgov/labbench/pull/32
pypi.orgpypi.org/project/labbench/0.46.1/
vulncheck.comvulncheck.com/advisories/labbench-before-0.46.1-deserialization-of-untrusted-data-via-read-pickle-auto-dispatch

Frequently asked

questions

It may be exploitable when an attacker can supply a crafted file or archive that a user or process subsequently loads; the description does not establish direct remote access.

The attacker needs a way to influence or provide data that reaches read() or read_relational(). The specific access required depends on how files are accepted and stored in a deployment.

Use non-executable, schema-validated formats for untrusted data, and reserve pickle deserialization for verified trusted sources.

Treat file contents as untrusted regardless of extension, review parser selection at ingestion boundaries, and enforce policies that restrict executable deserialization.

Find out what's already
exploitable in your codebase.