CVE-2023-7104: SQLite SQLite3 make alltest sqlite3session.c sessionReadRecord heap-based overflow

Published Dec 25, 2023
·
Updated

A vulnerability was found in SQLite SQLite3 up to 3.43.0 and classified as critical. This issue affects the function sessionReadRecord of the file ext/session/sqlite3session.c of the component make alltest Handler. The manipulation leads to heap-based buffer overflow. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-248999.

Other sources

SQLite SQLite3 is vulnerable to a heap-based buffer overflow, caused by improper bounds checking by the sessionReadRecord function in ext/session/sqlite3session.c. By sending a specially crafted request, a remote authenticated attacker could overflow a buffer and execute arbitrary code on the system.

— IBM

Affected Software

22 affected componentsFixes available
debian/sqlite3<=3.34.1-3, <=3.40.1-2
3.34.1-3+deb11u13.46.0-13.46.1-1
IBM Security QRadar EDR<=3.12
SQLite SQLite<=3.43.0
Fedoraproject Fedora=38
Fedoraproject Fedora=39
alpine/qt5-qtwebengine<5.15.16-r5
5.15.16-r5
alpine/qt5-qtwebengine<5.15.16-r7
5.15.16-r7
alpine/qt5-qtwebengine<5.15.16-r7
5.15.16-r7
alpine/qt5-qtwebengine<5.15.16-r7
5.15.16-r7
alpine/qt5-qtwebengine<5.15.16-r7
5.15.16-r7
alpine/qt6-qtwebengine<6.6.1-r9
6.6.1-r9
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1
alpine/qt6-qtwebengine<6.6.3-r1
6.6.3-r1
alpine/sqlite<3.40.1-r1
3.40.1-r1
alpine/sqlite<3.40.1-r1
3.40.1-r1
alpine/sqlite<3.41.2-r3
3.41.2-r3
ubuntu/sqlite3<3.22.0-1ubuntu0.7+esm1
3.22.0-1ubuntu0.7+esm1
ubuntu/sqlite3<3.31.1-4ubuntu0.6
3.31.1-4ubuntu0.6
ubuntu/sqlite3<3.37.2-2ubuntu0.3
3.37.2-2ubuntu0.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/sqlite3 to a version that resolves this vulnerability.

    Fixed in 3.34.1-3+deb11u1Fixed in 3.46.0-1Fixed in 3.46.1-1
  2. Upgrade

    Upgrade alpine/qt5-qtwebengine to a version that resolves this vulnerability.

    Fixed in 5.15.16-r5
  3. Upgrade

    Upgrade alpine/qt5-qtwebengine to a version that resolves this vulnerability.

    Fixed in 5.15.16-r7
  4. Upgrade

    Upgrade alpine/qt6-qtwebengine to a version that resolves this vulnerability.

    Fixed in 6.6.1-r9
  5. Upgrade

    Upgrade alpine/qt6-qtwebengine to a version that resolves this vulnerability.

    Fixed in 6.6.3-r1
  6. Upgrade

    Upgrade alpine/sqlite to a version that resolves this vulnerability.

    Fixed in 3.40.1-r1
  7. Upgrade

    Upgrade alpine/sqlite to a version that resolves this vulnerability.

    Fixed in 3.41.2-r3
  8. Upgrade

    Upgrade ubuntu/sqlite3 to a version that resolves this vulnerability.

    Fixed in 3.22.0-1ubuntu0.7+esm1
  9. Upgrade

    Upgrade ubuntu/sqlite3 to a version that resolves this vulnerability.

    Fixed in 3.31.1-4ubuntu0.6
  10. Upgrade

    Upgrade ubuntu/sqlite3 to a version that resolves this vulnerability.

    Fixed in 3.37.2-2ubuntu0.3

Event History

Dec 25, 2023
CVE Published
via MITRE·09:00 PM
Data Sourced
09:00 PM
DescriptionSeverityWeakness
Dec 29, 2023
Data Sourced
12:00 AM
RemedyAffected Software
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Data Sourced
via MITRE·09:44 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·01:37 PM
DescriptionSeverityAffected Software
Jan 5, 2024
Updated
07:43 PM
SeverityWeakness
Jan 7, 2024
Updated
02:15 AM
Affected Software
Updated
02:15 AM
SeverityWeakness
Jan 8, 2024
Data Sourced
via NVD·05:46 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
05:46 PM
SeverityAffected Software
Updated
via NVD·05:46 PM
Affected Software
Jan 12, 2024
Event
via NVD·02:15 PM
Jan 17, 2024
Event
via FIRST·12:00 AM
Feb 29, 2024
Updated
via NVD·01:42 AM
Affected Software
Mar 21, 2024
Updated
via NVD·02:50 AM
Affected Software
Apr 11, 2024
Updated
via NVD·01:23 AM
Affected Software
May 17, 2024
Updated
via NVD·02:34 AM
Affected Software
Oct 7, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Mar 14, 2025
Updated
via IBM·12:00 AM
Affected Software
Nov 3, 2025
Updated
via NVD·10:16 PM
RemedyAffected Software
Oct 14, 2026
Updated
via NVD·11:17 PM
RemedyAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2023-7104?

CVE-2023-7104 is classified as a critical vulnerability.

2

How do I fix CVE-2023-7104?

To mitigate CVE-2023-7104, upgrade SQLite to version 3.43.0 or later.

3

What component is affected by CVE-2023-7104?

CVE-2023-7104 affects the SQLite3 function sessionReadRecord in the file ext/session/sqlite3session.c.

4

What type of vulnerability is CVE-2023-7104?

CVE-2023-7104 is a heap-based buffer overflow vulnerability.

5

Which software versions are vulnerable to CVE-2023-7104?

SQLite versions up to 3.43.0 are vulnerable to CVE-2023-7104.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203