CVE-2023-6395
CVE-2023-6395 — Mock: privilege escalation for users that can access mock configuration
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.
Published Updated Sources: cvelistV5, redhat
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
2%
chance of exploitation in 30 days
CVSS base
6.7
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.7 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-20
- CWE-94
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1562.003Impair Defenses: Impair Command History Logging
- T1574.006Hijack Execution Flow: Dynamic Linker Hijacking
- T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
References
8 on the record
- access.redhat.com/security/cve/CVE-2023-6395
vdb-entry, x_refsource_REDHAT
- bugzilla.redhat.com/show_bug.cgi?id=2252206
issue-tracking, x_refsource_REDHAT
- github.com/xsuchy/templated-dictionary/commit/0740bd0ca8d487301881541028977d120f8b8933
reference
- github.com/xsuchy/templated-dictionary/commit/bcd90f0dafa365575c4b101e6f5d98c4ef4e4b69
reference
- www.openwall.com/lists/oss-security/2024/01/16/1
reference
- www.openwall.com/lists/oss-security/2024/01/16/3
reference
- lists.fedoraproject.org/archives/list/[email protected]/message/NBFYREAJH4T7GXXQZ4GJEREN4Q3AHS3K/
reference
- lists.fedoraproject.org/archives/list/[email protected]/message/62SP2BJC2AFLFJJAEHPGZ3ZINTBTI7AN/
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2021-44026 Roundcube Webmail SQL Injection VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2021-1871 Apple iOS, iPadOS, and macOS WebKit Remote Code Execution VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2021-1870 Apple iOS, iPadOS, and macOS WebKit Remote Code Execution VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2019-16928 Exim Out-of-bounds Write VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-5274 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.6 · CISA KEV
- CVE-2024-4947 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.6 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.