Arbitrary Code Execution Affecting nautobot package, versions [,1.5.7)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.02% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-NAUTOBOT-3329406
  • published22 Feb 2023
  • disclosed22 Feb 2023
  • creditXiaoC of TT-Lab.

Introduced: 22 Feb 2023

CVE-2023-25657  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade nautobot to version 1.5.7 or higher.

Overview

nautobot is a Source of truth and network automation platform.

Affected versions of this package are vulnerable to Arbitrary Code Execution via the nautobot.utilities.utils.render_jinja2 helper function, due to a sandbox escape during Jinja2 template rendering.

Workaround

For users that are unable to upgrade to the latest release of Nautobot, you may add the following setting to your nautobot_config.py to apply the sandbox environment enforcement: TEMPLATES[1]["OPTIONS"]["environment"] = "jinja2.sandbox.SandboxedEnvironment". After applying this change, you must restart all Nautobot services, including any Celery worker processes.

References

CVSS Scores

version 3.1