Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-6395

published medium CVSS 3.1 · 6.7

Mock: privilege escalation for users that can access mock configuration

Published
16 Jan 2024, 14:33:02 UTC
Updated
13 Feb 2025, 17:26:22 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — mock Affected Not stated redhat
Red Hat Enterprise Linux 6 mock Unaffected Not required redhat
Fedora — mockExtra Packages for Enterprise Linux Affected Not stated redhat
Fedora — mockFedora Affected Not stated redhat
Amazon Linux AL2 Release evaluationALAS2MOCK-2025-001 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2MOCK2-2025-001 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 mocknoarch Listed in advisory Not stated ALAS2MOCK-2025-001
Amazon Linux AL2 mocksrc Listed in advisory Not stated ALAS2MOCK-2025-001
Show 2 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 python-templated-dictionarynoarch Listed in advisory Not stated ALAS2MOCK2-2025-001
Amazon Linux AL2 python-templated-dictionarysrc Listed in advisory Not stated ALAS2MOCK2-2025-001

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.

en · redhat · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.7 / 10
Severity
medium
Provider
redhat · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a mock Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 6 Default: unaffected redhat · cna
Fedora Extra Packages for Enterprise Linux Default: affected redhat · cna
Fedora Fedora Default: affected redhat · cna

Weaknesses

2
  • CWE-20 Improper Input Validation (redhat · cna)
  • CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection') (CISA-ADP · adp)

References

8

Provider assertions

3

redhat · cna

Mock: privilege escalation for users that can access mock configuration

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
48ed1a3d04fdc0d9e23b9bc32aeb91cc56bba7dd4c95f38ddf16722754fab294
Ingested
23 Sep 2026, 08:15:42 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected