9.8

CVE-2023-6395: Mock: privilege escalation for users that can access mock configuration

Modified
AliasesGHSA-7j98-74jh-cjxhPYSEC-2026-1949UBUNTU-CVE-2023-6395
Published 16-01-2024Last modified 13-02-2025

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 75.9% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
1.55%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Timeline

  1. 16-01-2024
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last 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

EPSS trend

Probability

1.55%

Chance of exploitation in the next 30 days

Percentile

76%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.55% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (openwall.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Fedoraproject2 products
PyPI1 product
  • templated-dictionary< 1.4.1
Rpm-software-management1 product
Ubuntu1 product
  • mockAll versions (No fix recorded)

4 vendors · 5 products

References

17 links
Show all 17 references