Debian Codegraph @

www/cves.html

raw
1 <!DOCTYPE html>
2 <html><head>
3 <meta name="viewport" content="width=device-width, initial-scale=1.0">
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
5 <link href="sqlite.css" rel="stylesheet">
6 <title>Vulnerabilities</title>
7 <!-- path= -->
8 </head>
9 <body>
10 <div class=nosearch>
11 <a href="index.html">
12 <img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
13 </a>
14 <div><!-- IE hack to prevent disappearing logo --></div>
15 <div class="tagline desktoponly">
16 Small. Fast. Reliable.<br>Choose any three.
17 </div>
18 <div class="menu mainmenu">
19 <ul>
20 <li><a href="index.html">Home</a>
21 <li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
22 <li class='wideonly'><a href='about.html'>About</a>
23 <li class='desktoponly'><a href="docs.html">Documentation</a>
24 <li class='desktoponly'><a href="download.html">Download</a>
25 <li class='wideonly'><a href='copyright.html'>License</a>
26 <li class='desktoponly'><a href="support.html">Support</a>
27 <li class='desktoponly'><a href="prosupport.html">Purchase</a>
28 <li class='search' id='search_menubutton'>
29 <a href="javascript:void(0)" onclick='toggle_search()'>Search</a>
30 </ul>
31 </div>
32 <div class="menu submenu" id="submenu">
33 <ul>
34 <li><a href='about.html'>About</a>
35 <li><a href='docs.html'>Documentation</a>
36 <li><a href='download.html'>Download</a>
37 <li><a href='support.html'>Support</a>
38 <li><a href='prosupport.html'>Purchase</a>
39 </ul>
40 </div>
41 <div class="searchmenu" id="searchmenu">
42 <form method="GET" action="search">
43 <select name="s" id="searchtype">
44 <option value="d">Search Documentation</option>
45 <option value="c">Search Changelog</option>
46 </select>
47 <input type="text" name="q" id="searchbox" value="">
48 <input type="submit" value="Go">
49 </form>
50 </div>
51 </div>
52 <script>
53 function toggle_div(nm) {
54 var w = document.getElementById(nm);
55 if( w.style.display=="block" ){
56 w.style.display = "none";
57 }else{
58 w.style.display = "block";
59 }
60 }
61 function toggle_search() {
62 var w = document.getElementById("searchmenu");
63 if( w.style.display=="block" ){
64 w.style.display = "none";
65 } else {
66 w.style.display = "block";
67 setTimeout(function(){
68 document.getElementById("searchbox").focus()
69 }, 30);
70 }
71 }
72 function div_off(nm){document.getElementById(nm).style.display="none";}
73 window.onbeforeunload = function(e){div_off("submenu");}
74 /* Disable the Search feature if we are not operating from CGI, since */
75 /* Search is accomplished using CGI and will not work without it. */
76 if( !location.origin || !location.origin.match || !location.origin.match(/http/) ){
77 document.getElementById("search_menubutton").style.display = "none";
78 }
79 /* Used by the Hide/Show button beside syntax diagrams, to toggle the */
80 function hideorshow(btn,obj){
81 var x = document.getElementById(obj);
82 var b = document.getElementById(btn);
83 if( x.style.display!='none' ){
84 x.style.display = 'none';
85 b.innerHTML='show';
86 }else{
87 x.style.display = '';
88 b.innerHTML='hide';
89 }
90 return false;
91 }
92 var antiRobot = 0;
93 function antiRobotGo(){
94 if( antiRobot!=3 ) return;
95 antiRobot = 7;
96 var j = document.getElementById("mtimelink");
97 if(j && j.hasAttribute("data-href")) j.href=j.getAttribute("data-href");
98 }
99 function antiRobotDefense(){
100 document.body.onmousedown=function(){
101 antiRobot |= 2;
102 antiRobotGo();
103 document.body.onmousedown=null;
104 }
105 document.body.onmousemove=function(){
106 antiRobot |= 2;
107 antiRobotGo();
108 document.body.onmousemove=null;
109 }
110 setTimeout(function(){
111 antiRobot |= 1;
112 antiRobotGo();
113 }, 100)
114 antiRobotGo();
115 }
116 antiRobotDefense();
117 </script>
118 <div class=fancy>
119 <div class=nosearch>
120 <div class="fancy_title">
121 Vulnerabilities
122 </div>
123 <div class="fancy_toc">
124 <a onclick="toggle_toc()">
125 <span class="fancy_toc_mark" id="toc_mk">&#x25ba;</span>
126 Table Of Contents
127 </a>
128 <div id="toc_sub"><div class="fancy-toc1"><a href="#executive_summary">1. Executive Summary</a></div>
129 <div class="fancy-toc1"><a href="#about_cves">2. About CVEs</a></div>
130 <div class="fancy-toc2"><a href="#a_separate_sql_injection_vulnerability_is_usually_required">2.1. A separate SQL injection vulnerability is usually required</a></div>
131 <div class="fancy-toc2"><a href="#defense_against_dark_arts">2.2. Defense Against Dark Arts</a></div>
132 <div class="fancy-toc2"><a href="#the_sqlite_developer_policy_toward_cves">2.3. The SQLite Developer Policy Toward CVEs</a></div>
133 <div class="fancy-toc1"><a href="#status_of_recent_sqlite_cves">3. Status Of Recent SQLite CVEs</a></div>
134 </div>
135 </div>
136 <script>
137 function toggle_toc(){
138 var sub = document.getElementById("toc_sub")
139 var mk = document.getElementById("toc_mk")
140 if( sub.style.display!="block" ){
141 sub.style.display = "block";
142 mk.innerHTML = "&#x25bc;";
143 } else {
144 sub.style.display = "none";
145 mk.innerHTML = "&#x25ba;";
146 }
147 }
148 </script>
149 </div>
150
151
152
153
154
155 <h1 id="executive_summary"><span>1. </span>Executive Summary</h1>
156
157 <ul>
158 <li><p>
159 CVEs about SQLite probably do not apply to your use of SQLite.
160
161 </p></li><li><p>
162 All historical vulnerabilities reported against SQLite require at least
163 one of these preconditions:
164 </p><ol type="1">
165 <li><p>
166 The attacker can submit and run arbitrary SQL statements.
167 </p></li><li><p>
168 The attacker can submit a maliciously crafted database file to the
169 application that the application will then open and query.
170 </p></li></ol>
171
172 </li><li><p>
173 Few real-world applications meet either of these preconditions, and hence
174 few real-world applications are vulnerable, even if they use older
175 and unpatched versions of SQLite.
176
177 </p></li><li><p>
178 The SQLite development team fixes bugs promptly,
179 usually within hours of discovery. New releases of SQLite
180 are issued if the bug seems likely to impact real-world
181 applications.
182
183 </p></li><li><p>
184 Grey-hat hackers are rewarded based on the number and severity of
185 CVEs that they write. This results in a proliferation of CVEs that
186 have minor impact, or no impact at all, but which make
187 exaggerated impact claims.
188
189 </p></li><li><p><a name="notnew"></a>
190 Very few CVEs written about SQLite are real vulnerabilities in the
191 sense that they do not give any new capabilities to an attacker.
192 Consider:
193 </p><ol type="a">
194 <li><p>
195 Almost all CVEs written against SQLite require the ability to
196 inject and run arbitrary SQL.
197 </p></li><li><p>
198 The advertised consequence of most CVEs is "denial of service",
199 typically by causing a crash through a NULL pointer dereference or
200 a division by zero, or similar.
201 </p></li><li><p>
202 But if an attacker can already run
203 arbitrary SQL, they do not need a bug to cause a denial of service.
204 There are plenty of perfectly legal and valid SQL statements
205 that will consume unlimited CPU, memory, and disk I/O in order
206 to create a denial-of-service without requiring help from bugs.
207 </p></li><li><p>
208 Hence, the mere fact that an attacker has a way to inject and run
209 arbitrary SQL is in and of itself a denial-of-service attack. That
210 the arbitrary SQL might also tickle a bug in SQLite and cause a
211 crash is not a new vulnerability.
212 </p></li></ol>
213
214 </li><li><p>
215 The SQLite developers do not write CVEs. Any CVEs you find on
216 SQLite are generated by third-parties, often without any input from the
217 core developers. A common scenario is that someone will report a bug in
218 SQLite, which will promptly be fixed, then weeks later a CVE for that bug will
219 appear, unbeknownst to the developers.
220
221 </p></li><li><p>
222 You should not assume that a CVE about
223 SQLite contains authoritative information.
224 CVEs often contain inaccuracies.
225 The SQLite developers have attempted to add clarifications and
226 corrections to CVEs about SQLite.
227
228 </p></li></ul>
229
230 <h1 id="about_cves"><span>2. </span>About CVEs</h1>
231
232 <p>CVEs ("Common Vulnerabilities and Exposures") are reports of software
233 bugs that might allow a system to be hacked. The idea
234 behind CVEs is sound. They provide a common naming scheme whereby
235 software bugs that might compromise information security can be easily
236 tracked.
237
238 </p><p>While the original idea behind CVEs is sound, the current processes for
239 creating and managing CVEs are inadequate. There are countless grey-hat
240 hackers running fuzzers against a wide-variety of open-source software
241 products (SQLite as well as many others) and writing up CVEs against
242 any problems they find. The grey-hats are rewarded, sometimes with
243 prestige and sometimes financially, by the number and severity of
244 the CVEs they write. This incentive results in a proliferation
245 of CVEs which are often not well-vetted and which can have exaggerated
246 impact claims. The quality-control procedures for CVEs are unable
247 to cope with this flood of inputs, making it difficult to correct
248 exaggerated, misleading, omitted, or inaccurate claims.
249
250 </p><p>This is not to say that CVEs are useless. CVEs do still (mostly)
251 report actual bugs. But in most cases the bugs are not true vulnerabilities,
252 in the sense that they do not contribute to data loss or compromise
253 in and of themselves.
254 It is good that bugs are reported and fixed. But not every bug is
255 accessible from every application. In the case of SQLite, most of the
256 bugs reported by CVEs are inaccessible in most applications. Upgrading
257 to the latest version of SQLite is always a good plan, but it need not
258 be an emergency just because an anonymous grey-hat on the internet
259 wrote up a CVE.
260
261 </p><h2 id="a_separate_sql_injection_vulnerability_is_usually_required"><span>2.1. </span>A separate SQL injection vulnerability is usually required</h2>
262
263 <p>
264 Other C-libraries that process complex structured inputs will
265 routinely be asked to deal with unvetted inputs from untrusted
266 sources. Libraries like libjpeg, or libzip, or OpenSSL are
267 handed input streams that come directly from potentially hostile
268 agents.
269
270 </p><p>
271 But database engines like SQLite are usually not this way.
272 The SQL scripts that are passed into SQLite come from the
273 (trusted) application itself, not from an attacker. Sometimes
274 applications contain bugs by which an external attacker can
275 trick the application into sending SQL of the attackers design
276 into the database engine. This is a separate bug in the
277 application called an
278 <a href="https://en.wikipedia.org/wiki/SQL_injection">SQL Injection
279 vulnerability</a>. Since SQL text is executable code, an
280 SQL Injection vulnerability is actually a special case of a
281 <a href="https://en.wikipedia.org/wiki/Arbitrary_code_execution">Remote
282 Code Execution (RCE) vulnerability</a>. An SQL Injection is perhaps not
283 quite as bad as other kinds of RCEs because,
284 while SQL is a powerful language, it is not as convenient
285 for crafting an exploit as Python or shell script or raw machine code.
286 Nevertheless, an SQL Injection is a serious problem.
287
288 </p><p>
289 Most CVEs written about SQLite assume that the attacker is
290 able to run arbitrary SQL scripts in SQLite. In most applications,
291 this means that there must first be an SQL Injection vulnerability
292 that allows the attacker to inject the malicious SQL.
293
294 </p><p>
295 A few applications do allow untrusted SQL scripts received from
296 potentially hostile agents to be run direct in SQLite. The main
297 example of this is the Chrome and Safari web browsers, which allow
298 an anonymous web page to run SQL using the WebSQL feature of Javascript.
299 This is done inside a sandbox with tightly controlled constraints on
300 resources, lest the SQL script try to soak up all available memory
301 or CPU cycles in a denial-of-service attack. Chrome and Safari
302 have the infrastructure in place to allow a hostile agent to run
303 code which does not harm or compromise the rest of the machine.
304 They have to, as they also run Javascript which could, if not
305 tightly controlled, do even more damage than unrestrained SQL.
306 Apart from Chrome and Safari, no applications known to the
307 SQLite developers deliberately allows an anonymous remote agent
308 to run arbitrary SQL text.
309
310 </p><p>However, most CVEs written against SQLite flippantly assume
311 that an attacker is free to run any arbitrary SQL in the database
312 engine. So to a good approximation, this means most CVEs
313 written against SQLite really only apply to SQLite as it is
314 used in Chrome and Safari. Or, in other words, most CVEs
315 for SQLite do not apply to you unless you are one of the
316 developers of Chrome or Safari.
317
318 </p><h2 id="defense_against_dark_arts"><span>2.2. </span>Defense Against Dark Arts</h2>
319
320 <p>
321 Most applications can use SQLite without having to worry about
322 bugs in obscure SQL inputs. If the application controls
323 the SQL, and the application is not deliberately trying to break
324 SQLite, then everything should just work.
325 It is not necessary to have the latest patched version of SQLite.
326 Any older version should work just fine.
327
328 </p><p>
329 However, there are some occasions where an application does need
330 to be able to safely run untrusted SQL. The SQLite developers work hard
331 to make SQLite safe for this purpose, though there are occasional
332 slip-ups. It is good to keep up-to-date with the latest patches
333 in this case. The separate <a href="security.html">defense against dark arts</a> document
334 contains additional suggestions that can help prevent zero-day
335 attacks in cases where SQLite is given inputs that come directly
336 from untrusted sources.
337
338 </p><h2 id="the_sqlite_developer_policy_toward_cves"><span>2.3. </span>The SQLite Developer Policy Toward CVEs</h2>
339
340 <p>SQLite developers fix all bugs in SQLite as soon as they are reported,
341 usually within a few hours. The fixes are immediately available on the
342 <a href="https://sqlite.org/src/timeline">public SQLite source tree</a>.
343 If a bug seems like it might cause problems for existing applications,
344 a new patch release for SQLite will be issued.
345
346 </p><p>However, the SQLite developers do not track CVEs. There are
347 various reasons for this:
348
349 </p><ol>
350 <li><p>
351 The developers often do not find out about CVEs until long after the
352 bug is fixed. You can see this by the fact that many CVEs reference the
353 bug fix in their initial report.
354
355 </p></li><li><p>
356 CVEs are a low-quality source of information about bugs in SQLite
357 that are likely to affect most applications.
358
359 </p></li><li><p>
360 Almost all bugs reported by CVEs are just bugs and not
361 true vulnerabilities. Claiming that they are vulnerabilities is
362 stretching the meaning of the word "vulnerability" and the SQLite
363 developers do not wish to participate in that deception.
364
365 </p></li><li><p>
366 The developers have no editorial influence on the content of CVEs,
367 and they do not like to be controlled by groups in which they have
368 no voice.
369 </p></li></ol>
370
371
372 <a name="cvetab"></a>
373
374 <h1 id="status_of_recent_sqlite_cves"><span>3. </span>Status Of Recent SQLite CVEs</h1>
375
376 <p>Though the SQLite developers do not consider CVEs to be a reliable
377 source of information about bugs in SQLite, they recognize that many
378 groups, and especially small teams working at the bottom of tall
379 bureaucracies, sometimes need to track CVEs, whether they are useful
380 or not. To aid in this chore, the following table of recent CVEs
381 affecting SQLite is provided.
382
383 </p><p>If you notice new CVEs associated with SQLite that are not in
384 the table below, please bring them to the attention of the developers
385 on the <a href="https://sqlite.org/forum/about">SQLite Forum</a> so they can
386 be added.
387
388 </p><table border="1" cellpadding="5" cellspacing="0" style="margin-left:5ex;">
389 <thead>
390 <tr>
391 <th valign="bottom">CVE Number</th>
392 <th valign="bottom">Fix</th>
393 <th valign="bottom">Comments</th>
394 </tr>
395 </thead>
396 <tbody>
397
398 <tr><td valign='top'>
399 <a href='https://nvd.nist.gov/vuln/detail/CVE-2024-0232'>CVE-2024-0232</a>
400 </td>
401 <td valign='top'><a href="releaselog/3_43_2.html">3.43.2</a><br>(2023-10-10)</td>
402 <td valign='top'>An attacker that can inject arbitrary SQL statements into an application
403 might be able to provoke a use-after-free bug in SQLite's JSON parser that
404 can (in theory) lead to an application crash and denial of service. See
405 <a href="https://sqlite.org/forum/forumpost/b25edc1d4662ebca">forum thread b25edc1d4662</a>
406 for the bug report.</td>
407 </tr>
408
409 <tr><td valign='top'>
410 <a href='https://nvd.nist.gov/vuln/detail/CVE-2023-32697'>CVE-2023-32697</a>
411 </td>
412 <td valign='top'>Not a bug in SQLite</td>
413 <td valign='top'>This is a bug in the SQLite JDBC library, which is a wrapper library that
414 provides access to SQLite from Java. SQLite JDBC is created and maintained
415 independently from SQLite. Despite the use of "SQLite" in the name, the
416 SQLite JDBC library is not affiliated with the SQLite project in any way.
417 The vulnerability identified by this CVE is in the separate SQLite JDBC
418 wrapper library and does not affect SQLite itself.</td>
419 </tr>
420
421 <tr><td valign='top'>
422 <a href='https://nvd.nist.gov/vuln/detail/CVE-2023-39939'>CVE-2023-39939</a>
423 </td>
424 <td valign='top'>Not a bug in SQLite</td>
425 <td valign='top'>This is not a bug in SQLite. This is an
426 <a href="https://en.wikipedia.org/wiki/SQL_injection">SQL injection bug</a> in an application
427 (LuxCal Web Calendar) that links against SQLite.
428 Even though this CVE is not about SQLite, "SQLite" is
429 mentioned in the description and so we list it here.</td>
430 </tr>
431
432 <tr><td valign='top'>
433 <a href='https://nvd.nist.gov/vuln/detail/CVE-2023-39543'>CVE-2023-39543</a>
434 </td>
435 <td valign='top'>Not a bug in SQLite</td>
436 <td valign='top'>This is not a bug in SQLite. This is an
437 <a href="https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting">XSS vulnerability</a>
438 in a separate application (LuxCal Web Calendar) that links against
439 SQLite. The bug is in the application, not in SQLite. However "SQLite" is
440 mentioned in the description and so we list it here.</td>
441 </tr>
442
443 <tr><td valign='top'>
444 <a href='https://nvd.nist.gov/vuln/detail/CVE-2023-7104'>CVE-2023-7104</a>
445 </td>
446 <td valign='top'><a href="releaselog/3_43_1.html">3.43.1</a><br>(2023-09-11)</td>
447 <td valign='top'>This is a bug in the <a href="sessionintro.html">session extension</a> of SQLite, not in the SQLite core.
448 This bug is only reachable by applications that recompile SQLite using the
449 <a href="compile.html#enable_session">-DSQLITE_ENABLE_SESSION</a> compile-time option and then use the Session
450 C-language APIs to process a <a href="sessionintro.html#changeset">changeset</a> that has been subtly corrupted by an
451 adversary. So this bug probably does not apply to you. See
452 <a href="https://sqlite.org/forum/forumpost/f935c4708dd528d9">forum post f935c4708dd528d9</a>
453 for additional information.</td>
454 </tr>
455
456 <tr><td valign='top'>
457 <a href='https://nvd.nist.gov/vuln/detail/CVE-2022-46908'>CVE-2022-46908</a>
458 </td>
459 <td valign='top'>Not a bug in the core SQLite library</td>
460 <td valign='top'>This is a bug in the --safe command-line option of the <a href="cli.html">command-line shell</a>
461 program that is available for accessing SQLite database files. The bug does
462 not exist in the SQLite library. Nor is it an issue for the <a href="cli.html">CLI</a> as long as
463 the user does not depend on the --safe option. It is not serious. It is
464 debatable whether or not this is a security issue.</td>
465 </tr>
466
467 <tr><td valign='top'>
468 <a href='https://nvd.nist.gov/vuln/detail/CVE-2022-38627'>CVE-2022-38627</a>
469 </td>
470 <td valign='top'>Not a bug in SQLite</td>
471 <td valign='top'>This is not a bug in SQLite. This is an
472 <a href="https://en.wikipedia.org/wiki/SQL_injection">SQL injection bug</a> in a specific
473 PHP application. In other words, the bug is in the PHP application code, not
474 in SQLite. Even though this CVE is not about SQLite, "SQLite" is
475 mentioned in the publicity about the bug and so we list it here.</td>
476 </tr>
477
478 <tr><td valign='top'>
479 <a href='https://nvd.nist.gov/vuln/detail/CVE-2022-35737'>CVE-2022-35737</a>
480 </td>
481 <td valign='top'><a href="releaselog/3_39_2.html">3.39.2</a><br>(2022-07-21)</td>
482 <td valign='top'>This bug is an array-bounds overflow. The bug is only accessible when using some
483 of the C-language APIs provided by SQLite. The bug cannot be reached using SQL
484 nor can it be reached by providing SQLite with a corrupt database file.
485 The bug only comes up when very long string inputs (greater than 2 billion bytes
486 in length) are provided as arguments to a few specific C-language interfaces,
487 and even then only under special circumstances.</td>
488 </tr>
489
490 <tr><td valign='top'>
491 <a href='https://nvd.nist.gov/vuln/detail/CVE-2022-24854'>CVE-2022-24854</a>
492 </td>
493 <td valign='top'>Not a bug in SQLite</td>
494 <td valign='top'>This CVE describes a bug in an application that uses SQLite, not in SQLite itself.
495 SQLite is doing everything correctly. The application grants users the ability to
496 run SQL statements, using SQLite, that can leak or change information that those users
497 should not normally have access to. This is purely an application bug. It does not
498 describe a malfunction or vulnerability in SQLite.</td>
499 </tr>
500
501 <tr><td valign='top'>
502 <a href='https://nvd.nist.gov/vuln/detail/CVE-2022-21227'>CVE-2022-21227</a>
503 </td>
504 <td valign='top'>Not a bug in SQLite</td>
505 <td valign='top'>This CVE describes a bug in a third-party packages that provides a binding
506 for SQLite to Node.js. The bug reported is in the third-party Node.js binding,
507 not in SQLite itself. Do not be confused by the use of the word "SQLite" in the
508 ambiguously-worded CVE description.</td>
509 </tr>
510
511 <tr><td valign='top'>
512 <a href='https://nvd.nist.gov/vuln/detail/CVE-2021-45346'>CVE-2021-45346</a>
513 </td>
514 <td valign='top'>Not a bug in SQLite</td>
515 <td valign='top'>This CVE is misinformation. See the discussion around
516 <a href="https://sqlite.org/forum/forumpost/53de8864ba114bf6">SQLite forum post 53de8864ba114bf</a>.</td>
517 </tr>
518
519 <tr><td valign='top'>
520 <a href='https://nvd.nist.gov/vuln/detail/CVE-2021-42169'>CVE-2021-42169</a>
521 </td>
522 <td valign='top'>Not a bug in SQLite</td>
523 <td valign='top'>This CVE has nothing whatsoever to do with SQLite. It is about a bug in
524 application that happens to use SQLite. Since SQLite is mentioned in the
525 CVE description, the CVE is included here to emphasize that
526 this is not an SQLite bug.</td>
527 </tr>
528
529 <tr><td valign='top'>
530 <a href='https://nvd.nist.gov/vuln/detail/CVE-2021-36690'>CVE-2021-36690</a>
531 </td>
532 <td valign='top'>Not a bug in the core SQLite library</td>
533 <td valign='top'>This bug is not in the SQLite core library, but rather in an
534 <a href="https://www.sqlite.org/src/dir?ci=trunk&name=ext/expert">
535 experimental extension</a> that is used to implement the
536 <a href="cli.html#expert">.expert command</a> in the <a href="cli.html">CLI</a>. The code that contains the bug
537 does not appear in <a href="amalgamation.html">standard SQLite builds</a>, though it
538 is included in the <a href="cli.html">sqlite3.exe command-line tool</a>.
539 Applications must link against the extra source code files that
540 implement the extension and take other deliberate actions to
541 activate the extension before the troublesome code can be run.
542 For the rare application that uses the troublesome extension,
543 the consequence of this bug is that malicious SQL can cause a
544 NULL pointer deference and denial of service.
545 <a href='https://sqlite.org/forum/info/78165fa25061742f'>(details)</a></td>
546 </tr>
547
548 <tr><td valign='top'>
549 <a href='https://nvd.nist.gov/vuln/detail/CVE-2021-28305'>CVE-2021-28305</a>
550 </td>
551 <td valign='top'>Not a bug in SQLite</td>
552 <td valign='top'>This is not a bug in SQLite. The bug is in a third-party application that
553 uses SQLite. SQLite is mentioned by name in the CVE description,
554 however, so we have included the CVE in the list.</td>
555 </tr>
556
557 <tr><td valign='top'>
558 <a href='https://nvd.nist.gov/vuln/detail/CVE-2021-23404'>CVE-2021-23404</a>
559 </td>
560 <td valign='top'>Not a bug in SQLite</td>
561 <td valign='top'>This is not a bug in SQLite. The bug is in a third-party application that
562 uses SQLite and includes "sqlite" in its name. This CVE is included on the
563 list because it mentions SQLite even though the bug has nothing to do
564 with SQLite.</td>
565 </tr>
566
567 <tr><td valign='top'>
568 <a href='https://nvd.nist.gov/vuln/detail/CVE-2021-20227'>CVE-2021-20227</a>
569 </td>
570 <td valign='top'><a href="releaselog/3_34_1.html">3.34.1</a><br>(2021-01-20)</td>
571 <td valign='top'>Malicious SQL statement causes read-after-free. No harm can come of this
572 particular read-after-free instance, as far as anyone knows. The bug is
573 undetectable without a memory sanitizer. The CVE
574 claims that this bug is an RCE - a Remote Code Execution
575 vulnerability, but that claim is incorrect.
576 The RCE claim is misinformation.
577 <a href='https://sqlite.org/src/info/30a4c323650cc949'>(details)</a></td>
578 </tr>
579
580 <tr><td valign='top'>
581 <a href='https://nvd.nist.gov/vuln/detail/CVE-2021-20223'>CVE-2021-20223</a>
582 </td>
583 <td valign='top'><a href="releaselog/3_34_0.html">3.34.0</a><br>(2020-12-01)</td>
584 <td valign='top'>The problem identified by this CVE is <u>not</u> a vulnerability.
585 It is a malfunction. A coding error causes <a href="fts5.html">FTS5</a>
586 to sometimes return inconsistent and incorrect results under obscure circumstances,
587 but no memory errors occur.
588 <a href='https://sqlite.org/src/info/b7b7bde9b7a03665'>(details)</a></td>
589 </tr>
590
591 <tr><td valign='top'>
592 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-15358'>CVE-2020-15358</a>
593 </td>
594 <td valign='top'><a href="releaselog/3_32_3.html">3.32.3</a><br>(2020-06-18)</td>
595 <td valign='top'>Malicious SQL statement causes a read past the end of a heap buffer.
596 <a href='https://sqlite.org/src/info/8f157e8010b22af0'>(details)</a></td>
597 </tr>
598
599 <tr><td valign='top'>
600 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-13871'>CVE-2020-13871</a>
601 </td>
602 <td valign='top'><a href="releaselog/3_32_3.html">3.32.3</a><br>(2020-06-18)</td>
603 <td valign='top'>Malicious SQL statement causes a read-only use-after-free memory error.
604 <a href='https://sqlite.org/src/info/c8d3b9f0a750a529'>(details)</a></td>
605 </tr>
606
607 <tr><td valign='top'>
608 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-13632'>CVE-2020-13632</a>
609 </td>
610 <td valign='top'><a href="releaselog/3_32_0.html">3.32.0</a><br>(2020-05-22)</td>
611 <td valign='top'>Malicious SQL statement causes a read of a NULL pointer in the
612 <a href="fts3.html#matchinfo">matchinfo()</a> SQL function of the <a href="fts3.html">FTS3</a> extension, resulting in
613 denial of service.
614 <a href='https://sqlite.org/src/info/a4dd148928ea65bd'>(details)</a></td>
615 </tr>
616
617 <tr><td valign='top'>
618 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-13631'>CVE-2020-13631</a>
619 </td>
620 <td valign='top'><a href="releaselog/3_32_0.html">3.32.0</a><br>(2020-05-22)</td>
621 <td valign='top'>Malicious SQL statement (an ALTER TABLE that tries to rename a
622 <a href="vtab.html">virtual table</a> into one of its own <a href="vtab.html#xshadowname">shadow tables</a>)
623 causes an infinite loop and denial of service.
624 <a href='https://sqlite.org/src/info/eca0ba2cf4c0fdf7'>(details)</a></td>
625 </tr>
626
627 <tr><td valign='top'>
628 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-13630'>CVE-2020-13630</a>
629 </td>
630 <td valign='top'><a href="releaselog/3_32_0.html">3.32.0</a><br>(2020-05-22)</td>
631 <td valign='top'>Malicious SQL statement causes a read-only use-after-free,
632 possibly resulting in an incorrect output from the <a href="fts3.html#snippet">snippet()</a>
633 SQL function of the <a href="fts3.html">FTS3</a> extension. There is no known
634 way to exfiltrate data or crash the application using this bug.
635 <a href='https://sqlite.org/src/info/0d69f76f0865f962'>(details)</a></td>
636 </tr>
637
638 <tr><td valign='top'>
639 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-13435'>CVE-2020-13435</a>
640 </td>
641 <td valign='top'><a href="releaselog/3_32_1.html">3.32.1</a><br>(2020-05-25)</td>
642 <td valign='top'>Malicious SQL statement causes a read access to a NULL pointer and
643 denial of service.
644 <a href='https://www.sqlite.org/src/info/7a5279a25c57adf1'>(details)</a></td>
645 </tr>
646
647 <tr><td valign='top'>
648 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-13434'>CVE-2020-13434</a>
649 </td>
650 <td valign='top'><a href="releaselog/3_32_1.html">3.32.1</a><br>(2020-05-25)</td>
651 <td valign='top'>Malicious SQL statement involving the printf() SQL function results
652 in an integer overflow which can overwrite the stack with over 2
653 billion bytes of 0x30 or 0x20 (ASCII '0' or ' ').
654 Even though this is a stack overwrite, there is no known way to
655 redirect control or otherwise escalate the level of harm.
656 This is a denial-of-service attack only.
657 <a href='https://www.sqlite.org/src/info/23439ea582241138'>(details)</a></td>
658 </tr>
659
660 <tr><td valign='top'>
661 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-11656'>CVE-2020-11656</a>
662 </td>
663 <td valign='top'><a href="releaselog/3_32_0.html">3.32.0</a><br>(2020-05-22)</td>
664 <td valign='top'>Malicious SQL statement causes read-only use-after-free of memory allocation
665 if SQLite is compile with -DSQLITE_DEBUG. Does not affect release
666 builds.
667 <a href='https://www.sqlite.org/src/info/4722bdab08cb1'>(details)</a></td>
668 </tr>
669
670 <tr><td valign='top'>
671 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-11655'>CVE-2020-11655</a>
672 </td>
673 <td valign='top'><a href="releaselog/3_32_0.html">3.32.0</a><br>(2020-05-22)</td>
674 <td valign='top'>Malicious SQL statement causes a read using an uninitialized pointer
675 and denial-of-service.
676 <a href='https://www.sqlite.org/src/info/af4556bb5c285c08'>(details)</a></td>
677 </tr>
678
679 <tr><td valign='top'>
680 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-9327'>CVE-2020-9327</a>
681 </td>
682 <td valign='top'><a href="releaselog/3_32_0.html">3.32.0</a><br>(2020-05-22)</td>
683 <td valign='top'>Malicious SQL statement causes a read using an uninitialized pointer
684 and denial-of-service
685 <a href='https://www.sqlite.org/src/info/4374860b29383380'>(details)</a></td>
686 </tr>
687
688 <tr><td valign='top'>
689 <a href='https://nvd.nist.gov/vuln/detail/CVE-2020-6405'>CVE-2020-6405</a>
690 </td>
691 <td valign='top'><a href="releaselog/3_31_0.html">3.31.0</a><br>(2020-01-22)</td>
692 <td valign='top'>Malicious SQL statement causes a NULL pointer dereference and
693 denial-of-service
694 <a href='https://www.sqlite.org/src/info/1bc783da63d58b05'>(details)</a></td>
695 </tr>
696
697 <tr><td valign='top'>
698 <a href='https://nvd.nist.gov/vuln/detail/CVE-2019-20218'>CVE-2019-20218</a>
699 </td>
700 <td valign='top'><a href="releaselog/3_31_0.html">3.31.0</a><br>(2020-01-22)</td>
701 <td valign='top'>Malicious SQL statement causes an uninitialized pointer read and
702 denial-of-service.
703 <a href='https://www.sqlite.org/src/timeline?r=better-error-handling-1'>(details)</a></td>
704 </tr>
705
706 <tr><td valign='top'>
707 <a href='https://nvd.nist.gov/vuln/detail/CVE-2019-19959'>CVE-2019-19959</a>
708 </td>
709 <td valign='top'><a href="releaselog/3_31_0.html">3.31.0</a><br>(2020-01-22)</td>
710 <td valign='top'>Malicious SQL statement causes a NULL pointer dereference
711 in the <a href="zipfile.html">Zipfile virtual table</a> extension and
712 denial-of-service. This is only possible when the optional
713 <a href="zipfile.html">Zipfile virtual table</a> extension is deployed, which is not
714 the case in default builds.
715 <a href='https://www.sqlite.org/src/info/cc0fb00a128fd077'>(details)</a></td>
716 </tr>
717
718 <tr><td valign='top'>
719 <a href='https://nvd.nist.gov/vuln/detail/CVE-2019-19926'>CVE-2019-19926</a>
720 </td>
721 <td valign='top'><a href="releaselog/3_31_0.html">3.31.0</a><br>(2020-01-22)</td>
722 <td valign='top'>Malicious SQL statement causes an uninitialized pointer read and
723 denial-of-service.
724 <a href='https://www.sqlite.org/src/info/cba2a2a44cdf138a'>(details)</a></td>
725 </tr>
726
727 <tr><td valign='top'>
728 <a href='https://nvd.nist.gov/vuln/detail/CVE-2019-19925'>CVE-2019-19925</a>
729 </td>
730 <td valign='top'><a href="releaselog/3_31_0.html">3.31.0</a><br>(2020-01-22)</td>
731 <td valign='top'>Malicious SQL statement causes a NULL pointer dereference and
732 in the <a href="zipfile.html">Zipfile virtual table</a> extension and
733 denial-of-service. This is only possible when the optional
734 <a href="zipfile.html">Zipfile virtual table</a> extension is deployed, which is not
735 the case in default builds.
736 <a href='https://www.sqlite.org/src/info/a80f84b511231204'>(details)</a></td>
737 </tr>
738
739 <tr><td valign='top'>
740 <a href='https://nvd.nist.gov/vuln/detail/CVE-2019-19924'>CVE-2019-19924</a>
741 </td>
742 <td valign='top'><a href="releaselog/3_31_0.html">3.31.0</a><br>(2020-01-22)</td>
743 <td valign='top'>Malicious SQL statement causes an uninitialized pointer reference and
744 denial-of-service.
745 <a href='https://www.sqlite.org/src/info/e2bddcd4c55ba3cb'>(details)</a></td>
746 </tr>
747
748 <tr><td valign='top'>
749 <a href='https://nvd.nist.gov/vuln/detail/CVE-2019-19923'>CVE-2019-19923</a>
750 </td>
751 <td valign='top'><a href="releaselog/3_31_0.html">3.31.0</a><br>(2020-01-22)</td>
752 <td valign='top'>Malicious SQL statement causes a NULL pointer dereference and
753 denial-of-service.
754 <a href='https://www.sqlite.org/src/info/862974312edf00e9'>(details)</a></td>
755 </tr>
756
757 <tr><td valign='top'>
758 <a href='https://nvd.nist.gov/vuln/detail/CVE-2019-19646'>CVE-2019-19646</a>
759 </td>
760 <td valign='top'><a href="releaselog/3_31_0.html">3.31.0</a><br>(2020-01-22)</td>
761 <td valign='top'>The <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command might cause the byte-code for a prepared
762 statement to loop indefinitely. This might enable a denial-of-service, if the
763 application has not taken appropriate and prudent steps
764 to limit the run-time of SQL statements. This is not a vulnerability, as there
765 are countless perfectly valid SQL queries, especially queries involving
766 <a href="lang_with.html#recursivecte">recursive common table expressions</a>, that also run essentially forever.
767 <a href='https://sqlite.org/src/info/bd8c280671ba44a7'>(details)</a></td>
768 </tr>
769
770 <tr><td valign='top'>
771 <a href='https://nvd.nist.gov/vuln/detail/CVE-2019-19317'>CVE-2019-19317</a>
772 </td>
773 <td valign='top'><a href="releaselog/3_31_0.html">3.31.0</a><br>(2020-01-22)</td>
774 <td valign='top'>This CVE identifies a bug in a development check-in of
775 SQLite. The bug never appeared in any official SQLite release.
776 <a href='https://www.sqlite.org/src/info/6601da58032d18ae'>(details)</a></td>
777 </tr>
778
779
780 </tbody>
781 </table>
782 <p align="center"><small><i>This page last modified on <a href="https://sqlite.org/docsrc/honeypot" id="mtimelink" data-href="https://sqlite.org/docsrc/finfo/pages/cves.in?m=376423da67">2024-07-02 11:43:42</a> UTC </small></i></p>
783