# CVE-2023-21893: Component takeover in Oracle Data Provider for .NET

> An unauthenticated attacker can compromise the Oracle Data Provider for .NET via network access, leading to full system takeover.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 17 Jan 2023
- **Updated:** 17 Sep 2024
- **Also known as:** GHSA-5pm2-9mr2-3frq

## What is CVE-2023-21893?

CVE-2023-21893 is a high-severity authentication bypass vulnerability in Oracle Database Server, published on 17 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Vulnerability in the Oracle Data Provider for .NET component of Oracle Database Server.  Supported versions that are affected are 19c and  21c. Difficult to exploit vulnerability allows unauthenticated attacker with network access via TCPS to compromise Oracle Data Provider for .NET.  Successful attacks require human interaction from a person other than the attacker. Successful attacks of this vulnerability can result in takeover of Oracle Data Provider for .NET. Note: Applies also to Database client-only on Windows platform. CVSS 3.1 Base Score 7.5 (Confidentiality, Integrity and Availability impacts).  CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).

Weakness: CWE-284 (Improper Access Control)

## Which versions are affected by CVE-2023-21893?

8 open source packages ship an affected version, including Oracle.ManagedDataAccess and Oracle.ManagedDataAccess.Core. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `Oracle.ManagedDataAccess` | NuGet | From 19.0.0 | 19.18.0 |
| `Oracle.ManagedDataAccess` | NuGet | From 19.0.0 | 19.18.0 |
| `Oracle.ManagedDataAccess` | NuGet | From 21.0.0 | 21.9.0 |
| `Oracle.ManagedDataAccess` | NuGet | From 21.0.0 | 21.9.0 |
| `Oracle.ManagedDataAccess.Core` | NuGet | From 2.19.0 | 2.19.180 |
| `Oracle.ManagedDataAccess.Core` | NuGet | From 2.19.0 | 2.19.180 |
| `Oracle.ManagedDataAccess.Core` | NuGet | From 3.21.0 | 3.21.90 |
| `Oracle.ManagedDataAccess.Core` | NuGet | From 3.21.0 | 3.21.90 |

Products: Oracle Database Server.

## How do I fix CVE-2023-21893?

Upgrade Oracle.ManagedDataAccess to a fixed version for your release line: 19.18.0 or 21.9.0.

## Is CVE-2023-21893 being exploited?

There is no known exploitation of CVE-2023-21893 in the wild and no public exploit code.

## Other vulnerabilities in Oracle Database Server

- [CVE-2015-4863](https://insights.sbomify.com/CVE-2015-4863/): Other in n/a (critical 10.0)
- [CVE-2013-1534](https://insights.sbomify.com/CVE-2013-1534/): Other in n/a (critical 10.0)
- [CVE-2010-0071](https://insights.sbomify.com/CVE-2010-0071/): Other in n/a (critical 10.0)
- [CVE-2009-1979](https://insights.sbomify.com/CVE-2009-1979/): Other in n/a (critical 10.0)
- [CVE-2009-1985](https://insights.sbomify.com/CVE-2009-1985/): Other in n/a (critical 10.0)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-21893 and fix it if it is affected.

What it is: CVE-2023-21893 is a high-severity authentication bypass vulnerability in Oracle Database Server, published on 17 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2023-21893 in the wild and no public exploit code.

Affected packages and fixed versions:
- Oracle.ManagedDataAccess (NuGet): affected from 19.0.0; fixed in 19.18.0
- Oracle.ManagedDataAccess (NuGet): affected from 19.0.0; fixed in 19.18.0
- Oracle.ManagedDataAccess (NuGet): affected from 21.0.0; fixed in 21.9.0
- Oracle.ManagedDataAccess (NuGet): affected from 21.0.0; fixed in 21.9.0
- Oracle.ManagedDataAccess.Core (NuGet): affected from 2.19.0; fixed in 2.19.180
- Oracle.ManagedDataAccess.Core (NuGet): affected from 2.19.0; fixed in 2.19.180
- Oracle.ManagedDataAccess.Core (NuGet): affected from 3.21.0; fixed in 3.21.90
- Oracle.ManagedDataAccess.Core (NuGet): affected from 3.21.0; fixed in 3.21.90

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-21893/ (Markdown: https://insights.sbomify.com/CVE-2023-21893/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-21893
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-21893
- OSV: https://osv.dev/vulnerability/CVE-2023-21893

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-21893/
Summaries are generated and may contain mistakes; the official description above is the record.
