# CVE-2022-4318: Cri-o: /etc/passwd tampering privesc

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2022-12-29T01:49:47.000Z
- Modified: 2026-06-17T05:20:34.713Z
- Also known as: GHSA-cm9x-c3rh-7rc4, GO-2022-1206
- Weaknesses: CWE-538, CWE-913
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

A vulnerability was found in cri-o. This issue allows the addition of arbitrary lines into /etc/passwd by use of a specially crafted environment variable.

(As written by CVE List.)

## Affected

- cri-o: no versions given (not affected: from 0:1.24.4-10.rhaos4.11.git1ed5ac5.el8 before *; from 0:1.25.2-9.rhaos4.12.git0a083f9.el9 before *)
- fence-agents: no versions given
- github.com/cri-o/cri-o (Go): before 1.26.0
- kubernetes cri-o: no versions given
- redhat openshift_container_platform_for_arm64: 4.12; 4.11
- redhat openshift_container_platform_for_linuxone: 4.12; 4.11
- redhat openshift_container_platform_for_power: 4.12; 4.11
- redhat openshift_container_platform_ibm_z_systems: 4.12; 4.11
- fedoraproject extra_packages_for_enterprise_linux: 8.0
- fedoraproject fedora: 36; 37

## Every score

- redhat: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2023:1033> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1503> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2022-4318> (third-party-advisory, vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2152703> (issue-tracking, third-party-advisory, web)
- <https://github.com/cri-o/cri-o/security/advisories/GHSA-cm9x-c3rh-7rc4> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4318> (advisory)
- <https://github.com/cri-o/cri-o/pull/6450> (fix, web)
- <https://github.com/cri-o/cri-o> (package)

## Sources

- CVE List: [CVE-2022-4318](https://www.cve.org/CVERecord?id=CVE-2022-4318), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-cm9x-c3rh-7rc4](https://github.com/advisories/GHSA-cm9x-c3rh-7rc4), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-1206](https://pkg.go.dev/vuln/GO-2022-1206), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-4318](https://nvd.nist.gov/vuln/detail/CVE-2022-4318), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4318 · Whole record: https://cve.day/CVE-2022-4318.json · Rebuilt by cve.day 2026-11-25T22:58:19.625Z
