Home / nautobot / nautobot / CVE-2023-25657
CVE-2023-25657: is it exploited, and which versions of nautobot are affected and fixed?
CVE-2023-25657 is a code injection (remote code execution) vulnerability in nautobot. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: nautobot before 1.5.7 (GitHub advisory GHSA-8mfq-f5wj-vw5m). Fixed in 1.5.7 (GitHub advisory GHSA-8mfq-f5wj-vw5m). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:41 UTC.
What is CVE-2023-25657?
Remote code execution in Jinja2 template rendering in Nautobot
Nautobot is a Network Source of Truth and Network Automation Platform. All users of Nautobot versions earlier than 1.5.7 are impacted by a remote code execution vulnerability. Nautobot did not properly sandbox Jinja2 template rendering. In Nautobot 1.5.7 has enabled sandboxed environments for the Jinja2 template engine used internally for template rendering for the following objects: `extras.ComputedField`, `extras.CustomLink`, `extras.ExportTemplate`, `extras.Secret`, `extras.Webhook`. While no active exploits of this vulnerability are known this change has been made as a preventative measure to protect against any potential remote code execution attacks utilizing maliciously crafted template code. This change forces the Jinja2 template engine to use a `SandboxedEnvironment` on all new installations of Nautobot. This addresses any potential unsafe code execution everywhere the helper function `nautobot.utilities.utils.render_jinja2` is called. Additionally, the documentation that had previously suggesting the direct use of `jinja2.Template` has been revised to suggest `render_jinja2`. Users are advised to upgrade to Nautobot 1.5.7 or newer. 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. **Note:** *Nautobot specifies two template engines by default, the first being “django” for the Django built-in template engine, and the second being “jinja” for the Jinja2 template engine. This recommended setting will update the second item in the list of template engines, which is the Jinja2 engine.* For users that are unable to immediately update their configuration such as if a Nautobot service restart is too disruptive to operations, access to provide custom Jinja2 template values may be mitigated using permissions to restrict “change” (write) actions to the affected object types listed in the first section. **Note:** *This solution is intended to be stopgap until you can successfully update your `nautobot_config.py` or upgrade your Nautobot instance to apply the sandboxed environment enforcement.*
From the CVE record by GitHub_M, last updated March 10, 2025, 21:07 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| nautobot | nautobot | < 1.5.7 |
As the CVE record by GitHub_M states it, last updated March 10, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | nautobot | < 1.5.7 | 1.5.7 | GHSA-8mfq-f5wj-vw5m |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 25, 2024. Summary: Nautobot vulnerable to remote code execution via Jinja2 template rendering.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| networktocode | nautobot | before 1.5.7 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:41 UTC.
How severe is CVE-2023-25657?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-25657 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, March 10, 2025)
- EPSS
- 1.59% probability of exploitation activity in the next 30 days, percentile 76.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- https://github.com/nautobot/nautobot/security/advisories/GHSA-8mfq-f5wj-vw5m x_refsource_CONFIRM
- https://github.com/nautobot/nautobot/commit/d47f157e83b0c353bb2b697f911882c71cf90ca0 x_refsource_MISC
- https://jinja.palletsprojects.com/en/3.0.x/sandbox/#sandbox x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- February 9, 2023
- Published
- February 21, 2023, 20:51 UTC
- CVE record updated
- March 10, 2025, 21:07 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 05:41 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect nautobot?
- Sep 22, 2026CVE-2026-83805 nautobot: improper authorization
- Sep 22, 2026CVE-2026-83801 nautobot: cross-site scripting (XSS)
- May 28, 2026CVE-2026-44794 nautobot: missing authorization
- May 28, 2026CVE-2026-44796 nautobot: denial of service (uncontrolled resource consumption)
- May 28, 2026CVE-2026-44797 nautobot: server-side request forgery (SSRF)
- May 28, 2026CVE-2026-44798 nautobot: modification of Assumed-Immutable Data (MAID)
- Mar 31, 2026CVE-2026-34203 nautobot: weak password requirements
- Jun 10, 2025CVE-2025-49143 nautobot: information disclosure
Questions about CVE-2023-25657
Is CVE-2023-25657 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 1.59% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of nautobot are affected by CVE-2023-25657?
nautobot before 1.5.7, per the GitHub advisory GHSA-8mfq-f5wj-vw5m. The tables above give every range the sources list.
Which version fixes CVE-2023-25657?
1.5.7, per the GitHub advisory GHSA-8mfq-f5wj-vw5m. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-25657?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-25657?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.