CVE-2026-29514
Published: 04 May 2026
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…
more
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.
Security SummaryAI
CVE-2026-29514 is a remote code execution vulnerability in NetBox versions 4.3.5 through 4.5.4. The flaw exists in the RenderTemplateMixin.get_environment_params() method, which allows authenticated users with exporttemplate or configtemplate permissions to inject malicious Python callables into the environment_params field. This bypasses 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.
An attacker with the requisite permissions can exploit this vulnerability remotely over the network with low complexity and no user interaction. Successful exploitation grants arbitrary code execution as the NetBox service user, providing high confidentiality, integrity, and availability impact. The vulnerability carries a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) and is classified under CWE-183.
Advisories from VulnCheck and Chocapikk detail the issue, while the NetBox GitHub repository includes discussion in issue #22079 and a patch in pull request #22078, published on 2026-05-04.
Details
- CWE(s)