In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, rela
In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.
- Published
- Mar 16, 2018
- Updated
- Jun 16, 2026
- EPSS
- 8.0% · 95th percentile
- CWE
- CWE-476
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
32
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 8.0%
Affected systems
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux8.0
- sqlite sqliteup to 3.22.0 inclusive
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.4 | sqlite | before 3.13.0-r2 | 3.13.0-r2 |
| Alpine:v3.5 | sqlite | before 3.15.2-r2 | 3.15.2-r2 |
| Alpine:v3.6 | sqlite | before 3.20.1-r2 | 3.20.1-r2 |
| Alpine:v3.7 | sqlite | before 3.21.0-r1 | 3.21.0-r1 |
| Debian:10 | sqlite | before 2.8.17-15+deb10u1 | 2.8.17-15+deb10u1 |
| Debian:12 | sqlite3 | before 3.22.0-2 | 3.22.0-2 |
| Debian:8 | sqlite3 | before 3.8.7.1-1+deb8u4 | 3.8.7.1-1+deb8u4 |
| Debian:9 | sqlite3 | before 3.16.2-5+deb9u2 | 3.16.2-5+deb9u2 |
| openSUSE:Tumbleweed | sqlite3 | before 3.36.0-1.2 | 3.36.0-1.2 |
| SUSE:HPE Helion OpenStack 8 | sqlite3 | before 3.36.0-9.18.1 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | sqlite3 | before 3.8.10.2-9.6.1 | 3.8.10.2-9.6.1 |
| SUSE:Linux Enterprise Server 12-LTSS | sqlite3 | before 3.8.3.1-2.12.1 | 3.8.3.1-2.12.1 |
Same product
sqlite: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-8457SQLite3 from 3.6.0 to and including 3.27.2 is vulnerable to heap out-of-bound read in the rtreenode() function when handling invalid rtree t53Plan
- CVE-2025-6965Integer Truncation on SQLite50Plan
- CVE-2015-5895Multiple unspecified vulnerabilities in SQLite before 3.8.10.2, as used in Apple iOS before 9, have unknown impact and attack vectors.43Plan
- CVE-2017-10989The getNodeSize function in ext/rtree/rtree.c in SQLite through 3.19.3, as used in GDAL and other products, mishandles undersized RTree blob42Plan
- CVE-2020-11656In SQLite through 3.31.1, the ALTER TABLE implementation has a use-after-free, as demonstrated by an ORDER BY clause that belongs to a compo41Plan
- CVE-2019-19646pragma.c in SQLite through 3.30.1 mishandles NOT NULL in an integrity_check PRAGMA command in certain cases of generated columns.41Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:sqlite | 3.13.0-r2 · Alpine:v3.4 | Package registry (OSV) |
| debian:sqlite | 2.8.17-15+deb10u1 · Debian:10 | Package registry (OSV) |
| debian:sqlite3 | 3.22.0-2 · Debian:12 | Package registry (OSV) |
| opensuse:sqlite3 | 3.36.0-1.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| suse:sqlite3 | 3.8.10.2-9.6.1 · SUSE:Linux Enterprise Desktop 12 SP3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-476 · NULL Pointer DereferenceCVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.opensuse.org/opensuse-security-announce/2019-05/msg00050.html
- www.securityfocus.com/bid/103466
- bugs.chromium.org/p/oss-fuzz/issues/detail?id=6964
- bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/1756349
- lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
- lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- lists.debian.org/debian-lts-announce/2019/01/msg00009.html
- lists.debian.org/debian-lts-announce/2020/08/msg00037.html
- lists.debian.org/debian-lts-announce/2023/05/msg00022.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PU4NZ6DDU4BEM3ACM3FM6GLEPX56ZQXK/
- usn.ubuntu.com/4205-1/
- usn.ubuntu.com/4394-1/
- www.sqlite.org/cgi/src/timeline?r=corrupt-schema
- www.sqlite.org/cgi/src/vdiff?from=1774f1c3baf0bc3d&to=d75e67654aa9620b
Vendor advisories and official records. Exploit/PoC links are deliberately left out.