CVE-2026-135844: Incomplete fix for unbounded user and group file reads in moby/sys/user
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 29.10.1 - Upgrade
Upgrade
moby/sys/userto a version that resolves this vulnerability.Fixed in v0.5.1
Event History
Frequently Asked Questions
Which environments are exposed to this denial-of-service issue?
Applications are exposed if they use the affected github.com/moby/sys/user parsing or lookup functions on user or group files whose contents an attacker can control. One example is processing /etc/passwd or /etc/group supplied by a container image.
What does an attacker need to exploit it?
The attacker needs control over the contents of a user or group file that the application passes to an affected function. Whether exploitation is possible depends on how the consuming application uses those functions.
What is the impact of successful exploitation?
Affected functions may read large or unbounded files, allowing excessive memory or CPU consumption. This can cause a denial of service.
Which functions require review in unpatched applications?
Review uses of ParsePasswdFile, ParsePasswdFileFilter, GetAdditionalGroupsPath, ParseSubIDFile, ParseSubIDFileFilter, ParseIDMapFile, ParseIDMapFileFilter, LookupUser, LookupUid, LookupGroup, and LookupGid when they process attacker-controlled files.
What versions include the fix?
The issue is fixed in github.com/moby/sys/user v0.5.1, which enforces a 10 MiB read limit in all affected functions. Docker Engine 29.10.1 includes the fix.