CVE-2021-25283
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAn issue was discovered in through SaltStack Salt before 3002.5. The jinja renderer does not protect against server side template injection attacks.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Jinja renderer in SaltStack Salt versions before 3002.5 lacks protection against server-side template injection (SSTI), enabling remote attackers to inject and execute malicious Jinja template code server-side, potentially achieving remote code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 32= 33= 34= 9.0= 10.0= 11.0< 2015.8.10>= 2015.8.11, < 2015.8.13>= 2016.3.0, < 2016.3.4>= 2016.3.5, < 2016.3.6>= 2016.3.7, < 2016.3.8>= 2016.3.9, < 2016.11.3>= 2016.11.4, < 2016.11.5>= 2016.11.7, < 2016.11.10>= 2017.5.0, < 2017.7.8>= 2018.2.0, <= 2018.3.5>= 2019.2.0, < 2019.2.5>= 2019.2.6, < 2019.2.8CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check if SaltStack Salt is installedRun `salt --version` or `salt-minion --version` to identify the installed Salt versionAffected if Salt is installed and the version falls within the affected ranges: < 2015.8.10, >= 2015.8.11 and < 2015.8.13, >= 2016.3.0 and < 2016.3.4, >= 2016.3.5 and < 2016.3.6, >= 2016.3.7 and < 2016.3.8, >= 2016.3.9 and < 2016.11.3, >= 2016.11.4 and < 2016.11.5, >= 2016.11.7 and < 2016.11.10, >= 2017.5.0 and
-
Verify the salt-master service exposureCheck network configuration to determine if the salt-master service (default port 4506) is listening on interfaces accessible from untrusted networksAffected if The salt-master is exposed to untrusted or public networks, allowing remote attackers to send malicious Jinja template payloads
-
Confirm Jinja template rendering is in useReview Salt configuration files (master config at /etc/salt/master or minion config at /etc/salt/minion) to confirm template rendering is enabled, which is enabled by default in SaltAffected if Jinja template rendering is active, which is the default state for Salt installations and is required for the vulnerability to be exploitable
-
Check for recent authentication activityReview salt-master logs for unusual Jinja template requests or authentication attempts from untrusted sources in /var/log/salt/master or equivalent log locationAffected if There are log entries indicating Jinja template injection attempts or unexpected template rendering requests
Your environment is affected if SaltStack Salt is installed with a version below 3002.5 and the salt-master service is accessible to untrusted networks where attackers could inject malicious Jinja template code.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2015.8.102015.8.132016.3.4
Upgrade SaltStack Salt to version 3002.5 or later which implements proper safeguards in the Jinja renderer to prevent template injection attacks.
Upgrade to SaltStack Salt 3002.5 or later (e.g., 3002.5, 3003.x, or latest stable 3004.x/3005.x)
- Identify the current Salt version installed using: salt --version or rpm -q salt
- Consult the SaltStack upgrade guide for your installation method (pip, package manager, etc.)
- For pip installations: pip install --upgrade salt==3002.5 or later
- For system packages: update your package repository and run: dnf update salt (Fedora) or apt-get update && apt-get install salt (Debian)
- After upgrading, restart all Salt services (salt-master, salt-minion) to load the fixed version
- Verify the upgrade was successful by checking: salt --version
- Test that templates using Jinja rendering work correctly with the new version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-25283 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-25283 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data