# CVE-2022-35737: `libsqlite3-sys` via C SQLite improperly validates array index

> An attacker can cause a denial of service via array-bounds overflow in SQLite when processing extremely large string arguments.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Aug 2022
- **Updated:** 14 Oct 2026
- **Also known as:** ALSA-2023:0110, ALSA-2023:0339, AZL-10467, BIT-sqlite-2022-35737, CLSA-2022-1668116271, CLSA-2022-1668118023, CLSA-2022-1668121215, CLSA-2022-1668122377, CLSA-2022-1668468398, CLSA-2023-1698946014, DEBIAN-CVE-2022-35737, GHSA-jw36-hf63-69r9, MGASA-2022-0273, OESA-2022-1909, RHSA-2023:0110, RHSA-2023:0339, RLSA-2023:0110, RLSA-2023:0339, ROOT-OS-DEBIAN-11-CVE-2022-35737, RUSTSEC-2022-0090, UBUNTU-CVE-2022-35737, USN-5712-1, USN-5716-1, USN-5716-2, openSUSE-SU-2024:12210-1

## What is CVE-2022-35737?

CVE-2022-35737 is a high-severity vulnerability in Netapp Ontap Select Deploy Administration Utility, published on 3 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if billions of bytes are used in a string argument to a C API.

Weakness: CWE-129 (Improper Validation of Array Index)

## Which versions are affected by CVE-2022-35737?

4 open source packages ship an affected version, including libsqlite3-sys and sqlite. It affects 3 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `libsqlite3-sys` | crates.io | All versions | 0.25.1 |
| `libsqlite3-sys` | crates.io | All versions | 0.25.1 |
| `libsqlite3-sys` | crates.io | From 0.0.0-0 | 0.25.1 |
| `sqlite` | Bitnami | From 1.0.12 | 3.39.2 |
| `lemon` | AlmaLinux:8 | All versions | 3.26.0-17.el8_7 |
| `sqlite` | AlmaLinux:8 | All versions | 3.26.0-17.el8_7 |
| `sqlite-devel` | AlmaLinux:8 | All versions | 3.26.0-17.el8_7 |
| `sqlite-doc` | AlmaLinux:8 | All versions | 3.26.0-17.el8_7 |
| `sqlite-libs` | AlmaLinux:8 | All versions | 3.26.0-17.el8_7 |
| `sqlite` | AlmaLinux:9 | All versions | 3.34.1-6.el9_1 |
| `sqlite-devel` | AlmaLinux:9 | All versions | 3.34.1-6.el9_1 |
| `sqlite-libs` | AlmaLinux:9 | All versions | 3.34.1-6.el9_1 |
| `lemon` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.26.0-17.el8_7 |
| `lemon-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-analyzer-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-libs-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-tcl-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.26.0-17.el8_7 |
| `lemon-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `sqlite` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-analyzer-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-devel` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-doc` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-libs` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-libs-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `sqlite-tcl-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:3.26.0-17.el8_7 |
| `lemon-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.34.1-6.el9_1 |
| `sqlite` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.34.1-6.el9_1 |
| `sqlite-analyzer-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.34.1-6.el9_1 |
| `sqlite-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.34.1-6.el9_1 |
| `sqlite-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.34.1-6.el9_1 |
| `sqlite-devel` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.34.1-6.el9_1 |
| `sqlite-libs-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.34.1-6.el9_1 |
| `sqlite-tcl-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.34.1-6.el9_1 |
| `sqlite-tools-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.34.1-6.el9_1 |
| `lemon-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 0:3.34.1-6.el9_1 |
| `sqlite` | Red Hat:enterprise_linux:9::baseos | All versions | 0:3.34.1-6.el9_1 |

Products: Netapp Ontap Select Deploy Administration Utility, Splunk Universal Forwarder, Sqlite Sqlite.

## How do I fix CVE-2022-35737?

Upgrade libsqlite3-sys to 0.25.1 or later.

## Is CVE-2022-35737 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-35737 exists.

Public exploit code:

- Stranger strings: CVE-2022-35737 (github_poc): https://github.com/gmh5225/CVE-2022-35737
- A CodeQL query to find CVE 2022-35737 (github_poc): https://github.com/rvermeulen/codeql-cve-2022-35737

## 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-2022-35737 and fix it if it is affected.

What it is: CVE-2022-35737 is a high-severity vulnerability in Netapp Ontap Select Deploy Administration Utility, published on 3 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-35737 exists.

Affected packages and fixed versions:
- libsqlite3-sys (crates.io): affected all versions; fixed in 0.25.1
- libsqlite3-sys (crates.io): affected all versions; fixed in 0.25.1
- libsqlite3-sys (crates.io): affected from 0.0.0-0; fixed in 0.25.1
- sqlite (Bitnami): affected from 1.0.12; fixed in 3.39.2

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

## Sources

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

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