Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOpen pull request as external contributor
-
DeliveryCommit crafted known-*.pickle + flip USE_LOCAL_KNOWN_SLUGS
-
Exploitpytest runs definitions_test.py in CI/maintainer host
-
Executionpickle.load triggers __reduce__ callable
-
PersistArbitrary code execution in runner
-
ImpactSteal 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
A vulnerability in Netbox v3.5.1 allows unauthenticated attackers to execute queries against the GraphQL database, grant
Remote code execution in NetBox 4.3.5-4.5.4 allows authenticated users with exporttemplate or configtemplate permissions
Credential exposure in NetBox through 4.7.0 allows any authenticated user with only view-level permissions to retrieve p
A cross-site scripting vulnerability in Netbox Community 4.1.7 (CVSS 7.1). Risk factors: public PoC available.
Netbox Community v4.1.7 and fixed in v.4.2.2 is vulnerable to Cross Site Scripting (XSS) via the RSS feed widget.
In Netbox Community 4.1.7, the login page is vulnerable to cross-site scripting (XSS), which allows a privileged, authen
In Netbox Community 4.1.7, once authenticated, Configuration History > Add`is vulnerable to cross-site scripting (XSS) d
A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi
A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi
A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi
A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi
A cross-site scripting (XSS) vulnerability in netbox v4.0.3 allows attackers to execute arbitrary web scripts or HTML vi
EUVD-2026-82413
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB