Bug 2466503 (CVE-2026-29514) - CVE-2026-29514 NetBox: NetBox: Remote code execution via malicious Python callables in templates
Summary: CVE-2026-29514 NetBox: NetBox: Remote code execution via malicious Python cal...
Keywords:
Status: NEW
Alias: CVE-2026-29514
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-04 19:02 UTC by OSIDB Bzimport
Modified: 2026-05-15 12:30 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-04 19:02:36 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.