CVE-2020-17376: Nova OpenStack Nova Live Migration Fails Vulnerability
HIGHCVE-2020-17376 is a HIGH (CVSS 8.3) openstack nova live migration fails vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Nova libraries in the PyPI ecosystem. The issue involves openstack nova live migration fails to update persistent domain xml. Remediation is available by upgrading affected packages to version 19.3.1, 20.3.1.
CVE-2020-17376 at a Glance
Security Impact
CVSS: 8.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L).
How to Fix CVE-2020-17376
To remediate this vulnerability, upgrade all affected Nova dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install nova>=19.3.1
pip install nova>=20.3.1
pip install nova>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show nova
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2020-17376, inspect your installed packages using pip:
pip show nova
Analyze the terminal output to locate any version of Nova in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 19.3.1), your application is affected.
Note: The pip show nova command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Nova, 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-2020-17376 Affected Nova Versions
3 component(s)References
Frequently Asked Questions
What is CVE-2020-17376?
Which Nova versions are affected?
What version fixes CVE-2020-17376?
Is nova affected?
What is the CVSS score of CVE-2020-17376?
What CWE is associated with CVE-2020-17376?
How can I check PyPI dependencies for CVE-2020-17376?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c7w7-9c85-4qxv",
"modified" : "2024-09-26T14:12:53Z",
"published" : "2022-05-24T17:26:41Z",
"aliases" : [ "CVE-2020-17376" ],
"summary" : "OpenStack Nova Live migration fails to update persistent domain XML",
"details" : "An issue was discovered in Guest.migrate in `virt/libvirt/guest.py` in OpenStack Nova before 19.3.1, 20.x before 20.3.1, and 21.0.0. By performing a soft reboot of an instance that has previously undergone live migration, a user may gain access to destination host devices that share the same paths as host devices previously referenced by the virtual machine on the source host. This can include block devices that map to different Cinder volumes at the destination than at the source. Only deployments allowing host-based connections (for instance, root and ephemeral devices) are affected.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "nova"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "19.3.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "nova"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "20.0.0"
}, {
"fixed" : "20.3.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "nova"
},
"versions" : [ "21.0.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-17376"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/nova/commit/1bb8ee95d4c3ddc3f607ac57526b75af1b7fbcff"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/nova/commit/2faf17995dd9daa6f0b91e44be43264e447c678d"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/nova/commit/a721ca5f510ce3c8ef24f22dac9e475b3d7651db"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/nova/commit/b9ea91d17703f5b324a50727b6503ace0f4e95eb"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/nova/commit/c438fd9a0eb1903306a53ab44e3ae80660d8a429"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openstack/nova"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/nova/PYSEC-2020-243.yaml"
}, {
"type" : "WEB",
"url" : "https://launchpad.net/bugs/1890501"
}, {
"type" : "WEB",
"url" : "https://security.openstack.org/ossa/OSSA-2020-006.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2020/08/25/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-29T10:57:39Z",
"nvd_published_at" : "2020-08-26T19:15:00Z"
}
}