CVE-2023-6395

Severity: Moderate
Published: 2023-01-01

Fix Status by Distribution

Fixed in 0 of 27 tracked Linux releases

Fix evidence last checked: 2026-11-05 11:40 UTC

Get alerted when your releases are fixed
No fix evidence found:
AlmaLinux 10
AlmaLinux 8
AlmaLinux 9
Debian 11 (Bullseye)
Debian 12 (Bookworm)
Debian 13 (Trixie)
Oracle Linux 10
Oracle Linux 8
Oracle Linux 9
Red Hat Enterprise Linux 10
Red Hat Enterprise Linux 7 (Extended Lifecycle Support)
Red Hat Enterprise Linux 8
Red Hat Enterprise Linux 9
Rocky Linux 10
Rocky Linux 8
Rocky Linux 9
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP7
SUSE Linux Enterprise Server 16
Ubuntu 22.04 LTS (Jammy Jellyfish)
Ubuntu 24.04 LTS (Noble Numbat)
Ubuntu 25.04 (Plucky Puffin)
Ubuntu 25.10 (Questing Quokka)
Ubuntu 26.04 LTS (Resolute Raccoon)
Ubuntu 26.10 (Stonking Stingray)
Interested in being alerted when these distributions have fixes? Set up an alert.

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.

Exploit evidence

Public exploit evidence reported

Last checked: 2026-07-31 19:04 UTC

  • No exploitation evidence · CISA Coordinator (Assessed 2024-10-25 20:10 UTC)

  • Exploit reference · af854a3a-2127-422b-91ae-364da2661108 · View external evidence (Observed 2026-07-31 19:04 UTC)

NVD evidence for CVE-2023-6395 is reported, not independently verified by Package Alert. It does not establish exploit reliability or applicability to a particular package or environment.