CVE-2026-29514
Deferred Deferred - Pending Action

Remote Code Execution in NetBox via Jinja2 Sandbox Bypass

Vulnerability report for CVE-2026-29514, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-05-04

Last updated on: 2026-05-21

Assigner: VulnCheck

Description

NetBox versions 4.3.5 through 4.5.4 contain a remote code execution vulnerability in the RenderTemplateMixin.get_environment_params() method that allows authenticated users with exporttemplate or configtemplate permissions to execute arbitrary code by specifying malicious Python callables in the environment_params field. Attackers can bypass Jinja2 SandboxedEnvironment protections by setting the finalize parameter to any importable Python callable such as subprocess.getoutput, which is invoked on every rendered expression outside the sandbox's call interception mechanism, achieving remote code execution as the NetBox service user.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-05-04
Last Modified
2026-05-21
Generated
2026-07-06
AI Q&A
2026-05-05
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
netbox netbox From 4.3.5 (inc) to 4.5.4 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-183 The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in NetBox versions 4.3.5 through 4.5.4 within the RenderTemplateMixin.get_environment_params() method. Authenticated users who have exporttemplate or configtemplate permissions can exploit this flaw by specifying malicious Python callables in the environment_params field. This allows them to bypass the Jinja2 SandboxedEnvironment protections by setting the finalize parameter to any importable Python callable, such as subprocess.getoutput. As a result, the attacker can execute arbitrary code remotely with the privileges of the NetBox service user.

Impact Analysis

The vulnerability can lead to remote code execution on the server running NetBox. An attacker with the required permissions can run arbitrary commands, potentially leading to unauthorized access, data theft, service disruption, or further compromise of the system and network.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-29514. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart