# CVE-2021-45346: Information disclosure in n/a

> A maliciously crafted database file can cause SQLite to leak memory bytes beyond the intended record, allowing attackers to read sensitive information.

- **Severity:** Medium 4.3 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 14 Feb 2022
- **Updated:** 4 Aug 2024
- **Also known as:** BIT-sqlite-2021-45346, DEBIAN-CVE-2021-45346, GHSA-w3q4-xr8h-32gf

## What is CVE-2021-45346?

CVE-2021-45346 is a medium-severity vulnerability in Netapp Ontap Select Deploy Administration Utility, published on 14 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

A Memory Leak vulnerability exists in SQLite Project SQLite3 3.35.1 and 3.37.0 via maliciously crafted SQL Queries (made via editing the Database File), it is possible to query a record, and leak subsequent bytes of memory that extend beyond the record, which could let a malicious user obtain sensitive information. NOTE: The developer disputes this as a vulnerability stating that If you give SQLite a corrupted database file and submit a query against the database, it might read parts of the database that you did not intend or expect.

Weakness: CWE-401 (Missing Release of Memory after Effective Lifetime)

## Which versions are affected by CVE-2021-45346?

1 open source package ship an affected version, including sqlite. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `sqlite` | Bitnami | From 3.35.1 | 3.35.2, 3.37.1 |

Products: Netapp Ontap Select Deploy Administration Utility, Sqlite Sqlite.

## How do I fix CVE-2021-45346?

Upgrade sqlite to a fixed version for your release line: 3.35.2 or 3.37.1.

## Is CVE-2021-45346 being exploited?

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

## Other vulnerabilities in Netapp Ontap Select Deploy Administration Utility

- [CVE-2020-35527](https://insights.sbomify.com/CVE-2020-35527/): Memory corruption in sqlite (critical 9.8)
- [CVE-2020-11656](https://insights.sbomify.com/CVE-2020-11656/): Use after free in n/a (critical 9.8)
- [CVE-2019-5509](https://insights.sbomify.com/CVE-2019-5509/): Code injection in ONTAP Select Deploy administration utility (critical 9.8)
- [CVE-2019-5504](https://insights.sbomify.com/CVE-2019-5504/): Missing authorization in ONTAP Select Deploy administration utility (critical 9.8)
- [CVE-2019-5505](https://insights.sbomify.com/CVE-2019-5505/): Information disclosure in ONTAP Select Deploy administration utility (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-45346 and fix it if it is affected.

What it is: CVE-2021-45346 is a medium-severity vulnerability in Netapp Ontap Select Deploy Administration Utility, published on 14 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2021-45346 in the wild and no public exploit code.

Affected packages and fixed versions:
- sqlite (Bitnami): affected from 3.35.1; fixed in 3.35.2, 3.37.1

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-2021-45346/ (Markdown: https://insights.sbomify.com/CVE-2021-45346/index.md)
```

## Sources

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

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