Skip to main content

NetBox Device Library CVE-2026-54752

| EUVDEUVD-2026-82413 CRITICAL
Deserialization of Untrusted Data (CWE-502)
2026-09-17 security-advisories@github.com
9.6
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open pull request as external contributor
  2. Delivery
    Commit crafted known-*.pickle + flip USE_LOCAL_KNOWN_SLUGS
  3. Exploit
    pytest runs definitions_test.py in CI/maintainer host
  4. Execution
    pickle.load triggers __reduce__ callable
  5. Persist
    Arbitrary code execution in runner
  6. Impact
    Steal CI tokens/secrets or pivot to maintainer host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the tests/known-modules.pickle or tests/known-racks.pickle cache files to be loaded via pickle.load, which the description states happens when USE_LOCAL_KNOWN_SLUGS is set in tests/test_configuration.py and definitions_test.py runs under pytest - the attacker supplies both the toggle change and the crafted pickle in a single pull request, so no separate misconfiguration is needed. The exploit fires only when the tests are actually executed: either automatically by the GitHub Actions validation workflow on the PR, or by a maintainer running pytest locally against the untrusted branch (this is the UI:R requirement). Limiting factors: it affects only the affected library version prior to fix commit 1c6f7e2b (which removed pickle entirely in favor of JSON); impact on GitHub Actions is constrained by the default pull_request trigger's read-only token and absence of secrets, so the highest-impact outcome depends on either a secret-exposing workflow configuration or a maintainer executing the tests on a privileged host.

Impact

This is a supply-chain / CI-poisoning vulnerability, not a flaw in deployed NetBox instances, and that distinction dominates the risk picture. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H, 9.6) is defensible on paper: anyone can open a pull request (PR:N), the exploit primitive (Python pickle __reduce__ arbitrary-code execution via pickle.load) is trivially reliable (AC:L), and compromising the test runner or a maintainer's host is a genuine scope change (S:C). However, the full C:H/I:H/A:H rating is realistically achieved on the maintainer-runs-tests-locally path; on GitHub Actions the default 'pull_request' trigger runs the workflow from the base branch with a read-only GITHUB_TOKEN and no repository secrets, which materially caps confidentiality/integrity impact on untrusted PR CI unless a pull_request_target or secret-bearing workflow is involved. No EPSS score, KEV listing, or packaged POC is present in the provided intelligence - so despite the near-maximal CVSS this is not confirmed exploited and there is no evidence of widespread scanning. The realistic priority is HIGH for the specific upstream project and its forks/maintainers, but this does not translate into fleet-wide risk for the broader NetBox userbase, because the vulnerable code is a test harness, not a runtime component. Note the description states 'unauthenticated contributor' while UI:R correctly reflects that a maintainer/CI must execute pytest - these are consistent, not conflicting.

Exploit ScenarioDerived

An attacker opens a pull request to the devicetype-library repository that both edits tests/test_configuration.py to set USE_LOCAL_KNOWN_SLUGS and commits a malicious tests/known-modules.pickle (or known-racks.pickle) whose serialized object defines a __reduce__ that runs attacker commands. When pytest executes tests/definitions_test.py - in the GitHub Actions runner or on a maintainer's machine reviewing the PR - pickle.load deserializes the file and the reduction callable executes arbitrary code in that process. No public exploit code is identified in the provided data, though pickle __reduce__ RCE is a standard, well-documented technique.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 17, 2026

Arbitrary code execution is possible inside the NetBox Device Type Library's pytest validation harness because the test suite deserializes pull-request-controlled pickle cache files via pickle.load. An unauthenticated contributor can flip USE_LOCAL_KNOWN_SLUGS in tests/test_configuration.py and commit a crafted tests/known-modules.pickle or tests/known-racks.pickle in the same pull request, so the payload fires whenever the tests are run: automatically by the GitHub Actions validation workflow on the PR, or by a maintainer executing pytest locally against the untrusted branch (the user-interaction requirement in the CVSS vector). Affected deployments are the repository's CI pipeline and any maintainer workstation running the suite, not NetBox servers that merely import the library's device definitions; no public exploit code has been identified at time of analysis, and GitHub Actions exposure is bounded by the read-only token granted to pull_request workflows, while a privileged local test run carries full confidentiality, integrity and availability impact.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply commit 1c6f7e2b93589b965318c6e67ac3504831f0e71e (or later) from pull request 4238, which removes pickle.deserialization from the validation harness, deletes tests/pickle_operations.py and the *.pickle cache files, and replaces them with tests/cache_operations.py reading JSON caches (tests/known-slugs.json, tests/known-modules.json, tests/known-racks.json); forks and downstream mirrors should rebase onto this commit and delete any lingering *.pickle artifacts from their working trees and CI caches. Because the fix is delivered as a commit rather than a tagged release, verify by grepping for pickle.load / pickle_operations.py in the checked-out tree instead of trusting a version string, and note that the older validation workflow's contributor-facing warning about modified pickle files is replaced by an equivalent warning on the new JSON caches. Until the commit is applied, the practical compensating control is procedural and narrow: do not run pytest locally against an untrusted pull-request branch, or run it only in a disposable container or VM with no mounted credentials, tokens or SSH keys, since a maintainer running the suite on a privileged host is the scenario that produces the full impact - the trade-off is slower review of contributor changes. In CI, keep the validation workflow on the pull_request trigger with the default read-only GITHUB_TOKEN and no secrets mounted, and explicitly set permissions: contents: read on the job so that a successful injection into the runner cannot escalate to repository writes; if a workflow must touch a write-scoped token or a secret, move that work to a separate job that never checks out or executes PR-controlled code. Finally, treat any pre-existing commit that modified tests/known-*.pickle as untrusted history and review it, because the malicious reduce stream can persist in the repository rather than only in a live PR.

Affected VersionsENISA

devicetype-library < 1c6f7e2b93589b965318c6e67ac3504831f0e71e

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-502, Deserialization of Untrusted Data. Python's pickle module does not merely decode data - its opcode stream can reference the __reduce__ protocol, so unpickling invokes attacker-selected callables and class constructors during load. In this repository the tracked cache files tests/known-slugs.pickle, tests/known-modules.pickle and tests/known-racks.pickle are artifacts of Python pickling that were also committed to git, and read_pickle_data() in tests/pickle_operations.py called pickle.load() on them directly. The attacker's two-part PR is what makes the path reachable: setting USE_LOCAL_KNOWN_SLUGS in tests/test_configuration.py forces definitions_test.py to read the repository-local cache instead of fetching authoritative data, and the accompanying pickle file supplies the malicious reduce stream. The fix commit 1c6f7e2b93589b965318c6e67ac3504831f0e71e deletes the pickle path entirely, adding tests/cache_operations.py with write_known_data()/read_known_data() built on json.dump/json.load and renaming the caches to known-slugs.json, known-modules.json and known-racks.json; the code comments explicitly cite CWE-502 as the reason. Because the NetBox Device Type Library only holds community-sourced YAML device type definitions that are imported into a NetBox instance, this is a build/test-pipeline issue for the repository itself rather than a remotely reachable defect in a running NetBox deployment; the exploitable surface is a GitHub Actions runner and any host where the test suite is executed.

Know when Netbox gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 9.6 CRITICAL
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
vuln.today AI 9.6 CRITICAL

Any user can open a PR (PR:N) with a reliable pickle payload (AC:L); a maintainer/CI must run pytest (UI:R); executing in the runner/host is a scope change (S:C) with full code-execution impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Sep 17, 2026 - 21:19 EUVD
CVE Published
Sep 17, 2026 - 20:16 cve.org
CRITICAL 9.6

DescriptionCVE.org

NetBox Device Type Library is a collection of community-sourced device type definitions for import into NetBox. The validation test harness can deserialize pull-request-controlled tracked pickle cache files through pickle.load in the read_pickle_data function in tests/pickle_operations.py. An unauthenticated contributor can change USE_LOCAL_KNOWN_SLUGS in tests/test_configuration.py and supply a crafted tests/known-modules.pickle or tests/known-racks.pickle file that tests/definitions_test.py loads when pytest runs. Deserialization invokes attacker-controlled object reduction behavior, allowing arbitrary code execution in the GitHub Actions runner or in a maintainer process that runs the tests, with the confidentiality, integrity, and availability of reachable resources at risk. This vulnerability is fixed with commit 1c6f7e2b93589b965318c6e67ac3504831f0e71e.

Technical POC Analysis

CWE-502: Deserialization of Untrusted Data.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

The NetBox Device Type Library's automated test pipeline and maintainer workstations are exposed to a critical remote code execution flaw (CVE-2026-54752, CVSS 9.6) that allows an outside contributor to execute arbitrary code on the project's CI runners and on developer machines whenever the pytest validation suite is run. Because the impacted assets are build infrastructure and engineering endpoints rather than production NetBox servers, the immediate risk is theft or manipulation of source code, pipeline credentials, and developer secrets, with downstream supply-chain exposure for every organization that consumes this widely used library. No public exploit has been identified and no vendor patch is available, so leadership should treat this as a development and release-chain integrity issue requiring immediate process controls.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: prevent untrusted pull requests from executing in privileged environments by requiring manual approval for fork workflows, disabling the automatic PR test trigger, or isolating it in a sandbox; never run pytest against unreviewed branches on a maintainer workstation - use disposable VMs or containers with no credentials, read-only tokens, and restricted egress; disable the USE_LOCAL_KNOWN_SLUGS code path and replace pickle deserialization with a safe serialization format; remove or block tests/known-modules.pickle and tests/known-racks.pickle in pull requests; and pin workflow actions to trusted versions.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
attack surface is one community repo's CI/test harness, not deployed NetBox
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +48
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Netbox

View all
CVE-2023-33796 CRITICAL POC
9.1 May 24

A vulnerability in Netbox v3.5.1 allows unauthenticated attackers to execute queries against the GraphQL database, grant

CVE-2026-29514 HIGH POC
8.7 May 04

Remote code execution in NetBox 4.3.5-4.5.4 allows authenticated users with exporttemplate or configtemplate permissions

CVE-2026-86175 HIGH POC
7.1 Sep 05

Credential exposure in NetBox through 4.7.0 allows any authenticated user with only view-level permissions to retrieve p

CVE-2024-56917 HIGH POC
7.1 Jun 24

A cross-site scripting vulnerability in Netbox Community 4.1.7 (CVSS 7.1). Risk factors: public PoC available.

CVE-2024-56915 MEDIUM POC
6.5 Jun 26

Netbox Community v4.1.7 and fixed in v.4.2.2 is vulnerable to Cross Site Scripting (XSS) via the RSS feed widget.

CVE-2024-56918 MEDIUM POC
6.1 Jun 24

In Netbox Community 4.1.7, the login page is vulnerable to cross-site scripting (XSS), which allows a privileged, authen

CVE-2024-56916 MEDIUM POC
6.1 Jun 24

In Netbox Community 4.1.7, once authenticated, Configuration History > Add`is vulnerable to cross-site scripting (XSS) d

CVE-2024-40742 MEDIUM POC
6.1 Jul 09

A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi

CVE-2024-40741 MEDIUM POC
6.1 Jul 09

A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi

CVE-2024-40740 MEDIUM POC
6.1 Jul 09

A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi

CVE-2024-40739 MEDIUM POC
6.1 Jul 09

A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi

CVE-2024-40738 MEDIUM POC
6.1 Jul 09

A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy