CVE-2023-20898
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 · uneditedGit Providers can read from the wrong environment because they get the same cache directory base name in Salt masters prior to 3005.2 or 3006.2. Anything that uses Git Providers with different environments can get garbage data or the wrong data, which can lead to wrongful data disclosure, wrongful executions, data corruption and/or crash.
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 confidenceIn Salt masters prior to versions 3005.2 or 3006.2, Git Providers incorrectly use the same cache directory base name for different environments. This causes environment-specific data to collide in the shared cache, resulting in garbage data, wrongful data disclosure between environments, incorrect execution of jobs based on mixed state, and potential data corruption or crashes.
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< 3005.2>= 3006.0, < 3006.2CVSS 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
- Local
- Complexity
- High
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/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 Salt master versionRun `salt --version` or `salt-master --version` to get the installed version numberAffected if Version is less than 3005.2 OR is 3006.0 or 3006.1 (within range >=3006.0, <3006.2)
-
Verify Git Provider (gitfs) is in useCheck the Salt master configuration files (typically /etc/salt/master or /etc/salt/master.d/) for `gitfs` or `gitfs_base` settings, or run `salt-call config.get gitfs`Affected if gitfs is configured and enabled as a fileserver backend
-
Confirm multiple gitfs environments are configuredLook for `gitfs_env` or `gitfs_branch` settings in the master config, or check if multiple branches/repos are mapped to different environments in the gitfs configurationAffected if More than one environment or branch is configured using gitfs
-
Inspect gitfs cache directoryCheck the `gitfs_cache` or `gitfs_root` configuration options; default cache is typically under /var/cache/salt/master/gitfs/ and contains subdirectories named after environmentsAffected if Cache subdirectories use the same base name for different environments, causing collision
A user is affected if they run a Salt master version below 3005.2 or between 3006.0 and 3006.1 AND have gitfs (Git Provider) configured with multiple environments, where cache directories may collide.
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 · scoped3005.23006.2
Upgrade Salt master to version 3005.2 or 3006.2 or later to ensure Git Providers use unique cache directory names per environment.
Salt 3005.2 or 3006.2 (depending on your current major version branch)
- 1. Identify your current Salt version by running: salt --version
- 2. Determine which upgrade path to take: if running 3005.x, upgrade to 3005.2; if running 3006.x, upgrade to 3006.2
- 3. Backup your Salt configuration directory (typically /etc/salt) and pillar data before upgrading
- 4. Upgrade Salt using your package manager: for RHEL/CentOS use 'yum update salt-master' or for Debian/Ubuntu use 'apt-get install salt-master=3005.2' or 'salt-master=3006.2'
- 5. Restart the salt-master service after upgrade: systemctl restart salt-master
- 6. Verify the fix by checking Salt version matches the fixed release and testing Git provider functionality with multiple environments
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.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,088.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-20898 — 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-2023-20898 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