CVE-2026-135844 in Docker Engineinfo

Summary

by MITRE • 11/25/2026

The fix for CVE-2026-61801 added file type and size checks when parsing user and group files in github.com/moby/sys/user, but did not apply them consistently across all parsing and lookup functions. ParsePasswdFile, ParsePasswdFileFilter, GetAdditionalGroupsPath, ParseSubIDFile, ParseSubIDFileFilter, ParseIDMapFile, ParseIDMapFileFilter, LookupUser, LookupUid, LookupGroup and LookupGid could still read large or unbounded files. An attacker who controls the contents of a user or group file processed by an affected application, such as /etc/passwd or /etc/group from a container image, can cause excessive memory or CPU consumption, resulting in a denial of service. Exploitation depends on how the consuming application uses the affected functions. Fixed in v0.5.1 by enforcing the 10 MiB read limit in all affected functions. Docker Engine 29.10.1 includes the fix.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified as CVE-2026-61801 represents a significant implementation flaw within the github.com/moby/sys/user library, which is widely utilized by containerization platforms such as Docker and Kubernetes for managing user and group identity mappings. The core issue stems from an incomplete remediation of a previous security fix that was intended to prevent resource exhaustion attacks during file parsing operations. While earlier patches introduced checks for file type and size limits when processing standard Unix password and group files, these safeguards were not uniformly applied across all functions responsible for reading and validating user identity data. This inconsistency leaves several critical code paths exposed to potential abuse by malicious actors who can influence the content of system configuration files accessed by vulnerable applications.

The technical flaw lies in the selective enforcement of input validation constraints within specific parsing routines. Functions such as ParsePasswdFile, ParseSubIDFile, and LookupUser were updated to enforce a maximum read limit, typically set at ten megabytes, to mitigate against excessively large inputs. However, other functions including GetAdditionalGroupsPath, ParseIDMapFileFilter, LookupUid, and LookupGid remain without these protective boundaries. When an application invokes any of the unpatched functions with a user-controlled file path pointing to a maliciously crafted input source, the system will attempt to read the entire contents into memory without restriction. This behavior directly contradicts the principle of least privilege regarding resource consumption and fails to account for the potential volume of data that can be injected by an attacker controlling local filesystems or container image layers.

The operational impact of this vulnerability is primarily centered on denial of service through resource exhaustion. An adversary who has write access to a user configuration file, such as /etc/passwd or /etc/group within a container environment, or controls the contents of subuid and subgid files used for rootless containers, can craft inputs that are arbitrarily large. Upon processing these files using the affected functions, the application will consume excessive amounts of central processing unit time and random access memory proportional to the size of the input file. In cloud-native environments where resources are often shared or tightly allocated, this unbounded consumption can lead to container crashes, host system instability, or cascading failures across dependent services, effectively rendering the affected infrastructure unavailable to legitimate users.

This vulnerability aligns with CWE-400, which describes Uncontrolled Resource Consumption, as well as CWE-789, which pertains to Memory Exposure due to improper limit enforcement on data structures. From a threat modeling perspective consistent with MITRE ATT&CK techniques such as T1496 Network Service Scanning or more specifically resource exhaustion variants like T1499 Endpoint Denial of Service, the attack vector relies on manipulating local file inputs rather than network-based exploitation. The severity is further compounded by the fact that these functions are fundamental to identity resolution in container runtimes, meaning they are frequently invoked during routine operations such as starting containers or executing commands within them.

Mitigation strategies must focus on ensuring consistent application of input validation across all code paths involved in parsing user and group data. For users relying on open-source components, the primary remediation is upgrading to version 0.5.1 of github.com/moby/sys/user or later, where the ten megabyte read limit has been uniformly enforced across all identified functions including ParsePasswdFileFilter, LookupGroup, and related utilities. Docker Engine versions starting from 29.10.1 incorporate this corrected library and should be prioritized for update in production environments. Additionally, administrators should implement strict file permission controls on /etc/passwd, /etc/group, and associated subuid/subgid files to prevent unauthorized modification by container processes or compromised workloads. Implementing resource quotas at the operating system level can also provide a secondary layer of defense against memory exhaustion attacks stemming from such vulnerabilities.

Responsible

Docker

Reservation

11/24/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00287

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!