
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-33154 is a Server-Side Template Injection (SSTI) / Remote Code Execution vulnerability in the Python configuration management library dynaconf, affecting all versions up to and including 3.2.12. The flaw resides in the @Jinja and @Format string resolvers, which evaluate template expressions embedded in configuration values without a sandboxed environment. It was discovered by researcher redyank, disclosed via GitHub Security Advisory GHSA-pxrr-hq57-q35p on March 18, 2026, and published to the NVD on March 20, 2026. The CVSS v3.1 base score is 7.5 (High) per the GitHub Advisory, while Feedly's estimate places it at 8.1 (High) (GitHub Advisory, Red Hat Bugzilla).
The root cause is improper neutralization of special elements used in a template engine (CWE-1336) and improper control of code generation (CWE-94), compounded by OS command injection risk (CWE-78). Dynaconf's @Jinja resolver passes configuration values directly to a full, unsandboxed Jinja2 rendering context, allowing attackers to traverse Python's internal object graph via objects like cycler to reach __globals__ and import the os module — ultimately calling os.popen() for arbitrary command execution. The @Format resolver similarly allows Python string formatting with internal objects, enabling traversal such as {this.__class__.__init__.__globals__[os].environ} to expose secrets. Exploitation requires that an attacker control a configuration source (environment variable, .env file, CI/CD secret, or container environment), which is a realistic precondition in modern cloud-native deployments (GitHub Advisory, dynaconf Security Advisory).
Successful exploitation grants an attacker full control over the running application process, enabling arbitrary OS command execution on the host system, exfiltration of sensitive environment variables (API keys, database credentials, internal service tokens), and complete compromise of application secrets. Because configuration values in modern deployments frequently originate from CI/CD pipelines, container orchestration systems (e.g., Kubernetes), or environment injection mechanisms, a supply-chain or infrastructure-level attacker could trigger this remotely at scale. The confidentiality, integrity, and availability impacts are all rated High (GitHub Advisory, dynaconf Security Advisory).
A public proof-of-concept (PoC) exploit is available in the official GitHub Security Advisory, consisting of a runnable Python script that injects a malicious Jinja2 template via an environment variable to achieve arbitrary command execution (dynaconf Security Advisory). The EPSS score is approximately 0.045% (low near-term exploitation probability), and there is no current evidence of in-the-wild exploitation or threat actor attribution. The vulnerability is not listed in the CISA KEV catalog as of the time of this report. Detection plugins are available in Nessus (IDs 303261, 304218) and Qualys (ID 6633672) (Feedly).
jinja2 package installed, and that the attacker can influence a configuration source (e.g., environment variables, .env files, CI/CD pipeline secrets, or container environment variables).os module. Example payload for the @Jinja resolver:@jinja {{ cycler.__init__.__globals__.os.popen('id').read() }}DYNACONF_:import os
os.environ["DYNACONF_RCE"] = "@jinja {{ cycler.__init__.__globals__.os.popen('id').read() }}"In real-world scenarios, this could be injected via a compromised CI/CD secret, a malicious .env file, or a container environment variable.Dynaconf() and access the injected setting (e.g., settings.RCE). Dynaconf will evaluate the template expression without sandboxing.os.popen() call executes the OS command on the host and returns the output. Replace 'id' with any desired command (e.g., a reverse shell payload) to achieve full system compromise.@Format for secret exfiltration: Inject @format {this.__class__.__init__.__globals__[os].environ} to dump all environment variables, exposing API keys and credentials (dynaconf Security Advisory).DYNACONF_* environment variables containing @jinja, @format, __globals__, __init__, cycler, popen, or similar Python introspection patterns in container or process environments..env files or configuration files containing Jinja2 template expressions with Python object traversal syntax (e.g., cycler.__init__.__globals__).jinja2 template rendering or os.popen calls.sh, bash, curl, wget, python) that are not part of normal application behavior..env files in source repositories (dynaconf Security Advisory).Upgrade dynaconf to version 3.2.13 or later, which fixes both the @Jinja and @Format templating vulnerabilities by implementing proper security boundaries (dynaconf Release 3.2.13, Patch Commit). As an interim workaround where upgrading is not immediately possible, replace unsandboxed Jinja2 rendering with jinja2.sandbox.SandboxedEnvironment and restrict @Format usage to fully trusted, static values only. Additionally, audit and restrict all configuration sources — especially CI/CD pipeline secrets, container environment variables, and .env files — to prevent injection of malicious template expressions (dynaconf Security Advisory, Red Hat Bugzilla). OpenSUSE and Ubuntu have also released updated packages for their distributions (Feedly).
The vulnerability was reported by researcher redyank and patched promptly by dynaconf maintainer pedro-psb in version 3.2.13 on March 17–18, 2026 (dynaconf Release 3.2.13). Red Hat tracked the issue via Bugzilla (Bug 2449774) and assigned medium severity, with 14 users on the CC list indicating broad internal interest (Red Hat Bugzilla). Security blog infinitsec.net published a write-up shortly after disclosure, and the vulnerability received coverage on Mastodon and Bluesky within days of publication. OpenSUSE and Ubuntu subsequently issued security advisories for their packaged versions of python-dynaconf.
Fix availability across major Linux distributions and their releases.
bookworm
python-dynaconf
sid
python-dynaconf: 3.2.13-1
trixie
python-dynaconf: 3.1.7-2+deb13u1
devel
python-dynaconf
jammy
python-dynaconf
jammy (esm-apps)
python-dynaconf: 3.1.7-1ubuntu0.1~esm1
noble
python-dynaconf: 3.1.7-2ubuntu0.24.04.1
noble (esm-apps)
python-dynaconf: 3.1.7-2ubuntu0.24.04.1
questing
python-dynaconf: 3.1.7-2ubuntu0.25.10.1
resolute
python-dynaconf
resolute (esm-apps)
python-dynaconf: 3.2.12-1ubuntu0.1~esm1
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."