← Vulnerability feed

Vulnerability record · CVE-2019-7304 · published 23 April 2019

CVE-2019-7304: Canonical snapd socket owner validation flaw allows root command execution

Canonical · Snapd

Canonical snapd before 2.37.1 incorrectly validated socket ownership, letting an attacker run arbitrary commands as root. The flaw is an authorization error (CWE-863) in a service that ships with Ubuntu, so any host running an affected snapd build is exposed. It matters because it yields full root compromise with no credentials required.

9.8 CVSS 3.1 Critical EPSS 61% · top 0.9% CWE-863 · Incorrect authorization
9.8CVSS 3.1 base score, v2 10.0
61%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
6References, 4 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

critical priorityCVSS 9.8 with no authentication or interaction required, public exploit code available, and very high EPSS probability make this an urgent root-compromise risk.

What it is

Canonical snapd before 2.37.1 incorrectly validated socket ownership, letting an attacker run arbitrary commands as root. The flaw is an authorization error (CWE-863) in a service that ships with Ubuntu, so any host running an affected snapd build is exposed. It matters because it yields full root compromise with no credentials required.

Impact

An attacker gains arbitrary command execution as root, giving complete control of the host, including data access, persistence and further lateral movement.

Attack surface

Reachable over the network per the CVSS vector (AV:N, PR:N, UI:N), meaning no authentication and no user interaction are needed. The description does not detail the exact socket interface, so the precise entry point is not specified in the record.

Exploitation

Public exploit code exists in Exploit-DB (references 46361 and 46362), and EPSS is 0.60813 (99.1st percentile), indicating high likelihood of exploitation. CISA KEV does not list it.

What to do

  • Upgrade snapd to 2.37.1 or later, or apply the Ubuntu security update from USN-3887-1.
  • Where immediate patching is not possible, restrict network access to snapd's socket and management interfaces to trusted local administration only.
  • Audit hosts for snapd versions below 2.37.1 and prioritize internet-facing or multi-tenant systems.
  • Monitor for unexpected root-level process creation or snapd-related activity after patch deployment.

Detection

  • Alert on snapd processes spawning shells or unexpected child processes running as root.
  • Monitor for connections to snapd sockets from non-local or untrusted sources.
  • Hunt for known Exploit-DB 46361/46362 payload patterns or related command lines in process telemetry.
  • Track snapd version inventory and flag any host still below 2.37.1.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://usn.ubuntu.com/3887-1/ Vendor Advisory
https://www.exploit-db.com/exploits/46361 ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/46362 ExploitThird Party AdvisoryVDB Entry
https://usn.ubuntu.com/3887-1/ Vendor Advisory
https://www.exploit-db.com/exploits/46361 ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/46362 ExploitThird Party AdvisoryVDB Entry

Track CVE-2019-7304 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2020-11651SaltStack Salt master authentication bypass in ClearFuncsSaltStack Salt before 2019.2.4 and 3000 before 3000.2 fails to properly validate method calls in the salt-master ClearFuncs class, allowing remote un…KEVEPSS 97%analysed9.8CVE-2020-7247OpenSMTPD MAIL FROM command injection allows remote root code executionOpenSMTPD 6.6, as shipped in OpenBSD 6.6 and other products, mishandles input validation in smtp_mailaddr in smtp_session.c, returning an incorrect v…KEVEPSS 99%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2019-16928Exim heap buffer overflow in string_vformat via long EHLO commandExim 4.92 through 4.92.2 contains a heap-based buffer overflow in string_vformat in string.c triggered by a long EHLO command, allowing remote code e…KEVEPSS 42%analysed9.8CVE-2019-10149Exim MTA improper recipient validation leads to remote command executionExim versions 4.87 through 4.91 fail to properly validate recipient addresses in the deliver_message() function in /src/deliver.c, allowing command i…KEVEPSS 100%analysed9.8CVE-2018-6789Exim SMTP base64d buffer overflow allows remote code executionExim before 4.90.1 contains a buffer overflow in the base64d function of its SMTP listener. A handcrafted message can trigger the overflow, and the f…KEVEPSS 82%analysed9.8CVE-2016-8735Apache Tomcat JmxRemoteLifecycleListener remote code executionApache Tomcat's JmxRemoteLifecycleListener was not updated to match the Oracle CVE-2016-3427 credential-type fix, leaving a deserialization weakness …KEVEPSS 90%analysed9.8CVE-2016-3427Oracle Java SE JMX Improper Access Control VulnerabilityCVE-2016-3427 is an unspecified vulnerability in Oracle Java SE 6u113, 7u99, 8u77, Java SE Embedded 8u77, and JRockit R28.3.9, reached through vector…KEVEPSS 92%analysed

Source: NIST National Vulnerability Database (record CVE-2019-7304), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.