GHSA-v23v-6jw2-98fq CVE-2024-41110 GO-2024-3005
Authz zero length regression
- Severity
- 0.0 / 10
- Critical · CVSS 4.0
- Exploit chance (EPSS)
- 16.50%
- Chance of exploitation in the next 30 days. Higher than 96.99% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-187 Partial String Comparison
- Fix
- Available
- 2 packages have a fixed version
Description
A security vulnerability has been detected in certain versions of Docker Engine, which could allow an attacker to bypass authorization plugins (AuthZ) under specific circumstances. The base likelihood of this being exploited is low. This advisory outlines the issue, identifies the affected versions, and provides remediation steps for impacted users.
Impact
Using a specially-crafted API request, an Engine API client could make the daemon forward the request or response to an authorization plugin without the body. In certain circumstances, the authorization plugin may allow a request which it would have otherwise denied if the body had been forwarded to it.
A security issue was discovered In 2018, where an attacker could bypass AuthZ plugins using a specially crafted API request. This could lead to unauthorized actions, including privilege escalation. Although this issue was fixed in Docker Engine v18.09.1 in January 2019, the fix was not carried forward to later major versions, resulting in a regression. Anyone who depends on authorization plugins that introspect the request and/or response body to make access control decisions is potentially impacted.
Docker EE v19.03.x and all versions of Mirantis Container Runtime are not vulnerable.
Vulnerability details
- AuthZ bypass and privilege escalation: An attacker could exploit a bypass using an API request with Content-Length set to 0, causing the Docker daemon to forward the request without the body to the AuthZ plugin, which might approve the request incorrectly.
- Initial fix: The issue was fixed in Docker Engine v18.09.1 January 2019..
- Regression: The fix was not included in Docker Engine v19.03 or newer versions. This was identified in April 2024 and patches were released for the affected versions on July 23, 2024. The issue was assigned CVE-2024-41110.
Patches
- docker-ce v27.1.1 containes patches to fix the vulnerability.
- Patches have also been merged into the master, 19.0, 20.0, 23.0, 24.0, 25.0, 26.0, and 26.1 release branches.
Remediation steps
- If you are running an affected version, update to the most recent patched version.
- Mitigation if unable to update immediately:
- Avoid using AuthZ plugins.
- Restrict access to the Docker API to trusted parties, following the principle of least privilege.
References
Affected versions
Go
| Package | Vulnerable | Fixed in |
|---|---|---|
| github.com/docker/docker | >= 19.03.0, < 23.0.15 |
23.0.15 |
| github.com/docker/docker | >= 26.0.0, < 26.1.5 |
26.1.5 |
| github.com/docker/docker | >= 27.0.0, < 27.1.1 |
27.1.1 |
| github.com/docker/docker | >= 24.0.0, < 25.0.6 |
25.0.6 |
| github.com/docker/docker | >= 20.10.0+incompatible, < 25.0.6+incompatible>= 26.0.0+incompatible, < 26.1.5+incompatible>= 27.0.0+incompatible, < 27.1.1+incompatible |
25.0.6+incompatible26.1.5+incompatible27.1.1+incompatible |
| github.com/moby/moby | >= 20.10.0+incompatible, < 25.0.6+incompatible>= 26.0.0+incompatible, < 26.1.5+incompatible>= 27.0.0+incompatible, < 27.1.1+incompatible |
25.0.6+incompatible26.1.5+incompatible27.1.1+incompatible |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
github.com/docker/docker Go → 23.0.15
- go
go get github.com/docker/docker@v23.0.15 && go mod tidy
github.com/moby/moby Go → 27.1.1+incompatible
- go
go get github.com/moby/moby@v27.1.1+incompatible && go mod tidy
Severity breakdown
CVSS 4.0 0.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- None
- Confidentiality (vulnerable system)
- High
- Integrity (vulnerable system)
- High
- Availability (vulnerable system)
- High
- Confidentiality (subsequent systems)
- High
- Integrity (subsequent systems)
- High
- Availability (subsequent systems)
- High
CVSS 3.1 9.9
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Weakness
CWE-187: Partial String Comparison
The product performs a comparison that only examines a portion of a factor before determining whether there is a match, such as a substring, leading to resultant weaknesses.
How to prevent it
- Testing: Thoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.
References
Advisories
Packages
Other links
- github.com/moby/moby/security/advisories/GHSA-v23v-6jw2-98fq
- github.com/moby/moby/commit/411e817ddf710ff8e08fa193da80cb78af708191
- github.com/moby/moby/commit/42f40b1d6dd7562342f832b9cd2adf9e668eeb76
- github.com/moby/moby/commit/65cc597cea28cdc25bea3b8a86384b4251872919
- github.com/moby/moby/commit/852759a7df454cbf88db4e954c919becd48faa9b
- github.com/moby/moby/commit/a31260625655cff9ae226b51757915e275e304b0
- github.com/moby/moby/commit/a79fabbfe84117696a19671f4aa88b82d0f64fc1
- github.com/moby/moby/commit/ae160b4edddb72ef4bd71f66b975a1a1cc434f00
- github.com/moby/moby/commit/ae2b3666c517c96cbc2adf1af5591a6b00d4ec0f
- github.com/moby/moby/commit/cc13f952511154a2866bddbb7dddebfe9e83b801
- github.com/moby/moby/commit/fc274cd2ff4cf3b48c91697fb327dd1fb95588fb
- docker.com/blog/docker-security-advisory-docker-engine-authz-plugin
- lists.debian.org/debian-lts-announce/2024/10/msg00009.html
- security.netapp.com/advisory/ntap-20240802-0001
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-rg2x-37c3-w2rh Docker: Race condition in docker cp allows bind mount redirection to host path | High | Also affects github.com/docker/docker |
| GHSA-vp62-88p7-qqf5 Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap | Medium | Also affects github.com/docker/docker |
| GHSA-x86f-5xw2-fm2r Docker: `PUT /containers/{id}/archive` executes container binary on the host | High | Also affects github.com/docker/docker |
| GO-2026-4887 Moby has AuthZ plugin bypass when provided oversized request bodies | High | Also affects github.com/docker/docker |
| GHSA-pxq6-2prw-chj9 Moby has an Off-by-one error in its plugin privilege validation | High | Also affects github.com/docker/docker |
| GHSA-4vq8-7jfc-9cvp Moby firewalld reload removes bridge network isolation | Medium | Also affects github.com/docker/docker |
| GHSA-x4rx-4gw3-53p4 Moby firewalld reload makes published container ports accessible from remote hosts | Medium | Also affects github.com/docker/docker |
| GHSA-xmmx-7jpf-fx42 Moby (Docker Engine) is vulnerable to Ambiguous OCI manifest parsing | Low | Also affects github.com/docker/docker |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor