{"schemaVersion":3,"id":"CVE-2022-3328","aliases":["UBUNTU-CVE-2022-3328","USN-5753-1","DEBIAN-CVE-2022-3328","DLA-3215-1","DSA-5292-1","GHSA-cjqf-877p-7m3f","GO-2024-2468"],"status":"published","duplicateOf":null,"title":null,"description":"Race condition in snap-confine's must_mkdir_and_open_with_perms()","dates":{"published":"2024-01-08T18:04:10.534Z","modified":"2025-06-03T14:35:04.952Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":9,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":2.8,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00384,"percentile":0.30834,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00384},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0038,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00384,"percentile":0.30834}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00384,"percentile":0.30834}]},"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":"canonical ltd.","product":"snapd","name":"snapd","label":"snapd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.61.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.61.1","eol":null,"hubHref":"/vendor/canonical_ltd/snapd"},{"vendor":"canonical","product":"snapd","name":"snapd","label":"snapd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.61.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.61.1","eol":null,"hubHref":"/vendor/canonical/snapd"},{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"16.04","noFixRecorded":false,"fixedIn":null},{"text":"18.04","noFixRecorded":false,"fixedIn":null},{"text":"20.04","noFixRecorded":false,"fixedIn":null},{"text":"22.04","noFixRecorded":false,"fixedIn":null},{"text":"22.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"16.04 | 18.04 | 20.04 | 22.04 | 22.10","eol":{"isEol":true,"eolDate":"2021-04-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"16.04","label":"16.04 'Xenial Xerus' (LTS)","eolFrom":"2021-04-02T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"16.04.7"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"snapd","name":"snapd","label":"snapd","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/snapd","purlType":"deb","versions":[{"text":"< 2.49-1+deb11u2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.37.4-1+deb10u2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.57.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.49-1+deb11u2 | < 2.37.4-1+deb10u2 | < 2.57.6-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"snapd","name":"snapd","label":"snapd","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/snapd","purlType":"deb","versions":[{"text":"< 2.54.3+16.04.0ubuntu0.1~esm5","noFixRecorded":false,"fixedIn":null},{"text":"< 2.57.5+18.04ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.57.5+20.04ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.57.5+22.04ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.54.3+16.04.0ubuntu0.1~esm5 | < 2.57.5+18.04ubuntu0.1 | < 2.57.5+20.04ubuntu0.1 | < 2.57.5+22.04ubuntu0.1","eol":null,"hubHref":null},{"vendor":"github.com/snapcore","product":"snapd","name":"github.com/snapcore/snapd","label":"snapd","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/snapcore/snapd","purlType":"golang","versions":[{"text":"< 2.57.6","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"< 2.57.6 | All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3328","label":"cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3328","hostname":"cve.mitre.org","tags":["Issue Tracking","WEB","Advisory","Third Party Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5753-1","label":"ubuntu.com/security/notices/USN-5753-1","hostname":"ubuntu.com","tags":["Third Party Advisory","Advisory","WEB","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-3328","label":"ubuntu.com/security/CVE-2022-3328","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-3328","label":"www.cve.org/CVERecord?id=CVE-2022-3328","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-3328","label":"security-tracker.debian.org/tracker/CVE-2022-3328","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3328","label":"nvd.nist.gov/vuln/detail/CVE-2022-3328","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/snapcore/snapd/pull/12380","label":"github.com/snapcore/snapd/pull/12380","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/snapcore/snapd/commit/21ebc51f00b8a1417888faa2e83a372fd29d0f5e","label":"github.com/snapcore/snapd/commit/21ebc51f00b8a1417888faa2e83a372fd29d0f5e","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/snapcore/snapd/commit/6226cdc57052f4b7057d92f2e549aa169e35cd2d","label":"github.com/snapcore/snapd/commit/6226cdc57052f4b7057d92f2e549aa169e35cd2d","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/snapcore/snapd","label":"github.com/snapcore/snapd","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-cjqf-877p-7m3f","label":"github.com/advisories/GHSA-cjqf-877p-7m3f","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-01-08T18:04:10.534Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-06-03T14:35:04.952Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T14:00:50.594Z","stale":false,"partial":false}}