patchminder
Proof of concept · Exploit-DB CVE-2019-7304

Privilege escalationin Canonical snapd.

Published 23 Apr 2019 · Updated 16 Sep 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
High 8.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 61.1% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.37.1 or later
In plain words

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 now
  • Upgrade snapd to 2.37.1 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
snapd
before 2.37.1
2.37.1
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 1 Feb 2019
    CVE ID reserved by canonical.
  2. 12 Feb 2019
    First public proof of concept on GitHub.
  3. 23 Apr 2019
    Published in the CVE List.
  4. 16 Sep 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
2 entries
GitHub proof of concepts
5 repositories
Exploit-DBEDB-ID 46361local exploit for linux, published 13 Feb 2019
Exploit-DBEDB-ID 46362local exploit for linux, published 13 Feb 2019
GitHubno warning signs foundinitstring/dirty_sock681 stars · created 12 Feb 2019Linux privilege escalation exploit via snapd (CVE-2019-7304)
GitHubno warning signs foundSecuritySi/CVE-2019-7304_DirtySock6 stars · created 14 Feb 2019Payload Generator
GitHubno warning signs foundelvi7major/snap_priv_esc1 stars · created 28 Mar 2021Another implementation for linux privilege escalation exploit via snap(d) (CVE-2019-7304)
GitHubno warning signs foundf4T1H21/dirty_sock1 stars · created 28 Jul 2021Local Privilege Escalation via snapd (CVE-2019-7304) Remastered PoC exploit
GitHubno warning signs foundKaine105/Document-Linux-Privilege-Escalation0 stars · created 11 Jun 2025Exploiting the vulnerability called "Dirty_Sock" (CVE-2019-7304) in the REST API for Canonical's snapd daemon.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other snapd vulnerabilities

References
Cite this page

Patchminder. CVE-2019-7304: Privilege escalation in Canonical snapd. https://patchminder.com/cve/cve-2019-7304/ (accessed 5 December 2026).