---
title: "CVE-2022-3328: snapd Race Condition vulnerability"
url: https://erroneo.us/security/cve/CVE-2022-3328/
description: "CVE-2022-3328 (github.com/snapcore/snapd (Go)): Race condition in snap-confine's mustmkdirandopenwithperms()"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-01-08
date_modified: 2025-06-03
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2022-3328"
kev: false
cvss: 9.0
epss: 0.00384
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2022-3328: snapd Race Condition vulnerability

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.4% , percentile 31: FIRST’s model estimates a 0.4% chance of exploitation activity in the next 30 days, higher than 31% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes github.com/snapcore/snapd (Go) < 2.57.6, fixed in 2.57.6 . Check your lockfile, including transitive dependencies.

## What it is

Race condition in snap-confine's mustmkdirandopenwithperms()

## Affected packages

- Go `github.com/snapcore/snapd` < 2.57.6 → fixed: 2.57.6

## Affected products (CVE record)

- Canonical Ltd. snapd: < 2.61.1

## Severity

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

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.38% probability of exploitation activity in the next 30 days; percentile 31.

## Sources

- [GitHub Advisory GHSA-cjqf-877p-7m3f](https://github.com/advisories/GHSA-cjqf-877p-7m3f)
- [CVE.org record CVE-2022-3328](https://www.cve.org/CVERecord?id=CVE-2022-3328)
- [NVD entry CVE-2022-3328](https://nvd.nist.gov/vuln/detail/CVE-2022-3328)
- [cve.mitre.org](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3328)
- [ubuntu.com](https://ubuntu.com/security/notices/USN-5753-1)
- [github.com](https://github.com/snapcore/snapd/pull/12380)
- [github.com](https://github.com/snapcore/snapd/commit/21ebc51f00b8a1417888faa2e83a372fd29d0f5e)
- [github.com](https://github.com/snapcore/snapd/commit/6226cdc57052f4b7057d92f2e549aa169e35cd2d)

---
Source page: https://erroneo.us/security/cve/CVE-2022-3328/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
