CVE-2021-39231
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn Apache Ozone versions prior to 1.2.0, Various internal server-to-server RPC endpoints are available for connections, making it possible for an attacker to download raw data from Datanode and Ozone manager and modify Ratis replication configuration.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceIn Apache Ozone versions prior to 1.2.0, internal server-to-server RPC endpoints lack proper authentication/authorization controls, allowing unauthenticated attackers to access these internal interfaces. This enables both data exfiltration from Datanodes and Ozone Manager, as well as modification of Ratis replication configuration, potentially leading to data theft or manipulation of data redundancy.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 1.2.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine installed Apache Ozone versionRun 'ozone version' or check the ozone-common or ozone-hdfs-*.jar file version in /usr/local/ozone/lib/ or /opt/ozone/lib/, or query the Ozone Manager REST API at /jmx?qry=Hadoop:service=OzoneManager,name=OzoneManagerInfoAffected if The version is below 1.2.0 (for example, 1.1.0, 1.1.1, 1.0.0, etc.)
-
Identify exposed RPC service portsCheck configuration files (ozone-site.xml) for properties ozone.datanode.id, hdds.datanode.port, and look for ports 9864 (Datanode), 9866 (Datanode RPC), 9867 (Datanode HTTPS), 9888 (OzoneManager), 9872 (StorageContainerManager). Use 'netstat -tlnp' or 'ss -tlnp' to list listening ports.Affected if Any of these internal RPC ports are bound to 0.0.0.0 or an external IP rather than 127.0.0.1 or an internal-only network interface
-
Verify RPC authentication configurationIn ozone-site.xml, inspect properties: hdds.datanode.authentication.method, hdds.datanode.kerberos.principal, ozone.security.enabled, and ozone.security.kerberos.enabled. Also check if 'hadoop.security.authentication' is set to 'simple' instead of 'kerberos'.Affected if Authentication is disabled (value is 'simple' or property is missing/false) on Datanode or OzoneManager RPC services
-
Check Ratis replication configuration accessibilityInspect ozone-site.xml for 'hdds.ratis.enabled' and verify whether the Ratis RPC port (usually 9858 or 9862) is exposed externally via netstat/ss. Also check if 'hdds.ratis.snapshot.enabled' is configured without authentication.Affected if Ratis is enabled and its RPC port is bound to a publicly accessible interface (0.0.0.0)
-
Confirm network accessibility of internal interfacesFrom an external or untrusted host, attempt to reach the Datanode RPC port (9866) and OzoneManager port (9888) using 'telnet <target> 9866' or 'nc -zv <target> 9888'. Alternatively, review firewall rules using 'iptables -L' or 'firewall-cmd --list-all'.Affected if Internal RPC ports are reachable from untrusted networks or the firewall permits unrestricted access to these ports
You are affected if Apache Ozone version is below 1.2.0 AND internal RPC ports are accessible from untrusted networks, or if RPC authentication is disabled or misconfigured in ozone-site.xml.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped1.2.0
Upgrade Apache Ozone to version 1.2.0 or later. If immediate upgrade is not possible, restrict network access to internal RPC ports using firewall rules or network segmentation to prevent external access.
1.2.0
- 1. Inventory current Apache Ozone deployment and confirm the exact version number is below 1.2.0
- 2. Review Apache Ozone 1.2.0 release notes and upgrade documentation for any migration requirements
- 3. Create a backup of all Ozone configuration files (ozone-site.xml, core-site.xml, and any custom configs)
- 4. If running in a cluster, plan for a rolling upgrade following Apache Ozone upgrade procedures
- 5. Stop Ozone services (Ozone Manager, Datanode, Storage Container Manager) in the correct order
- 6. Upgrade Apache Ozone to version 1.2.0 or later
- 7. Restore configuration files to the upgraded installation
- 8. Start Ozone services in the correct order (Datanodes first, then Storage Container Manager, then Ozone Manager)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation8.0 h
- Implementation24.0 h
- Testing12.0 h
- Review / QA8.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $14,656.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-39231 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-39231 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data