Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cri-o/cri-o
  4. ›
  5. GMS-2022-9008

GMS-2022-9008: CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation

December 29, 2022

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

References

  • github.com/advisories/GHSA-cm9x-c3rh-7rc4
  • github.com/cri-o/cri-o/pull/6450
  • github.com/cri-o/cri-o/security/advisories/GHSA-cm9x-c3rh-7rc4

Code Behaviors & Features

Detect and mitigate GMS-2022-9008 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.26.0

Fixed versions

  • v1.26.0

Solution

Upgrade to version 1.26.0 or above.

Source file

go/github.com/cri-o/cri-o/GMS-2022-9008.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.