Home / Openstack / Neutron / CVE-2021-40797
CVE-2021-40797: is it exploited, and which versions of Openstack Neutron are affected and fixed?
CVE-2021-40797 is a resource not released after use vulnerability in Openstack Neutron. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: neutron before 16.4.1, neutron from 17.0.0 before 17.2.1 and neutron from 18.0.0 before 18.1.1 (GitHub advisory GHSA-cpx3-696p-3cw9). Fixed in 16.4.1, 17.2.1 and 18.1.1 (GitHub advisory GHSA-cpx3-696p-3cw9). Severity: Medium (6.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:55 UTC.
What is CVE-2021-40797?
An issue was discovered in the routes middleware in OpenStack Neutron before 16.4.1, 17.x before 17.2.1, and 18.x before 18.1.1. By making API requests involving nonexistent controllers, an authenticated user may cause the API worker to consume increasing amounts of memory, resulting in API performance degradation or denial of service.
From the CVE record by mitre, last updated August 4, 2024, 02:51 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | neutron | < 16.4.1 | 16.4.1 | GHSA-cpx3-696p-3cw9 |
| PyPI | neutron | >= 17.0.0, < 17.2.1 | 17.2.1 | GHSA-cpx3-696p-3cw9 |
| PyPI | neutron | >= 18.0.0, < 18.1.1 | 18.1.1 | GHSA-cpx3-696p-3cw9 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 25, 2024. Summary: OpenStack Neutron Denial of Service vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| openstack | neutron | before 16.4.1 | application |
| openstack | neutron | from 17.0.0 before 17.2.1 | application |
| openstack | neutron | from 18.0.0 before 18.1.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:07 UTC.
How severe is CVE-2021-40797?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD |
| Medium 4.0 | CVSS 2.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-40797 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.81% probability of exploitation activity in the next 30 days, percentile 79.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-772 Missing Release of Resource after Effective Lifetime
Where are the vendor advisories and references?
- https://launchpad.net/bugs/1942179 x_refsource_MISC
- https://security.openstack.org/ossa/OSSA-2021-006.html x_refsource_CONFIRM
- [oss-security] 20210909 [OSSA-2021-006] Neutron: Routes middleware memory leak for nonexistent controllers (CVE-2021-40797) mailing-list, x_refsource_MLIST
When was it published, and where is the official record?
- Reserved
- September 8, 2021
- Published
- September 8, 2021, 19:11 UTC
- CVE record updated
- August 4, 2024, 02:51 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 04:07 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:55 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Neutron?
- Aug 5, 2026CVE-2026-55707 OpenStack Neutron: incorrect authorization
- Jun 4, 2026CVE-2026-50266 OpenStack Neutron: incorrect authorization
- May 28, 2026CVE-2026-49299 OpenStack Neutron: incorrect authorization
- Aug 31, 2021CVE-2021-40085 Openstack Neutron: n/a
- Aug 23, 2021CVE-2021-38598 Openstack Neutron: authentication bypass by spoofing
- Apr 5, 2019CVE-2019-10876 Openstack Neutron: n/a
- Mar 13, 2019CVE-2019-9735 Openstack Neutron: exceptional condition mishandled
- Jun 17, 2016CVE-2016-5363 Openstack Neutron: n/a
Questions about CVE-2021-40797
Is CVE-2021-40797 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 1.81% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Openstack Neutron are affected by CVE-2021-40797?
neutron before 16.4.1, neutron from 17.0.0 before 17.2.1 and neutron from 18.0.0 before 18.1.1, per the GitHub advisory GHSA-cpx3-696p-3cw9. The tables above give every range the sources list.
Which version fixes CVE-2021-40797?
16.4.1, 17.2.1 and 18.1.1, per the GitHub advisory GHSA-cpx3-696p-3cw9. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-40797?
Medium (6.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-40797?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.