RCE in Rpm-Software-Management Mock
CVE-2023-6395
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.016 (74.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 75th percentile — 74.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.016 · newest: 0.016 · change: 0.000
Affected products
- Rpm-Software-Management Mock
- Fedora Extra Packages For Enterprise Linux
- Fedora
- Fedoraproject Extra Packages For Enterprise Linux — versions 7.0, 8.0, 9.0
- Fedoraproject Fedora — versions 38, 39
- Red Hat Enterprise Linux 6
- Mock
Weakness classification (CWE)
References
- access.redhat.com/security/cve/CVE-2023-6395 (Third Party Advisory, vdb-entry)
- bugzilla.redhat.com/show_bug.cgi (issue-tracking, Third Party Advisory, Issue Tracking)
- github.com/xsuchy/templated-dictionary/commit/0740bd0ca8d487301881541028977d120… (Patch)
- github.com/xsuchy/templated-dictionary/commit/bcd90f0dafa365575c4b101e6f5d98c4e… (Patch)
- www.openwall.com/lists/oss-security/2024/01/16/1 (Patch, Mailing List, Third Party Advisory)
- www.openwall.com/lists/oss-security/2024/01/16/3 (Exploit, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
Frequently asked questions
- What is CVE-2023-6395?
- CVE-2023-6395 is a medium-severity vulnerability in Rpm-Software-Management Mock, classified under Improper Input Validation. CVSS score: 6.7/10. Published 2024-01-16.
- How severe is CVE-2023-6395?
- Medium severity. CVSS v3 base score is 6.7 out of 10.