GHSA-cm9x-c3rh-7rc4

    Dashboard / Vulnerabilities / GHSA-cm9x-c3rh-7rc4

    GHSA-cm9x-c3rh-7rc4

    Published: 29 Dec 2022Last Modified: 21 Aug 2024

    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

    Affected packages

    Package

    Name: github.com/cri-o/cri-o

    Purl: pkg:golang/github.com/cri-o/cri-o

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.26.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-cm9x-c3rh-7rc4 | CVE-DB