SB20230221101 - Code Injection in Nautobot



SB20230221101 - Code Injection in Nautobot

Published: February 21, 2023 Updated: May 11, 2026

Security Bulletin ID SB20230221101
CSH Severity
Low
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Low 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) Code Injection (CVE-ID: CVE-2023-25657)

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear


The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to improper sandboxing in the Jinja2 template rendering engine when rendering user-supplied template code. A remote user can provide a maliciously crafted template to execute arbitrary code.

The issue affects template rendering for extras.ComputedField, extras.CustomLink, extras.ExportTemplate, extras.Secret, and extras.Webhook, and also impacts other uses of nautobot.utilities.utils.render_jinja2.


Remediation

Install update from vendor's website.