Home

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.

PUBLISHED Reserved 2026-03-04 | Published 2026-05-04 | Updated 2026-05-04 | Assigner VulnCheck




HIGH: 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

HIGH: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem types

CWE-183: Permissive List of Allowed Inputs

Product status

Default status
affected

4.3.5 (semver)
affected

Credits

Valentin Lobstein (Chocapikk) finder

References

chocapikk.com/posts/2026/netbox-export-template-rce/ technical-description exploit

github.com/netbox-community/netbox/issues/22079 issue-tracking

github.com/netbox-community/netbox/pull/22078 issue-tracking

www.vulncheck.com/...ries/netbox-rce-via-rendertemplatemixin third-party-advisory

cve.org (CVE-2026-29514)

nvd.nist.gov (CVE-2026-29514)

Download JSON