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 trend (30 days)EPSS over the last 30 days for CVE-2023-6395: held from 0.016 to 0.016.

EPSS over last 30 days · oldest: 0.016 · newest: 0.016 · change: 0.000

Affected products

Weakness classification (CWE)

References

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.