CVE-2021-39235 Access mode of block tokens are not enforced
Authenticated users with read-only block tokens can perform unauthorized write operations on data blocks in Apache Ozone.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-39235?
CVE-2021-39235 is a medium-severity missing authorization vulnerability in Apache Ozone, published on 19 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
In Apache Ozone before 1.2.0, Ozone Datanode doesn't check the access mode parameter of the block token. Authenticated users with valid READ block token can do any write operation on the same block.
Weakness: CWE-732
Which versions are affected by CVE-2021-39235?
2 open source packages ship an affected version, including org.apache.ozone:ozone-main. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.ozone:ozone-main Maven | All versions | 1.2.0 |
org.apache.ozone:ozone-main Maven | All versions | 1.2.0 |
Products include Apache Ozone.
How do I fix CVE-2021-39235?
Upgrade org.apache.ozone:ozone-main to 1.2.0 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2021-39235 being exploited?
There is no known exploitation of CVE-2021-39235 in the wild and no public exploit code.
Other vulnerabilities in Apache Ozone
- CVE-2021-36372 Original block tokens are persisted and can be retrieved
- CVE-2021-39231 Missing authentication/authorization on internal RPC endpoints
- CVE-2021-39233 Container-related datanode operations can be called without authorization
- CVE-2021-39232 Missing admin check for SCM related admin commands
- CVE-2021-39236 Owners of the S3 tokens are not validated
Sources
Also known as GHSA-c6j7-4fr9-c76p.