5.5medium
coreos-installer < 0.10.0 writes world-readable Ignition config to installed system
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-862g-9h5m-m3qv
Description
A flaw was found in the coreos-installer, where it writes the Ignition config to the target system with world-readable access permissions. This flaw allows a local attacker to have read access to potentially sensitive data. The highest threat from this vulnerability is to confidentiality.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| coreos-installer | Fixed in coreos-installer 0.10.0 | CVE List |
| coreos-installer (crates.io) | before 0.10.0 | GitHub Advisory Database |
| redhat coreos-installer | before 0.10.0 | NVD |
All scores
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
A flaw was found in the coreos-installer, where it writes the Ignition config to the target system with world-readable access permissions. This flaw allows a local attacker to have read access to potentially sensitive data. The highest threat from this vulnerability is to confidentiality.
GitHub Advisory Database
Impact
On systems installed with coreos-installer before 0.10.0, the user-provided Ignition config was written to /boot/ignition/config.ign with world-readable permissions, granting unprivileged users access to any secrets included in the config.
Default configurations of Fedora CoreOS and RHEL CoreOS do not include any unprivileged user accounts. In addition, instances launched from a cloud image, and systems provisioned with the ignition.config.url kernel argument, do not use the config.ign file and are unaffected.
Patches
coreos-installer 0.10.0 and later writes the Ignition config with restricted permissions.
Workarounds
On Fedora CoreOS systems installed from version 34.20210711.3.0 (stable), 34.20210711.2.0 (testing), 34.20210711.1.1 (next) and later, the /boot/ignition directory and its contents are removed after provisioning is complete. All Fedora CoreOS systems that have updated to these versions or later have automatically removed the /boot/ignition directory and no action is required.
On other systems, /boot/ignition/config.ign can be removed manually, as it is not used after provisioning is complete:
sudo mount -o remount,rw /boot
sudo rm -rf /boot/ignition
References
For more information, see https://github.com/coreos/fedora-coreos-tracker/issues/889.
For more information
If you have any questions or comments about this advisory, open an issue in coreos-installer or email the CoreOS development mailing list.
NVD (es)
Se ha encontrado un fallo en coreos-installer, que escribe la configuración de Ignition en el sistema de destino con permisos de acceso de lectura general. Este fallo permite a un atacante local tener acceso de lectura a datos potencialmente confidenciales. La mayor amenaza de esta vulnerabilidad es la confidencialidad.
References
| https://github.com/coreos/fedora-coreos-tracker/issues/889 | issue-tracking, patch, third-party-advisory, web | |
| https://github.com/coreos/coreos-installer/commit/2a36405339c87b16ed6c76e91ad5b76638fbdb0c | patch, third-party-advisory, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2018478 | issue-tracking, vendor-advisory, web | |
| https://access.redhat.com/security/cve/CVE-2021-3917 | patch, vendor-advisory, web | |
| https://github.com/coreos/coreos-installer/security/advisories/GHSA-862g-9h5m-m3qv | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-3917 | advisory | |
| https://github.com/coreos/coreos-installer | web | |
| https://github.com/coreos/coreos-installer/releases/tag/v0.10.0 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3917 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-862g-9h5m-m3qv changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-3917 changed 2026-06-17 | Public domain |