{"id":"CVE-2019-7304","aliases":["DEBIAN-CVE-2019-7304","EUVD-2019-16848","GHSA-jvm5-cj73-m9qg","UBUNTU-CVE-2019-7304","USN-3887-1"],"status":"published","title":"Local privilege escalation via snapd socket","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.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.61075,"percentile":0.99166,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-863"],"published":"2019-02-12T16:00:00Z","modified":"2026-10-24T10:30:17Z","exploits":[{"source":"pocgithub","id":"initstring/dirty_sock","title":"initstring/dirty_sock","date":"2019-02-12","url":"https://github.com/initstring/dirty_sock"},{"source":"exploitdb","id":"EDB-46361","title":"snapd \u003c 2.37 (Ubuntu) - 'dirty_sock' Local Privilege Escalation (1)","type":"local","platform":"linux","date":"2019-02-13","url":"https://www.exploit-db.com/exploits/46361"},{"source":"exploitdb","id":"EDB-46362","title":"snapd \u003c 2.37 (Ubuntu) - 'dirty_sock' Local Privilege Escalation (2)","type":"local","platform":"linux","date":"2019-02-13","url":"https://www.exploit-db.com/exploits/46362"},{"source":"pocgithub","id":"SecuritySi/CVE-2019-7304_DirtySock","title":"SecuritySi/CVE-2019-7304_DirtySock","date":"2019-02-14","url":"https://github.com/SecuritySi/CVE-2019-7304_DirtySock"},{"source":"pocgithub","id":"elvi7major/snap_priv_esc","title":"elvi7major/snap_priv_esc","date":"2021-03-28","url":"https://github.com/elvi7major/snap_priv_esc"},{"source":"pocgithub","id":"f4T1H21/dirty_sock","title":"f4T1H21/dirty_sock","date":"2021-07-28","url":"https://github.com/f4T1H21/dirty_sock"},{"source":"pocgithub","id":"Kaine105/Document-Linux-Privilege-Escalation","title":"Kaine105/Document-Linux-Privilege-Escalation","date":"2025-06-11","url":"https://github.com/Kaine105/Document-Linux-Privilege-Escalation"}],"fixes":[{"ecosystem":"Debian:12","package":"snapd","fixed_in":["2.37.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"snapd","fixed_in":["2.37.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"snapd","fixed_in":["2.37.1-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"snapd","fixed_in":["2.34.2~14.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"snapd","fixed_in":["2.34.2ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"snapd","fixed_in":["2.34.2+18.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.37.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.37.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.37.1-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.34.2~14.04.1"}]}],"versions":["2.21~14.04.2","2.22.2~14.04","2.22.3~14.04","2.22.6~14.04","2.23.1~14.04","2.24.1~14.04","2.25~14.04","2.26.10~14.04","2.27.5~14.04","2.28.5~14.04","2.29.4.2~14.04","2.32.3.2~14.04","2.32.9~14.04","2.33.1~14.04","2.34.2~14.04"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.34.2ubuntu0.1"}]}],"versions":["1.9","1.9.1.1","1.9.2","2.0","2.0.1","2.0.2","2.0.3","2.0.5","2.0.8","2.0.9","2.0.10","2.11+0.16.04","2.12+0.16.04","2.13","2.14.2~16.04","2.15.2ubuntu1","2.16ubuntu3","2.17.1ubuntu1","2.20.1ubuntu1","2.21","2.22.2","2.22.3","2.22.6","2.23.1","2.24.1","2.25","2.26.10","2.27.5","2.28.5","2.29.4.2","2.32.3.2","2.32.9","2.33.1ubuntu2","2.34.2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.34.2+18.04.1"}]}],"versions":["2.28.5+17.10","2.29.4.1+18.04","2.29.4.2+18.04","2.31.1+18.04","2.32+18.04~pre5","2.32+18.04~pre6","2.32+18.04","2.32.3.2+18.04","2.32.5+18.04","2.32.8+18.04","2.32.9+18.04","2.33.1+18.04ubuntu2","2.34.2+18.04"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.34.2~14.04.1"}]}],"versions":["2.21~14.04.2","2.22.2~14.04","2.22.3~14.04","2.22.6~14.04","2.23.1~14.04","2.24.1~14.04","2.25~14.04","2.26.10~14.04","2.27.5~14.04","2.28.5~14.04","2.29.4.2~14.04","2.32.3.2~14.04","2.32.9~14.04","2.33.1~14.04","2.34.2~14.04"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.34.2ubuntu0.1"}]}],"versions":["1.9","1.9.1.1","1.9.2","2.0","2.0.1","2.0.2","2.0.3","2.0.5","2.0.8","2.0.9","2.0.10","2.11+0.16.04","2.12+0.16.04","2.13","2.14.2~16.04","2.15.2ubuntu1","2.16ubuntu3","2.17.1ubuntu1","2.20.1ubuntu1","2.21","2.22.2","2.22.3","2.22.6","2.23.1","2.24.1","2.25","2.26.10","2.27.5","2.28.5","2.29.4.2","2.32.3.2","2.32.9","2.33.1ubuntu2","2.34.2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.34.2+18.04.1"}]}],"versions":["2.28.5+17.10","2.29.4.1+18.04","2.29.4.2+18.04","2.31.1+18.04","2.32+18.04~pre5","2.32+18.04~pre6","2.32+18.04","2.32.3.2+18.04","2.32.5+18.04","2.32.8+18.04","2.32.9+18.04","2.33.1+18.04ubuntu2","2.34.2+18.04"]}],"products":[{"vendor":"canonical","product":"snapd"},{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"canonical ltd.","product":"snapd"}],"references":[{"url":"https://usn.ubuntu.com/3887-1/","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory"]},{"url":"https://www.exploit-db.com/exploits/46361","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://www.exploit-db.com/exploits/46362","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-7304"},{"url":"https://github.com/advisories/GHSA-jvm5-cj73-m9qg"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-7304","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-7304","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3887-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-7304","tags":["report"]},{"url":"https://launchpad.net/bugs/1813365","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2019-7304","title":"Local privilege escalation via snapd socket","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.","status":"published","published":"2019-04-23T15:57:32.649Z","modified":"2024-09-16T18:38:22.569Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:32:22.854093Z"}],"euvd":[{"id":"EUVD-2019-16848","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.","status":"published","published":"2019-04-23T15:57:32Z","modified":"2024-09-16T18:38:22Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:55:31.048035Z"}],"ghsa":[{"id":"GHSA-jvm5-cj73-m9qg","title":"Canonical snapd before version 2.37.1 incorrectly performed socket owner validation, allowing an...","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.","status":"published","published":"2022-05-24T16:44:30Z","modified":"2023-02-02T05:07:54Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-863"],"updated_at":"2026-11-02T14:52:37.024984Z"}],"nvd":[{"id":"CVE-2019-7304","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.","status":"published","published":"2019-04-23T16:29:10.797Z","modified":"2026-06-17T02:40:25.22Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-863"],"updated_at":"2026-11-02T14:05:12.471695Z"}],"osv":[{"id":"CVE-2019-7304","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.","status":"published","published":"2019-04-23T16:29:10.797Z","modified":"2026-10-24T10:30:17.673917812Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:12.675558Z"},{"id":"DEBIAN-CVE-2019-7304","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.","status":"published","published":"2019-04-23T16:29:10.797Z","modified":"2026-09-21T07:03:23.347064396Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:32.57265Z"},{"id":"UBUNTU-CVE-2019-7304","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.","status":"published","published":"2019-02-12T16:00:00Z","modified":"2026-02-04T03:16:40.53596Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high"},{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:21.741399Z"},{"id":"USN-3887-1","title":"snapd vulnerability","description":"Chris Moberly discovered that snapd versions 2.28 through 2.37 incorrectly\nvalidated and parsed the remote socket address when performing access\ncontrols on its UNIX socket. A local attacker could use this to access\nprivileged socket APIs and obtain administrator privileges. On Ubuntu\nsystems with snaps installed, snapd typically will have already\nautomatically refreshed itself to snapd 2.37.1 which is unaffected.\n","status":"published","published":"2019-02-12T16:10:22Z","modified":"2026-02-10T04:41:28Z","updated_at":"2026-11-02T16:58:14.019824Z"}]}}
