Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.8

python-templated-dictionary may allow code execution as root

published 29 days ago
Summary

The python-templated-dictionary package used by the Mock build tool expands configuration text using a template system. If an untrusted user can supply that text, they could cause the program to run commands with full system privileges. Install the latest update for the package and limit configuration input to trusted users only.

What to do
  • Update openeuler python-templated-dictionary to version 1.2-2.oe2403sp1.
Affected software
Ecosystem VendorProductAffected versions
openEuler:24.03-LTS-SP1 openeuler python-templated-dictionary < 1.2-2.oe2403sp1
Fix: upgrade to 1.2-2.oe2403sp1
Original advisory text
python-templated-dictionary security update
Dictionary where __getitem__() is run through Jinja2 template.

Security Fix(es):

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.(CVE-2023-6395)
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker full control (estimated)
Severity
9.8 Critical
Timeline
Published20 Sep 2026
Updated20 Sep 2026
First seen20 Sep 2026
Sources
Track software like this
Free during beta