GitHub Advisoryadvisory · PyPI
GHSA-qmjf-wc2h-6x3q Nautobot dynamic-group-members doesn't enforce permission restrictions on member objects
MEDIUM
Official page ↗
- Aliases
- CVE-2024-36112
- Ecosystem
- PyPI
- Packages
- nautobot
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- Weaknesses
- CWE-280
- Reviewed
- 2024-05-29
Affected packages
• PyPI nautobot: >= 1.3.0, < 1.6.23 → fixed in 1.6.23
• PyPI nautobot: >= 2.0.0, < 2.2.5 → fixed in 2.2.5
Description
Impact
_What kind of vulnerability is it? Who is impacted?_
A user with permissions to view Dynamic Group records (`extras.view_dynamicgroup` permission) can use the Dynamic Group detail UI view (`/extras/dynamic-groups//`) and/or the members REST API view (`/api/extras/dynamic-groups//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.
Patches
_Has the problem been patched? What versions should users upgrade to?_
Fixed in Nautobot 1.6.23 and 2.2.5.
Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_
This vulnerability can be partially mitigated by removing `extras.view_dynamicgroup` permission from users; a full fix will require upgrading.
References
_Are there any links users can visit to find out more?_
• https://github.com/nautobot/nautobot/pull/5757
• https://github.com/nautobot/nautobot/pull/5762
Related
Alias · CVE (1)
- CVE-2024-36112 Nautobot is a Network Source of Truth and Network Automation Platform. vulnerability
Weakness · CWE (1)
- CWE-280 Improper Handling of Insufficient Permissions or Privileges weakness
References
- https://github.com/nautobot/nautobot/security/advisories/GHSA-qmjf-wc2h-6x3q web
- https://nvd.nist.gov/vuln/detail/CVE-2024-36112 advisory
- https://github.com/nautobot/nautobot/pull/5757 web
- https://github.com/nautobot/nautobot/pull/5762 web
- https://github.com/nautobot/nautobot/commit/3a63aa1327f943b2ac8452757ea2e4d403387ad6 web
- https://github.com/nautobot/nautobot/commit/4d1ff2abe2775b0a6fb16e6d1d503a78226a6f8e web
- https://github.com/nautobot/nautobot package
- https://github.com/pypa/advisory-database/tree/main/vulns/nautobot/PYSEC-2024-166.yaml web