Advisory

GHSA-cm9x-c3rh-7rc4

Also known as: CVE-2022-4318, GO-2022-1206

Summary

CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation

Details

Impact
It is possible to craft an environment variable with newlines to add entries to a container's /etc/passwd. It is possible to circumvent admission validation of username/UID by adding such an entry.

Note: because the pod author is in control of the container's /etc/passwd, this is not considered a new risk factor. However, this advisory is being opened for transparency and as a way of tracking fixes.

Patches
1.26.0 will have the fix. More patches will be posted as they're available.

Workarounds
Additional security controls like SELinux should prevent any damage a container is able to do with root on the host. Using SELinux is recommended because this class of attack is already possible by manually editing the container's /etc/passwd

References

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-12-29 01:49 UTC
Modified
2024-08-21 16:28 UTC

Affected packages and fixes

github.com/cri-o/cri-o

Go · All systems

Affected

  • introduced 0, fixed 1.26.0 (semver)

Fixed versions

1.26.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences