sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service
Published Mar 17, 2018
7.5
HIGHCVSS 3.0
EPSS 7.97%
Description
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.
Affected products
No data.
Configuration 2
- 8.0
No data.
Red Hat Enterprise Linux 5
sqlite
Not affected
Red Hat Enterprise Linux 6
sqlite
Not affected
Red Hat Enterprise Linux 7
sqlite
Will not fix
Red Hat Enterprise Linux 8
sqlite
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | sqlite | Not affected | n/a |
| Red Hat Enterprise Linux 6 | sqlite | Not affected | n/a |
| Red Hat Enterprise Linux 7 | sqlite | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | sqlite | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Product Security has rated this issue as having a security impact of Low. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (53 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 7.97% (0.07966) | 94.58th | v5 (v2026.06.15) |
| Jun 15, 2026 | 8.19% (0.08186) | 94.13th | v5 (v2026.06.15) |
| May 29, 2026 | 13.84% (0.13840) | 94.41th | v4 (v2025.03.14) |
| May 24, 2026 | 15.95% (0.15953) | 94.85th | v4 (v2025.03.14) |
| Mar 4, 2026 | 12.62% (0.12623) | 93.82th | v4 (v2025.03.14) |
| Mar 1, 2026 | 3.72% (0.03719) | 87.80th | v4 (v2025.03.14) |
| Feb 4, 2026 | 12.62% (0.12623) | 93.78th | v4 (v2025.03.14) |
| Feb 1, 2026 | 3.72% (0.03719) | 87.73th | v4 (v2025.03.14) |
| Jan 13, 2026 | 12.62% (0.12623) | 93.73th | v4 (v2025.03.14) |
| Jan 11, 2026 | 9.70% (0.09703) | 92.67th | v4 (v2025.03.14) |
| Jan 4, 2026 | 12.22% (0.12221) | 93.61th | v4 (v2025.03.14) |
| Jan 1, 2026 | 3.59% (0.03586) | 87.46th | v4 (v2025.03.14) |
| Dec 4, 2025 | 12.22% (0.12221) | 93.57th | v4 (v2025.03.14) |
| Dec 1, 2025 | 3.59% (0.03586) | 87.39th | v4 (v2025.03.14) |
| Nov 21, 2025 | 12.22% (0.12221) | 93.56th | v4 (v2025.03.14) |
| Nov 18, 2025 | 22.89% (0.22889) | 95.53th | v4 (v2025.03.14) |
| Nov 4, 2025 | 12.22% (0.12221) | 93.53th | v4 (v2025.03.14) |
| Nov 1, 2025 | 3.59% (0.03586) | 87.30th | v4 (v2025.03.14) |
| Oct 6, 2025 | 12.22% (0.12221) | 93.57th | v4 (v2025.03.14) |
| Oct 4, 2025 | 10.08% (0.10077) | 92.80th | v4 (v2025.03.14) |
| Oct 1, 2025 | 2.52% (0.02524) | 84.92th | v4 (v2025.03.14) |
| Sep 5, 2025 | 9.04% (0.09036) | 92.32th | v4 (v2025.03.14) |
| Sep 1, 2025 | 2.52% (0.02524) | 84.94th | v4 (v2025.03.14) |
| Aug 4, 2025 | 9.04% (0.09036) | 92.28th | v4 (v2025.03.14) |
| Aug 1, 2025 | 2.52% (0.02524) | 84.92th | v4 (v2025.03.14) |
| Jul 4, 2025 | 9.04% (0.09036) | 92.25th | v4 (v2025.03.14) |
| Jul 1, 2025 | 2.52% (0.02524) | 84.82th | v4 (v2025.03.14) |
| Jun 5, 2025 | 9.04% (0.09036) | 92.18th | v4 (v2025.03.14) |
| Jun 1, 2025 | 2.52% (0.02524) | 84.71th | v4 (v2025.03.14) |
| May 4, 2025 | 9.04% (0.09036) | 92.16th | v4 (v2025.03.14) |
| May 1, 2025 | 2.52% (0.02524) | 84.60th | v4 (v2025.03.14) |
| Apr 6, 2025 | 9.72% (0.09719) | 92.20th | v4 (v2025.03.14) |
| Apr 5, 2025 | 2.73% (0.02734) | 84.75th | v4 (v2025.03.14) |
| Mar 30, 2025 | 9.72% (0.09719) | 92.18th | v4 (v2025.03.14) |
| Mar 29, 2025 | 7.83% (0.07828) | 86.37th | v4 (v2025.03.14) |
| Mar 17, 2025 | 9.72% (0.09719) | 92.35th | v4 (v2025.03.14) |
| Jul 20, 2024 | 2.33% (0.02333) | 89.89th | v3 (v2023.03.01) |
| Dec 30, 2023 | 2.33% (0.02333) | 88.63th | v3 (v2023.03.01) |
| Nov 3, 2023 | 3.52% (0.03523) | 90.51th | v3 (v2023.03.01) |
| Sep 16, 2023 | 4.72% (0.04719) | 91.69th | v3 (v2023.03.01) |
| Aug 7, 2023 | 4.55% (0.04555) | 91.42th | v3 (v2023.03.01) |
| May 23, 2023 | 4.35% (0.04352) | 91.10th | v3 (v2023.03.01) |
| Mar 10, 2023 | 6.16% (0.06162) | 92.39th | v3 (v2023.03.01) |
| Mar 7, 2023 | 6.71% (0.06709) | 92.70th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.88% (0.02880) | 63.65th | v1 |
| Jan 6, 2022 | 2.88% (0.02880) | 63.31th | v1 |
| Sep 1, 2021 | 2.88% (0.02880) | 80.71th | v1 |
| Jun 30, 2021 | 2.88% (0.02880) | 0.00th | v1 |
| Jun 29, 2021 | 2.68% (0.02678) | 0.00th | v1 |
| Apr 14, 2021 | 2.48% (0.02476) | 0.00th | v1 |
References (18)
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00050.html vendor-advisory
- http://www.securityfocus.com/bid/103466 vdb-entryThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2018-8740 Vendor Advisory
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6964 Permissions RequiredThird Party Advisory
- https://bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/1756349 Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1558804 Issue Tracking
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E mailing-list
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E mailing-list
- https://lists.debian.org/debian-lts-announce/2019/01/msg00009.html mailing-listMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/08/msg00037.html mailing-list
- https://lists.debian.org/debian-lts-announce/2023/05/msg00022.html mailing-list
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PU4NZ6DDU4BEM3ACM3FM6GLEPX56ZQXK/ vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-8740
- https://usn.ubuntu.com/4205-1/ vendor-advisory
- https://usn.ubuntu.com/4394-1/ vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2018-8740
- https://www.sqlite.org/cgi/src/timeline?r=corrupt-schema Vendor Advisory
- https://www.sqlite.org/cgi/src/vdiff?from=1774f1c3baf0bc3d&to=d75e67654aa9620b PatchVendor Advisory
Change history (0)
No recorded changes yet.