CVE-2026-54752
CriticalCVSS 9.6Summary
The NetBox Device Type Library contains a deserialization vulnerability in its test harness, which loads pull-request-controlled pickle files. An unauthenticated contributor can supply a crafted pickle file, leading to arbitrary code execution when pytest runs in GitHub Actions or in a maintainer's process.
Risk Assessment
Arbitrary code execution in the CI environment or on a maintainer's machine can lead to theft of secrets, code modification, and compromise of the entire repository and infrastructure.
Recommendation
Update the repository to commit 1c6f7e2b93589b965318c6e67ac3504831f0e71e or later and avoid deserializing untrusted pickle files in CI processes.
Other vulnerabilities in NetBox Device Type Library
See all- CVE-2026-54918Medium
NetBox Device Type Library in the affected repository revisions has NETBOX_DT_LIBRARY_URL in tests/test_configuration.py as a free-form tracked constant that an unauthenticated pull-request author can change before the validation test harness runs. During pytest collection, tests/definitions_test.py passes the value to Repo.clone_from and create_remote("upstream").fetch(), causing blind Git smart-HTTP requests to an attacker-selected host or loading attacker-controlled tests/known-*.json validation caches. The blind request cannot set arbitrary metadata-service headers or return response bodies, and this path does not execute remote Git hooks, but substituted known data can bypass slug, module, and rack uniqueness validation. This vulnerability is fixed in commit 8980c690097e92f5028c7e6df402b327d827ecd5.
- CVE-2026-54916High
NetBox Device Type Library, a collection of community-sourced device type definitions for import into NetBox, is vulnerable due to the absence of tests/init.py and the lack of --import-mode=importlib, causing pytest prepend import mode to place the tests directory at the front of sys.path during collection. An unauthenticated contributor can add a module such as tests/git.py that shadows GitPython or tests/conftest.py, leading to arbitrary code execution on the GitHub Actions runner.
Original NVD description (English source)
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.

