CVE-2026-105768
apko /etc/passwd and /etc/group UID/GID truncation writes package-supplied entries as root
Mitigation
- Upgrade apko to 1.4.5 or later.
Who should check
- Anyone running chainguard-dev apko >= 0.2.0, < 1.4.5
Vulnerability facts
- Affected
- chainguard-dev apko >= 0.2.0, < 1.4.5
- Fixed in
- chainguard-dev apko 1.4.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.52% chance of exploitation in 30 days (percentile 38, 2026-11-26)
- CWE
- CWE-197
- Modified
Description
apko allows users to build and publish OCI container images built from apk packages. From version 0.2.0 to before version 1.4.5, UserEntry.Parse and GroupEntry.Parse in pkg/passwd read the UID and GID fields of /etc/passwd and /etc/group entries with strconv.Atoi and convert them to uint32 without a range check. On 64-bit platforms an out-of-range value such as 4294967296 (2^32) is truncated to 0, and negative values wrap. Because apko parses the passwd and group entries supplied by the packages it installs and writes them back into the image, an attacker who controls a package installed into the image can ship an entry that appears to declare an unprivileged UID or GID but is written into the built image as UID 0 or GID 0 (root). The truncated UID is also used when resolving the image's run-as user. This issue has been fixed in version 1.4.5.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| chainguard-dev apko | >= 0.2.0, < 1.4.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-105768. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-105768.md Affected: chainguard-dev apko >= 0.2.0, < 1.4.5 Fixed in: chainguard-dev apko 1.4.5 Steps: 1. Search this machine and project for chainguard-dev apko: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-105768 being exploited?
There is no confirmed exploitation: CVE-2026-105768 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-105768?
Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-105768?
chainguard-dev apko >= 0.2.0, < 1.4.5.
Is there a fix for CVE-2026-105768?
Yes. Fixed in chainguard-dev apko 1.4.5. Upgrade apko to 1.4.5 or later.
How do I check if I'm affected by CVE-2026-105768?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.