CVE-2020-27352

When generating the systemd service units for the docker snap (and other similar snaps), snapd does not specify Delegate=yes - as a result systemd will move…

Critical · published June 21, 2024

CVSS v3.1
9.3
EPSS
0%
Percentile
16.3
In the wild
Unconfirmed
What it is

🚨 A tiny oversight in Docker's snap setup could lead to your containers gaining unintended powers! 🔥 Think of it as a fancy restaurant where the waitstaff accidentally hands over the chef's keys to the kitchen — suddenly, diners could access all the secret recipes without a reservation. If the systemd service units aren't properly locked down, a container could sneak into the main process group and gain privileges it shouldn't have! This flaw could allow processes in containers to operate outside their intended boundaries, possibly accessing sensitive resources or executing commands with elevated privileges. An attacker could exploit this to manipulate the containers, potentially leading to a complete compromise of the system!

Put simply

Think of it as a fancy restaurant where the waitstaff accidentally hands over the chef's keys to the kitchen — suddenly, diners could access all the secret recipes without a reservation. If the systemd service units aren't properly locked down, a container could sneak into the main process group and gain privileges it shouldn't have! The CVE-2020-27352 vulnerability arises because snapd fails to include 'Delegate=yes' in the systemd service units for Docker snaps, causing processes to be reassigned to the main daemon's cgroup during unit reloads. This mishap can unintentionally elevate container privileges.

What to do

This flaw could allow processes in containers to operate outside their intended boundaries, possibly accessing sensitive resources or executing commands with elevated privileges. An attacker could exploit this to manipulate the containers, potentially leading to a complete compromise of the system! To secure your systems, update the snapd and associated Docker packages to the latest version. Ensure that 'Delegate=yes' is specified in your service unit files, and regularly review your container configurations for proper privilege settings. You can tackle this! Follow these steps and reinforce your containers' security in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.3 · CRITICAL
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00256 · 16.3th percentile
Published
2024-06-21T20:06Z
EPSS history
Timeline
  • 21 JUN 20:06Z
    When generating the systemd service units for the docker snap (and other similar snaps), snapd does not specify Delegate=yes - as a result systemd will move…
    cvelistv5