Arbitrary Code Execution Affecting nautobot package, versions [,1.5.7)
Threat Intelligence
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 ID SNYK-PYTHON-NAUTOBOT-3329406
- published 22 Feb 2023
- disclosed 22 Feb 2023
- credit XiaoC of TT-Lab.
Introduced: 22 Feb 2023
CVE-2023-25657 Open this link in a new tabHow 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.