6.0medium
Cri-o: cri-o: unvalidated image env var causes daemon crash
- Severity
- 6.0medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
A flaw was found in CRI-O's container-creation environment-variable handling (`mergeEnvs` in `server/utils.go`, consumed by `setupContainerEnvironmentAndWorkdir` in `server/container_create.go`). When a `CreateContainer` request supplies a `nil` CRI `Envs` field, CRI-O falls back to using the target OCI image's `config.Env` entries unfiltered, in contrast to the normal merge path, which validates each entry for a `key=value` form before use. An OCI image whose `config.Env` contains an entry with no `=` character (e.g. a bare `NOEQUALS` string) causes CRI-O to split that entry into a single-element slice and then index its second element, which is out of range. This triggers an unrecovered Go runtime panic in the `crio` daemon process, crashing it and terminating the container-runtime service for all workloads on the node until it is restarted.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cri-o | before 1.34.11, before 1.35.7, before 1.36.3 | CVE List |
| openshift/ose-rhel-coreos-8 | Not specified | CVE List |
| openshift/ose-rhel-coreos-9 | Not specified | CVE List |
| rhcos | Not specified | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
A flaw was found in CRI-O's container-creation environment-variable handling (`mergeEnvs` in `server/utils.go`, consumed by `setupContainerEnvironmentAndWorkdir` in `server/container_create.go`). When a `CreateContainer` request supplies a `nil` CRI `Envs` field, CRI-O falls back to using the target OCI image's `config.Env` entries unfiltered, in contrast to the normal merge path, which validates each entry for a `key=value` form before use. An OCI image whose `config.Env` contains an entry with no `=` character (e.g. a bare `NOEQUALS` string) causes CRI-O to split that entry into a single-element slice and then index its second element, which is out of range. This triggers an unrecovered Go runtime panic in the `crio` daemon process, crashing it and terminating the container-runtime service for all workloads on the node until it is restarted.
NVD (es)
Se encontró una falla en el manejo de variables de entorno durante la creación de contenedores de CRI-O ('mergeEnvs' en 'server/utils.go', consumido por 'setupContainerEnvironmentyWorkdir' en 'server/container_create.go'). Cuyo una solicitud 'CreateContainer' proporciona un campo 'Envs' de CRI 'nil', CRI-O recurre a usar las entradas 'config.Env' de la imagen OCI de destino sin filtrar, en contraste con la ruta de fusión normal, que valida cada entrada para un formato 'key=value' antes de su uso. Una imagen OCI cuyo 'config.Env' contiene una entrada sin el carácter '=' (por ejemplo, una cadena 'NOEQUALS' simple) hace que CRI-O divida esa entrada en un slice de un solo elemento y luego indexe su segundo elemento, lo cual está fuera de rango. Esto desencadena un pánico de tiempo de ejecución de Go no recuperado en el proceso del demonio 'crio', lo que lo bloquea y termina el servicio de tiempo de ejecución de contenedores para todas las cargas de trabajo en el nodo hasta que se reinicie.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-17113 changed 2026-11-25 | CVE Terms of Use |
| NVD | CVE-2026-17113 changed 2026-11-25 | Public domain |