# CVE-2026-135844: Incomplete fix for unbounded user and group file reads in moby/sys/user

> Attackers controlling user or group files can exhaust memory or CPU in Go applications using moby/sys/user functions.

- **Severity:** Medium 5.6 (`CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Harmful if only installed:** No
- **Needs a specific call:** Yes (`ParsePasswdFile`, `GetAdditionalGroupsPath`, `LookupUser`)
- **Fix available:** Yes
- **Published:** 25 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** BELL-CVE-2026-135844, DEBIAN-CVE-2026-135844, DHI-dz34-de7g-g6jw-pzxl, UBUNTU-CVE-2026-135844

## What is CVE-2026-135844?

CVE-2026-135844 is a medium-severity denial of service vulnerability in Docker Engine, published on 25 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

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.

Weakness: CWE-770 (Allocation of Resources Without Limits or Throttling)

## Which versions are affected by CVE-2026-135844?

An affected version is only exploitable if your software calls ParsePasswdFile, GetAdditionalGroupsPath or LookupUser. Many projects that include it are not exposed.


## How do I fix CVE-2026-135844?

Upgrade Docker Engine to 0.5.1 or later. The advisory says that version fixes it.

## Is CVE-2026-135844 being exploited?

There is no known exploitation of CVE-2026-135844 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-135844 and fix it if it is affected.

What it is: CVE-2026-135844 is a medium-severity denial of service vulnerability in Docker Engine, published on 25 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-135844 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software calls ParsePasswdFile, GetAdditionalGroupsPath or LookupUser. Many projects that include it are not exposed.

Affected product: Docker Engine. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
   If an affected version is present, also search the code for calls to ParsePasswdFile, GetAdditionalGroupsPath or LookupUser and report whether any exist.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-135844/ (Markdown: https://insights.sbomify.com/CVE-2026-135844/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-135844
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-135844
- OSV: https://osv.dev/vulnerability/CVE-2026-135844

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-135844/
Summaries are generated and may contain mistakes; the official description above is the record.
