Crun
Crun incorrectly parses `crun exec` option `-u`, leading to privilege escalation
crun is an open source OCI Container Runtime fully written in C. In versions 1.19 through 1.26, the `crun exec` option `-u` (`--user`) is incorrectly parsed. The value `1` is interpreted as UID 0 and GID 0 when it should have been UID 1 and GID 0. The process thus runs with higher privileges than expected. Version 1.27 patches the issue.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by NVD · CWE-269
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
containers crun
- >= 1.19, < 1.27
Fixed in 1.27
Mitigation
Upgrade crun to 1.27 or later.
References
- Vendor advisory github.com/containers/crun/security/advisories…
- Patch github.com/containers/crun/commit/1bd7f4244699…
- Release notes github.com/containers/crun/releases/tag/1.27
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.