Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-6395

MEDIUM 6.7PoCEPSS 77%

Mock: privilege escalation for users that can access mock configuration

Also known as GHSA-7j98-74jh-cjxh, PYSEC-2026-1949

Mitigation

  • Upgrade templated-dictionary to 1.4.1 or later.
  • Vendor workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Who should check

  • Projects that depend on PyPI package templated-dictionary (< 1.4.1)
  • Anyone running mock all versions
  • Anyone running Red Hat Enterprise Linux 6 (versions: see the vendor advisory)
  • Anyone running Fedora Extra Packages for Enterprise Linux all versions
  • Anyone running Fedora all versions

Vulnerability facts

Affected
templated-dictionary < 1.4.1
Fixed in
1.4.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.7 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: High
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
1.64% chance of exploitation in 30 days (percentile 77, 2026-11-26)
CWE
CWE-20
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI templated-dictionary< 1.4.11.4.1osv
mockall versions—cvelist
Red Hat Enterprise Linux 6——cvelist
Fedora Extra Packages for Enterprise Linuxall versions—cvelist
Fedoraall versions—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-6395. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-6395.md
Affected: templated-dictionary < 1.4.1
Fixed in: 1.4.1

Steps:
1. Search this machine and project for templated-dictionary (PyPI), mock, Red Hat Enterprise Linux 6, Fedora Extra Packages for Enterprise Linux, Fedora: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-6395 being exploited?

There is no confirmed exploitation: CVE-2023-6395 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.64% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-6395?

Medium: CVSS 6.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2023-6395?

templated-dictionary < 1.4.1.

Is there a fix for CVE-2023-6395?

Yes. Fixed in 1.4.1. Upgrade templated-dictionary to 1.4.1 or later. Vendor workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

How do I check if I'm affected by CVE-2023-6395?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors