GHSA-cm9x-c3rh-7rc4

Suggest an improvement
Source
https://github.com/advisories/GHSA-cm9x-c3rh-7rc4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-cm9x-c3rh-7rc4/GHSA-cm9x-c3rh-7rc4.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-cm9x-c3rh-7rc4
Aliases
Published
2022-12-29T01:49:47Z
Modified
2024-08-21T16:29:14.396960Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N CVSS Calculator
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

Database specific
{
    "nvd_published_at": "2023-09-25T20:15:10Z",
    "cwe_ids": [
        "CWE-538",
        "CWE-913"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-12-29T01:49:47Z"
}
References

Affected packages

Go / github.com/cri-o/cri-o

Package

Name
github.com/cri-o/cri-o
View open source insights on deps.dev
Purl
pkg:golang/github.com/cri-o/cri-o

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.26.0