# CVE-2022-3328: snapd Race Condition vulnerability

- Severity: High 7.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2024-01-08T18:04:10.534Z
- Modified: 2026-06-17T04:59:18.940Z
- Also known as: GHSA-cjqf-877p-7m3f, GO-2024-2468
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: canonical

## Description

Race condition in snap-confine's must_mkdir_and_open_with_perms()

(As written by CVE List.)

## Affected

- snapd: before 2.61.1
- github.com/snapcore/snapd (Go): before 2.57.6; all versions
- canonical snapd: before 2.61.1
- canonical ubuntu_linux: 16.04; 18.04; 20.04; 22.04; 22.10

## Every score

- canonical: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 Critical `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3328> (advisory, issue-tracking, third-party-advisory, web)
- <https://ubuntu.com/security/notices/USN-5753-1> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-3328> (advisory)
- <https://github.com/snapcore/snapd/pull/12380> (fix, web)
- <https://github.com/snapcore/snapd/commit/21ebc51f00b8a1417888faa2e83a372fd29d0f5e> (fix, web)
- <https://github.com/snapcore/snapd/commit/6226cdc57052f4b7057d92f2e549aa169e35cd2d> (fix, web)
- <https://github.com/snapcore/snapd> (package)
- <https://github.com/advisories/GHSA-cjqf-877p-7m3f> (advisory)

## Sources

- CVE List: [CVE-2022-3328](https://www.cve.org/CVERecord?id=CVE-2022-3328), CVE Terms of Use, modified 2025-06-03
- GitHub Advisory Database: [GHSA-cjqf-877p-7m3f](https://github.com/advisories/GHSA-cjqf-877p-7m3f), CC-BY-4.0, modified 2024-11-18
- Go Vulnerability Database: [GO-2024-2468](https://pkg.go.dev/vuln/GO-2024-2468), CC-BY-4.0, modified 2024-07-09
- NVD: [CVE-2022-3328](https://nvd.nist.gov/vuln/detail/CVE-2022-3328), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3328 · Whole record: https://cve.day/CVE-2022-3328.json · Rebuilt by cve.day 2026-11-25T22:58:19.710Z
