[New-bugs-announce] [issue43762] Add audit events for loading of sqlite3 extensions

Erlend Egeberg Aasland report at bugs.python.org
Wed Apr 7 06:51:19 EDT 2021

New submission from Erlend Egeberg Aasland <erlend.aasland at innova.no>:

If Python is configured with --enable-loadable-sqlite-extensions, it is possible to load third party SQLite extensions (shared libraries/DLL’s) via the sqlite3 extension module. When enabled, the sqlite3.Connection.enable_load_extension() class method will enable the loading of third party extensions via SQL queries, using the SQL function load_extension(). It also enables loading extension via C, using the sqlite3.Connection.load_extension() class method.

Suggesting to add the following audit event names to respectively the sqlite3.Connection.enable_load_extension() and sqlite3.Connection.load_extension() methods:
- sqlite3.enable_load_extension
- sqlite3.load_extension

- https://discuss.python.org/t/should-we-audit-enabling-loading-of-sqlite3-extensions-shared-libraries/8124
- https://www.sqlite.org/loadext.html
- https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.enable_load_extension

components: Library (Lib)
messages: 390414
nosy: berker.peksag, christian.heimes, erlendaasland
priority: normal
severity: normal
status: open
title: Add audit events for loading of sqlite3 extensions
type: security
versions: Python 3.10

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list