CVE-2024-41110
Moby authz zero length regression
En resumen
Docker Engine tiene una vulnerabilidad donde solicitudes API especialmente construidas pueden eludir plugins de autorización omitiendo el cuerpo de la solicitud/respuesta, permitiendo acciones no autorizadas que deberían haber sido denegadas.
Detalle técnico
Un atacante puede crear solicitudes API que hagan que el daemon Docker reenvíe solicitudes a plugins AuthZ sin el contenido del cuerpo (CWE-187, CWE-444), permitiendo que plugins que dependen de inspección del cuerpo para decisiones de control de acceso autoricen incorrectamente operaciones privilegiadas (CWE-863). Esta regresión afecta versiones de docker-ce anteriores a 27.1.1 en múltiples ramas de lanzamiento debido a que una corrección anterior de 2018 no fue propagada.
Resumen generado y traducido por IA a partir de la descripción oficial.
Moby is an open-source project created by Docker for software containerization. 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.
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.
docker-ce v27.1.1 containes patches to fix the vulnerability. Patches have also been merged into the master, 19.03, 20.0, 23.0, 24.0, 25.0, 26.0, and 26.1 release branches. If one is unable to upgrade immediately, avoid using AuthZ plugins and/or restrict access to the Docker API to trusted parties, following the principle of least privilege.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
⚠ Recursos públicos, para evaluar la exposición de sistemas que controlas o estás autorizado a probar. Prueba solo con autorización.