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


Severity

0.0
high
0
10

    Threat Intelligence

    EPSS
    0.81% (82nd 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 ID SNYK-PYTHON-NAUTOBOT-3329406
  • published 22 Feb 2023
  • disclosed 22 Feb 2023
  • credit XiaoC of TT-Lab.

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
Expand this section

Snyk

7.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

9.8 critical