Authenticated RCE in NetBox RenderTemplateMixin via Jinja2 finalize import
CVE-2026-29514 is a remote code execution vulnerability in NetBox affecting versions 4.3.5 through 4.5.4. The flaw is in RenderTemplateMixin.get_environment_params(), which resolves user-controlled dotted-path values from the environment_params field using Django's import_string() for Jinja2 environment keys including finalize and undefined, without an allowlist. An authenticated user with template-related permissions can supply a malicious importable callable such as subprocess.getoutput in environment_params.finalize. NetBox then passes the resolved callable into Jinja2's SandboxedEnvironment as the finalize callback. Because finalize is invoked on every rendered expression outside the sandbox's call interception path, an attacker can bypass the intended Jinja2 sandbox restrictions and execute arbitrary shell commands during template rendering. The issue affects both ExportTemplate and ConfigTemplate rendering paths and results in code execution as the NetBox service user.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A remote code execution vulnerability in NetBox RenderTemplateMixin.get_environment_params() affecting versions 4.3.5 through 4.5.4. Authenticated users with exporttemplate or configtemplate permissions can execute arbitrary code by abusing environment_params to invoke malicious Python callables and bypass Jinja2 sandbox protections.
An authenticated remote code execution vulnerability in NetBox caused by unsafe user-controlled configuration of Jinja2 SandboxedEnvironment parameters via RenderTemplateMixin, allowing sandbox bypass through the finalize callable.
A remote code execution vulnerability in NetBox caused by unsafe import_string() resolution of Jinja2 environment parameters, especially finalize, allowing low-privilege users to execute shell commands via ExportTemplate or ConfigTemplate rendering.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.