CVE-2021-40085: OpenStack Neutron dnsmasq Reconfiguration Vulnerability

neutron Updated 02 Oct 2025

Summary

31/08/2021
Yes i
High
6.5

CVE-2021-40085: An issue was discovered in OpenStack Neutron before 16.4.1, 17.x before 17.2.1, and 18.x before 18.1.1. Affects neutron across 3 version ranges.

< 16.4.1 >= 17.0.0, < 17.2.1 >= 18.0.0, < 18.1.1

Fixed in 16.4.1, 17.2.1 or 18.1.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2021-40085 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OpenStack Neutron is a networking service that provides connectivity between virtual machines (VMs) and other network resources in an OpenStack environment. It manages the networking infrastructure and provides services such as IP address allocation, routing, and security groups. Neutron uses dnsmasq, a lightweight DNS and DHCP server, to provide DHCP services for VMs. This vulnerability allows authenticated attackers to reconfigure dnsmasq by exploiting a crafted extra_dhcp_opts value.

Vulnerability Detail

The vulnerability in OpenStack Neutron allows authenticated attackers to manipulate the configuration of dnsmasq, which can have severe consequences. By providing a specially crafted extra_dhcp_opts value, attackers can modify the behavior of dnsmasq, potentially leading to unauthorized access, network disruptions, or other malicious activities. This vulnerability affects versions of Neutron before 16.4.1, 17.x before 17.2.1, and 18.x before 18.1.1.

How To Fix

Latest published version: 29.0.0 as of 22 Oct 2026

pip install --upgrade "neutron==29.0.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 16.4.1 16.4.1
    pip install --upgrade "neutron==16.4.1"
  • >= 17.0.0, < 17.2.1 17.2.1
    pip install --upgrade "neutron==17.2.1"
  • >= 18.0.0, < 18.1.1 18.1.1
    pip install --upgrade "neutron==18.1.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is highly recommended to apply the official patches or upgrade to the fixed versions mentioned above.

Conclusion

The OpenStack Neutron dnsmasq reconfiguration vulnerability (CVE-2021-40085) allows authenticated attackers to manipulate the behavior of dnsmasq, potentially leading to unauthorized access or network disruptions. It is crucial to apply the recommended patches or upgrade to the fixed versions to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for neutron →

Share this vulnerability

FAQ

OpenStack Neutron is a networking service in the OpenStack cloud platform that provides connectivity between virtual machines and other network resources.

Dnsmasq is a lightweight DNS and DHCP server used by OpenStack Neutron to provide DHCP services for virtual machines.

This vulnerability allows authenticated attackers to reconfigure dnsmasq, potentially leading to unauthorized access, network disruptions, or other malicious activities.

Versions of OpenStack Neutron before 16.4.1, 17.x before 17.2.1, and 18.x before 18.1.1 are affected by this vulnerability.

To fix this vulnerability, it is recommended to upgrade to the latest patched version of OpenStack Neutron (16.4.1, 17.2.1, or 18.1.1).

Related vulnerabilities

Recent vulnerabilities recorded for neutron.

How To Fix

Latest published version: 29.0.0 as of 22 Oct 2026

pip install --upgrade "neutron==29.0.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 16.4.1 16.4.1
    pip install --upgrade "neutron==16.4.1"
  • >= 17.0.0, < 17.2.1 17.2.1
    pip install --upgrade "neutron==17.2.1"
  • >= 18.0.0, < 18.1.1 18.1.1
    pip install --upgrade "neutron==18.1.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback