Get a Demo
Under Attack?
Illustration depicting a Docker security advisory marked as CVE-2024-41110. Several buoy-like structures with the Docker logo float on a blue ocean. There are waves and a warning sign above the text.

CVE-2024-41110: Docker Security Advisory on Critical Update for Docker Engine – AuthZ Plugin Bypass

Moshe Hassan July 30, 2024

CVE-2024-41110: Docker Security Advisory on Critical Update for Docker Engine – AuthZ Plugin Bypass

Docker has released crucial updates addressing a critical vulnerability in Docker Engine that could allow attackers to bypass authorization plugins (AuthZ). This issue has a low likelihood of being exploited, but all Docker installations need to upgrade to the latest versions immediately. Docker EE v19.03.x and all versions of Mirantis Container Runtime are not affected.

CVE-2024-41110: AuthZ Plugin Bypass and Privilege Escalation

What is the issue? An attacker can exploit this vulnerability using an API request with Content-Length set to 0. This causes the Docker daemon to forward the request without the body to the AuthZ plugin, potentially allowing unauthorized actions.

Severity: Critical (CVSS score: 10.0)

Impact: Unauthorized users could escalate privileges, gaining access to sensitive assets such as cloud tokens, Kubernetes service accounts, and other privileged identities, leading to unauthorized control over critical infrastructure.

Affected Versions

Affected VersionsPatched Versions
<= v19.03.15> v19.03.15
<= v20.10.27> v20.10.27
<= v23.0.14> v23.0.14
<= v24.0.9> v24.0.9
<= v25.0.5> v25.0.5
<= v26.0.2> v26.0.2
<= v26.1.4> v26.1.4
<= v27.0.3> v27.0.3
<= v27.1.0> v27.1.0

Who is Impacted?

  • Impacted Users: Docker Engine users (v19.03.x and later) who rely on AuthZ plugins for access control.
  • Not Impacted Users: Those who do not use AuthZ plugins or use Mirantis Container Runtime.

Impact on Docker Desktop

  • Versions: Up to v4.32.0 are affected.
  • Exploitation: Requires access to the Docker API, typically local access unless the Docker daemon is insecurely exposed over TCP, the default configuration doesn’t include AuthZ plugins by default.
  • Privilege Escalation: Limited to Docker Desktop VM, not the host.
  • Patch: Included in Docker Desktop v4.33.

Patches and Remediation Steps

  • Docker-CE v27.1.1: Contains patches to fix the vulnerability.
  • Patches are merged into master, 19.0, 20.0, 23.0, 24.0, 25.0, 26.0, and 26.1 branches.

Immediate Actions:

  1. Update Docker Engine: Ensure you are running the most recent patched version.
  2. Mitigation if unable to update immediately:
    • Avoid using AuthZ plugins.
    • Restrict Docker API access to trusted parties, following the principle of least privilege.

Code Snippet

To understand the potential exploitation, consider the following example where an attacker might send an API request with Content-Length set to 0:

import requests

url = 'http://docker-daemon:2375/containers/create'
headers = {'Content-Type': 'application/json', 'Content-Length': '0'}
response = requests.post(url, headers=headers)

print(response.status_code)
print(response.text)

In this scenario, the Docker daemon forwards the request to the AuthZ plugin without the body, possibly bypassing the intended authorization checks.

How Upwind Protects Against Docker Vulnerabilities

AD_4nXdyOJxAslMC9sUo3mCSCl8cP7Q8bySGe6NLvKYlkTC_LhnDMk2GOdfMY_u3lffxDdPNEYfpPg8rYe1TV0k-YlX_eA61U1R8V_4PIyIx5uFmbCpvxeUnLvedFEYj7Fi5mE9iHqadXJD6WPTLZ4CLKMyKRsSD?key=sAVTOcpKx954lGYsnwEjtQ

Upwind Cloud Security Platform offers several solutions to mitigate Docker vulnerabilities:

  1. Locate Vulnerable Packages: Use Upwind’s SBOM explorer to search and identify vulnerable Docker Engine packages.
  2. View Resource Impact: Identify all resources affected by CVE-2024-41110, including cloud accounts, clusters, pods, namespaces, VMs, and resources.
  3. Prioritize At-Risk Resources: Assess and prioritize the impact on your environment, focusing on resources with additional risk factors such as internet exposure, database connections, secrets, or sensitive data.
  4. Prioritize Package Upgrades: Generate a list of vulnerable resources that should be prioritized for updates using the recommended fixes.

Get Further Assistance

If you need further assistance with protecting your environment from CVE-2024-41110, you can reach out to an Upwind specialist directly at [email protected].

Contents

Further Reading

Blue-agent-blog

Introducing the Upwind Blue Agent: Autonomous Threat Investigation for the SOC

We’re excited to announce that the Upwind Blue Agent is now available in Beta. Blue is an AI-powered SOC investigator that autonomously investigates Upwind Threat Stories end to end. It gathers and correlates security context across the customer environment, evaluates the available evidence, and delivers one of three clear verdicts: Each verdict includes supporting reasoning…
AI-will-make-software-more-secure

AI Will Make Software More Secure. The Transition Won’t Be Pretty

I believe AI is going to make us much more secure. But probably not tomorrow. In fact, I think the next two years may be exactly the opposite: attackers will have the upper hand before defenders eventually turn the economics of cybersecurity in their favor. For decades, we have built software with vulnerabilities and then…
Vulnerability Management

Vulnerability Management Requires Real-Time Intelligence

Security teams aren't short on data. But they’re often short on context and time. The average vulnerability management program is buried in alerts, running on scan results that are hours or days old, and facing both savvy and unskilled attackers that can leverage AI to develop sophisticated exploits in minutes. That combination is why backlogs…
Add the Upwind RSS Feed to Slack
Connect the Upwind RSS Feed to your Slack.
Follow the how-to here.
Threat RSS
Add the Upwind RSS Feed to Slack
Connect the Upwind RSS Feed to your Slack.
Follow the how-to here.
Main RSS