{"schemaVersion":3,"id":"CVE-2021-22004","aliases":["GHSA-xf37-qcvf-7m57","PYSEC-2021-346","UBUNTU-CVE-2021-22004"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in SaltStack Salt before 3003.3. The salt minion installer will accept and use a minion config file at C:\\salt\\conf if that file is in place before the installer is run. This allows for a malicious actor to subvert the proper behaviour of the given minion software.","dates":{"published":"2021-09-08T15:00:14.000Z","modified":"2024-08-03T18:30:23.738Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":1.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":1.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.4,"severity":"medium","vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00354,"percentile":0.27658,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00354},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00354,"percentile":0.27658}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00354,"percentile":0.27658}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","description":"The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/362.html"}],"affected":[{"vendor":"ubuntu","product":"salt","name":"salt","label":"salt","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/salt","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null},{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"33 | 34 | 35","eol":{"isEol":true,"eolDate":"2021-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"33","label":"33","eolFrom":"2021-11-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"PyPI","product":"salt","name":"salt","label":"salt","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/salt","purlType":"pypi","versions":[{"text":"< 3003.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3003.3","eol":null,"hubHref":null},{"vendor":"saltstack","product":"salt","name":"Salt","label":"salt","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3000.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3000.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"salt","label":"Salt","category":"server-app"}},"hubHref":"/vendor/saltstack/salt"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://saltproject.io/security_announcements/salt-security-advisory-2021-sep-02/","label":"saltproject.io/security_announcements/salt-security-advisory-2021-sep-02/","hostname":"saltproject.io","tags":["X Refsource MISC","Advisory","REPORT","Patch","Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22004","label":"nvd.nist.gov/vuln/detail/CVE-2021-22004","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-xf37-qcvf-7m57","label":"github.com/advisories/GHSA-xf37-qcvf-7m57","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2021-346.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2021-346.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/saltstack/salt","label":"github.com/saltstack/salt","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://saltproject.io/security_announcements/salt-security-advisory-2021-sep-02","label":"saltproject.io/security_announcements/salt-security-advisory-2021-sep-02","hostname":"saltproject.io","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-22004","label":"ubuntu.com/security/CVE-2021-22004","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-22004","label":"www.cve.org/CVERecord?id=CVE-2021-22004","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-09-08T15:00:14.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:30:23.738Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:15:42.025Z","stale":false,"partial":false}}