CVE-2022-4318
CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation
Auswirkung
### 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
Ein Angreifer kann die Lücke mit lokalem Zugriff auf das System ausnutzen, mit einem normalen Benutzerkonto, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| go | github.com/cri-o/cri-o | < 1.26.0 | 1.26.0 |
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen |
|---|---|---|
| Fedoraproject | Extra Packages For Enterprise Linux | Version 8.0 |
| Fedoraproject | Fedora | Versionen 36, 37 |
| Kubernetes | Cri-o | Alle Versionen |
| Red Hat | Openshift Container Platform For Arm64 | Versionen 4.12, 4.11 |
| Red Hat | Openshift Container Platform For Linuxone | Versionen 4.12, 4.11 |
| Red Hat | Openshift Container Platform For Power | Versionen 4.12, 4.11 |
| Red Hat | Openshift Container Platform IBM Z Systems | Versionen 4.12, 4.11 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://access.redhat.com/errata/RHSA-2023:1033
- https://access.redhat.com/errata/RHSA-2023:1503
- https://access.redhat.com/security/cve/CVE-2022-4318
- https://bugzilla.redhat.com/show_bug.cgi?id=2152703
- https://github.com/advisories/GHSA-cm9x-c3rh-7rc4
- https://github.com/cri-o/cri-o/security/advisories/GHSA-cm9x-c3rh-7rc4
- https://github.com/cri-o/cri-o/pull/6450
- https://nvd.nist.gov/vuln/detail/CVE-2022-4318