Vulnerability · Published May 28, 2024 · Assigned by GitHub_M
CVE-2024-36112Nautobot dynamic-group-members doesn't enforce permission restrictions on member objects
Medium 6.3
In plain English
A medium-severity security flaw in nautobot from nautobot. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Nautobot is a Network Source of Truth and Network Automation Platform. A user with permissions to view Dynamic Group records (`extras.view_dynamicgroup` permission) can use the Dynamic Group detail UI view (`/extras/dynamic-groups/<uuid>/`) and/or the members REST API view (`/api/extras/dynamic-groups/<uuid>/members/`) to list the objects that are members of a given Dynamic Group. In versions of Nautobot between 1.3.0 (where the Dynamic Groups feature was added) and 1.6.22 inclusive, and 2.0.0 through 2.2.4 inclusive, Nautobot fails to restrict these listings based on the member object permissions - for example a Dynamic Group of Device objects will list all Devices that it contains, regardless of the user's `dcim.view_device` permissions or lack thereof. This issue has been fixed in Nautobot versions 1.6.23 and 2.2.5. Users are advised to upgrade. This vulnerability can be partially mitigated by removing `extras.view_dynamicgroup` permission from users however a full fix will require upgrading.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | nautobot | 1.6.23 | GHSA-qmjf-wc2h-6x3q |
| PyPI | nautobot | 2.2.5 | GHSA-qmjf-wc2h-6x3q |
| PyPI | nautobot | 2.3.0b1 | PYSEC-2024-166 |
Affected products (as reported)
Weakness: CWE-280, CWE-755 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/nautobot/nautobot/security/advisories/GHSA-qmjf-wc2h-6x3q x_refsource_CONFIRM
- https://github.com/nautobot/nautobot/pull/5757 x_refsource_MISC
- https://github.com/nautobot/nautobot/pull/5762 x_refsource_MISC