CVE-2023-6395: fedoraproject extra_packages_for_enterprise_linux Improper Input Validation
Vulnerability summary
CVE-2023-6395 is a critical (CVSS 9.8) Improper Input Validation vulnerability in fedoraproject extra_packages_for_enterprise_linux. EPSS estimates a 1.55% chance of exploitation in the next 30 days, higher than 74.7% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 16-01-2024PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA6.7MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · PypiEcosystem advisory · calculated6.7MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.55%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
0.00 pp
From 1.55% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (openwall.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Affected systems
Fedoraproject2 products
- extra_packages_for_enterprise_linux7.0 | 8.0 | 9.0
- fedoraEOL38 | 39
PyPI1 product
- templated-dictionary< 1.4.1
Rpm-software-management1 product
- mockna
Ubuntu1 product
- mockAll versions (No fix recorded)
4 vendors · 5 products
References
17 links- access.redhat.com/security/cve/CVE-2023-6395VDB EntryX Refsource REDHATWEBREPORTThird Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2252206Issue TrackingX Refsource REDHATWEBREPORTThird Party Advisory