A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
The Mock software contains a vulnerability wherein an attacker could potentially exploit privilege escalation, enabling the execution of arbitrary code with root user privileges. This weakness stems from the absence of proper sandboxing during the expansion and execution of Jinja2 templates, which may be included in certain configuration parameters. While the Mock documentation advises treating users added to the mock group as privileged, certain build systems invoking mock on behalf of users might inadvertently permit less privileged users to define configuration tags. These tags could then be passed as parameters to mock during execution, potentially leading to the utilization of Jinja2 templates for remote privilege escalation and the execution of arbitrary code as the root user on the build server.
Affected products
From the NVD's configuration data (CPE), vendor first.
- Fedoraproject extra packages for enterprise linux, fedora
- Rpm Software Management mock
Weakness type
References
- www.openwall.com /lists/oss-security/2024/01/16/1
- www.openwall.com /lists/oss-security/2024/01/16/3
- access.redhat.com /security/cve/CVE-2023-6395
- bugzilla.redhat.com /show_bug.cgi
- github.com /xsuchy/templated-dictionary/commit/0740bd0ca8d487301881541…
- github.com /xsuchy/templated-dictionary/commit/bcd90f0dafa365575c4b101…
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/mes…
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/mes…
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning