CVE-2021-20319: Coreos installer Coreos-installer Improperly Verifies GPG Signature Vulnerability
HIGHCVE-2021-20319 is a HIGH (CVSS 7.8) coreos-installer improperly verifies gpg signature vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Coreos installer libraries in the crates.io ecosystem. The issue involves coreos-installer improperly verifies gpg signature when decompressing gzipped artifact. Remediation is available by upgrading affected packages to version 0.10.1.
CVE-2021-20319 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-20319
To remediate this vulnerability, upgrade all affected Coreos installer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade coreos-installer to 0.10.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for coreos-installer
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-20319, inspect your project dependencies for Coreos installer:
inspect dependencies for coreos-installer
Analyze the terminal output to locate any version of Coreos installer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Coreos installer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-20319 Affected Coreos installer Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
coreos-installer
|
crates.io |
< 0.10.1
|
0.10.1
|
References
Frequently Asked Questions
What is CVE-2021-20319?
Which Coreos installer versions are affected?
What version fixes CVE-2021-20319?
Is coreos-installer affected?
What is the CVSS score of CVE-2021-20319?
What CWE is associated with CVE-2021-20319?
How can I check crates.io dependencies for CVE-2021-20319?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3r3g-g73x-g593",
"modified" : "2025-12-22T16:27:06Z",
"published" : "2021-10-12T16:06:47Z",
"aliases" : [ "CVE-2021-20319" ],
"summary" : "coreos-installer improperly verifies GPG signature when decompressing gzipped artifact",
"details" : "### Impact\n\ncoreos-installer fails to correctly verify GPG signatures when decompressing gzip-compressed artifacts. This allows bypass of signature verification in cases where coreos-installer decompresses a downloaded OS image, allowing an attacker who can modify the OS image to compromise a newly-installed system.\n\nDefault installations from ISO or PXE media in Fedora CoreOS, RHEL CoreOS, and RHEL for Edge are **not** affected, as coreos-installer installs from an OS image shipped as part of the install media.\n\nThese flows are affected:\n\n1. Installing with `--image-file`, `--image-url`, or `coreos.inst.image_url`. For example, if a user has a local mirror of installation images, an attacker could replace an image with a gzip-compressed alternative (even if the file extension is `.xz`). The result:\n\n ```\n $ coreos-installer install --image-url http://localhost:8080/image.xz /dev/loop0\n Downloading image from http://localhost:8080/image.xz\n Downloading signature from http://localhost:8080/image.xz.sig\n > Read disk 749.9 MiB/749.9 MiB (100%)\n gpg: Signature made Mon 20 Sep 2021 02:41:50 PM EDT\n gpg: using RSA key 8C5BA6990BDB26E19F2A1A801161AE6945719A39\n gpg: BAD signature from \"Fedora (34) <fedora-34-primary@fedoraproject.org>\" [ultimate]\n Install complete.\n ```\n\n Notice that GPG reports a bad signature, but coreos-installer continues anyway. Automation that relies on coreos-installer's exit status will not notice either.\n\n2. `coreos-installer download --decompress --image-url`:\n\n ```\n $ coreos-installer download --decompress --image-url http://localhost:8080/image.xz\n > Read disk 749.9 MiB/749.9 MiB (100%)\n gpg: Signature made Mon 20 Sep 2021 02:41:50 PM EDT\n gpg: using RSA key 8C5BA6990BDB26E19F2A1A801161AE6945719A39\n gpg: BAD signature from \"Fedora (34) <fedora-34-primary@fedoraproject.org>\" [ultimate]\n ./image\n ```\n\n Again, coreos-installer reports success.\n\n3. Installing with default parameters, when **not** installing from the image built into live ISO or PXE media, if the hosting service is compromised or if an active attacker gains control of the HTTPS response.\n\n4. `coreos-installer download --decompress` if the hosting service is compromised or if an active attacker gains control of the HTTPS response.\n\n### Patches\n\nThe vulnerability is [fixed](https://github.com/coreos/coreos-installer/pull/659) in coreos-installer 0.10.1.\n\n### Workarounds\n\nFor `coreos-installer download`, do not use the `-d` or `--decompress` options.\n\nFor `coreos-installer install`, manually inspect the stderr output. If `BAD signature` appears, do not boot from the target disk. Note, however, that some OS services may have already accessed data on the compromised disk.\n\n### References\n\nFor more information, see [PR 655](https://github.com/coreos/coreos-installer/pull/655).\n\n### For more information\n\nIf you have any questions or comments about this advisory, [open an issue in coreos-installer](https://github.com/coreos/coreos-installer/issues/new/choose) or email the CoreOS [development mailing list](https://lists.fedoraproject.org/archives/list/coreos@lists.fedoraproject.org/).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "coreos-installer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.10.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/coreos/coreos-installer/security/advisories/GHSA-3r3g-g73x-g593"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-20319"
}, {
"type" : "WEB",
"url" : "https://github.com/coreos/coreos-installer/pull/655"
}, {
"type" : "WEB",
"url" : "https://github.com/coreos/coreos-installer/pull/659/commits/ad243c6f0eff2835b2da56ca5f7f33af76253c89"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2011862"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/coreos/coreos-installer"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2022-0103.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-10-11T21:17:04Z",
"nvd_published_at" : "2022-03-04T18:15:00Z"
}
}