3.5low
Nautobot missing object-level permissions enforcement when running Job Buttons
- Severity
- 3.5low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.63% (higher than 45% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vf5m-xrhm-v999PYSEC-2023-287
Description
Nautobot is a Network Source of Truth and Network Automation Platform built as a web application atop the Django Python framework with a PostgreSQL or MySQL database. When submitting a Job to run via a Job Button, only the model-level `extras.run_job` permission is checked (i.e., does the user have permission to run Jobs in general). Object-level permissions (i.e., does the user have permission to run this specific Job?) are not enforced by the URL/view used in this case. A user with permissions to run even a single Job can actually run all configured JobButton Jobs. Fix will be available in Nautobot 1.6.8 and 2.1.0
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nautobot nautobot | >= 1.5.14, < 1.6.8, >= 2.0.0, < 2.1.0 | CVE List |
| nautobot (PyPI) | from 1.5.14 before 1.6.8, from 2.0.0 before 2.1.0 | GitHub Advisory Database, PyPA Advisory Database |
| networktocode nautobot | from 1.5.14 before 1.6.8, from 2.0.0 before 2.1.0 | NVD |
All scores
| GitHub_M | 3.5low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L |
| GitHub | 3.5low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| PyPA Advisory Database | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Classification
What each source says
CVE List
Nautobot is a Network Source of Truth and Network Automation Platform built as a web application atop the Django Python framework with a PostgreSQL or MySQL database. When submitting a Job to run via a Job Button, only the model-level `extras.run_job` permission is checked (i.e., does the user have permission to run Jobs in general). Object-level permissions (i.e., does the user have permission to run this specific Job?) are not enforced by the URL/view used in this case. A user with permissions to run even a single Job can actually run all configured JobButton Jobs. Fix will be available in Nautobot 1.6.8 and 2.1.0
GitHub Advisory Database
Impact
When submitting a Job to run via a Job Button, only the model-level extras.run_job permission is checked (i.e., does the user have permission to run Jobs in general?). Object-level permissions (i.e., does the user have permission to run this specific Job?) are not enforced by the URL/view used in this case (/extras/job-button/<uuid>/run/) The effect is that a user with permissions to run even a single Job can actually run all configured JobButton Jobs.
Not all Jobs can be configured as JobButtons; only those implemented as subclasses of
JobButtonReceivercan be used in this way, so this vulnerability only applies specifically toJobButtonReceiversubclasses.
Additionally, although the documentation states that both extras.run_job permission and extras.run_jobbutton permission must be granted to a user in order to run Jobs via JobButton, the extras.run_jobbutton permission is not actually enforced by the view code, only by the UI by disabling the button from being clicked normally. Furthermore, the extras.run_jobbutton permission never prevented invoking Jobs (including JobButtonReceiver subclasses) via the normal "Job Run" UI, so after some discussion, we've decided that the extras.run_jobbutton permission is redundant, and as it never achieved its stated/documented purpose, the fixes below will remove the UI check for extras.run_jobbutton and all other references to the extras.run_jobbutton permission, rather than adding enforcement of this previously unenforced permission.
Patches
Has the problem been patched? What versions should users upgrade to?
Fix will be available in Nautobot 1.6.8 (https://github.com/nautobot/nautobot/pull/4995) and 2.1.0 (https://github.com/nautobot/nautobot/pull/4993)
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
Partial mitigation can be achieved by auditing JobButtonReceiver subclasses defined in the system and restricting which users are permitted to create or edit JobButton records.
References
NVD (es)
Nautobot es una Network Automation Platform y Network Source of Truth creada como una aplicación web sobre el framework Django Python con una base de datos PostgreSQL o MySQL. Al enviar un Job para ejecutar a través de un botón de Job, solo se verifica el permiso `extras.run_job` a nivel de modelo (es decir, si el usuario tiene permiso para ejecutar Jobs en general). Los permisos a nivel de objeto (es decir, ¿tiene el usuario permiso para ejecutar este trabajo específico?) no se aplican mediante la URL/vista utilizada en este caso. Un usuario con permisos para ejecutar incluso un solo Job puede ejecutar todos los Jobs de JobButton configurados. La solución estará disponible en Nautobot 1.6.8 y 2.1.0
References
| https://github.com/nautobot/nautobot/security/advisories/GHSA-vf5m-xrhm-v999 | advisory, fix, patch, vendor-advisory, web | |
| https://github.com/nautobot/nautobot/issues/4988 | issue-tracking, report, web | |
| https://github.com/nautobot/nautobot/pull/4993 | fix, issue-tracking, patch, report, web | |
| https://github.com/nautobot/nautobot/pull/4995 | fix, issue-tracking, patch, report, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-51649 | advisory | |
| https://github.com/nautobot/nautobot/commit/3d964f996f4926126c1d7853ca87b2ff475997a2 | web | |
| https://github.com/nautobot/nautobot/commit/d33d0c15a36948c45244e5b5e10bc79b8e62de7f | web | |
| https://github.com/nautobot/nautobot | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/nautobot/PYSEC-2023-287.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-51649 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vf5m-xrhm-v999 changed 2026-06-09 | CC-BY-4.0 |
| NVD | CVE-2023-51649 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-287 changed 2026-06-08 | CC-BY-4.0 |