Vulnerability · Published Aug 7, 2024 · Assigned by redhat
CVE-2024-7143Pulpcore: rbac permissions incorrectly assigned in tasks that create objects
Medium 6.7
In plain English
A medium-severity security flaw in pulp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities).
Official description
A flaw was found in the Pulp package. When a role-based access control (RBAC) object in Pulp is set to assign permissions on its creation, it uses the `AutoAddObjPermsMixin` (typically the add_roles_for_object_creator method). This method finds the object creator by checking the current authenticated user. For objects that are created within a task, this current user is set by the first user with any permissions on the task object. This means the oldest user with model/domain-level task permissions will always be set as the current user of a task, even if they didn't dispatch the task. Therefore, all objects created in tasks will have their permissions assigned to this oldest user, and the creating user will receive nothing.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | pulpcore | no fix listed | GHSA-9m5j-4xx9-44j9 |
| PyPI | pulpcore | no fix listed | PYSEC-2026-1808 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| pulp | 0 – through 3.56.0 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | see references |
| Red Hat | Red Hat Ansible Automation Platform 2 | see references |
| Red Hat | Red Hat Satellite 6 | see references |
| Red Hat | Red Hat Update Infrastructure 4 for Cloud Providers | see references |
Weakness: CWE-277 · Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L
References
- RHSA-2024:6765 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-7143 vdb-entry, x_refsource_REDHAT
- RHBZ#2300125 issue-tracking, x_refsource_REDHAT
- https://github.com/advisories/GHSA-9m5j-4xx9-44j9
- https://github.com/pulp/pulpcore/blob/93f241f34c503da0fbac94bdba739feda2636e12/pulpcore/tasking/_util.py#L108
- https://github.com/pulp/pulpcore/blob/main/CHANGES.md