SQLite 漏洞与安全更新
40 条
12月5日周六昨天
filelock: ReadWriteLock can delete a private file from a leftover SQLite journal
受影响: pip:filelock < 4.3.0 → 4.3.0 A ReadWriteLock database can retain an untrusted SQLite journal after its directory changes from shared to private. Opening the database can delete an unrelated file that the locking account has permission to read and remove. Changing directory permissions does not remove existing journals. Affected versions and fix The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. When SQLite side files are present, the lock opens the database through a private hard link. [PR #976](…
filelock: ReadWriteLock write holds overlap on read-only SQLite header
受影响: pip:filelock < 4.3.0 → 4.3.0 Two ReadWriteLock callers can both acquire a write lock if the shared SQLite database advertises a write format that SQLite treats as read-only. Another account needs write access to the lock database. Affected versions and fix The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. The lock rejects an unsupported SQLite write format before granting a hold. [PR #979](https://github.com/tox-dev/filelock/pull/979) Workaround Restrict write access to the lock database and its…
12月3日周四
USN-9259-2: SQLite vulnerabilities
USN-9259-1 fixed vulnerabilities in SQLite. This update provides the corresponding updates for Ubuntu 24.04 LTS. Original advisory details: It was discovered that SQLite did not count common table expressions against the expression depth limit. An attacker could possibly use this issue to cause SQLite to crash, resulting in a denial of service. (CVE-2026-119371) It was discovered that SQLite incorrectly handled certain full-text search queries that used the snippet() function in the FTS3 and FTS4 extensions, leading to a use-after-free. An attacker could possibly use this issue to cause SQLit…
12月2日周三
Seqora: a desktop client for PostgreSQL, with a free EXPLAIN visualizer
Seqora is a new desktop client for PostgreSQL, for Windows, macOS 12 or later and Linux. It also connects to MySQL, MariaDB, SQLite and SQL Server, with fewer features on those. Alongside the client there is a free web page, https://seqora.dev/explain/ , that draws a pasted EXPLAIN ANALYZE plan in JSON or text format. Row counts are multiplied over loops, so each band is as wide as the rows that crossed it, and an estimate off by more than 2x is drawn beside the actual. The plan is parsed in the browser and not uploaded, and a share link carries it in the URL fragment. The page draws one plan…
11月20日周五
sqlite-mcp: Read-only mode bypass via statement chaining and SQL injection in describe_table
受影响: go:github.com/StacklokLabs/sqlite-mcp < 0.1.2 → 0.1.2 In read-only mode (the default), a client that can call the MCP tools can write to the database the server is meant to expose read-only, read other SQLite files, and create new SQLite files anywhere the server process can write. There are two ways in: statement chaining through execute_query, and SQL injection through describe_table. Details - Statement chaining in execute_query. The only check was that the query starts with SELECT. The modernc.org/sqlite driver runs every ;-separated statement…
11月19日周四
Bun v1.4.5
This is a security release. It updates lsquic, c-ares, SQLite, llhttp and BoringSSL.
11月16日周一
NLTK: Symlink escape in chat80.sql_query bypasses the pathsec data-root sandbox to read out-of-root SQLite databases
受影响: pip:nltk >= 3.9.4, <= 3.10.3 → 3.10.4 nltk.sem.chat80.sql_query() opens a SQLite database by handing the result of nltk.data.find(dbname) straight to sqlite3.connect() without the path-containment check that the NLTK data sandbox (nltk.pathsec) is meant to enforce. nltk.data.find() applies only lexical checks to the resource name and returns a FileSystemPathPointer whose path is normalized with os.path.abspath but never resolved for symlinks. As a result, an in-root symbolic link that points at a SQLite file outside every registere…
11月14日周六
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
受影响: rubygems:sqlite3 <= 2.10.1 → 2.10.2 sqlite3-ruby cast Ruby string lengths (long) to int before passing them to SQLite. On 64-bit platforms, a string of 4 GiB (2^32 bytes) or larger had its length wrap, so SQLite saw only the first length mod 2^32 bytes. An attacker who controls the length of a SQL string could truncate the query, for example dropping a trailing WHERE clause. The affected paths are: - the SQL passed to Database#prepare, #execute, and related methods - String and Blob values passed to Statement#bind_param and relat…
11月13日周五
面向移动 SQLite 数据库的上下文感知证据抽取:一个符号—神经框架
作者:Jeel Piyushkumar Khatiwala, Divyangkumar Patel, Dianxiang Xu, Weifeng Xu 原文链接:https://arxiv.org/pdf/2611.03323v1 摘要 从移动 SQLite 数据库中可靠地抽取取证证据是一项颇具挑战性的工作,原因在于:应用数据库模式(schema)缺乏文档记录、会随版本发布而演进,并且在不同操作系...
11月11日周三
Active Storage: Possible DoS vulnerability in Active Storage filename handling
受影响: rubygems:activestorage >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:activestorage < 8.0.5.2 → 8.0.5.2 ActiveStorage::Filename#base and #extension_with_delimiter, and therefore #extension, pass the stored filename unmodified to File.basename and File.extname, which raise ArgumentError when the name contains a NUL byte. Active Storage stores the client-supplied filename verbatim, so a user who is permitted to upload an attachment could persist such a filename on databases that accept NUL bytes in string columns, such as SQLite and MySQL/MariaDB. Each subsequent request that builds a variant or pr…
Nuxt Content: Unauthenticated SQLite Function DoS via Content Query API
受影响: npm:@nuxt/content >= 3.0.0, < 3.15.2 → 3.15.2 The POST /__nuxt_content/:collection/query endpoint in @nuxt/content accepts an attacker-controlled sql field from the HTTP request body and executes it against a local SQLite database after passing it through an insufficient validator (assertSafeQuery). The validator only blocks a small set of SQL command keywords and does not reject expensive SQLite built-in functions such as randomblob(), zeroblob(), hex(), or length(). An unauthenticated remote attacker can craft a single request that force…
10月31日周六
AdminNeo SQLite: multi_query Incorrect Check of Function Return Value RCE
受影响: composer:adminneo-org/adminneo < 5.5.1 → 5.5.1 This vulnerability is a patch bypass that exploits catastrophic backtracking in a regular expression used to filter ATTACH statements in AdminNeo's SQLite functionality. The original vulnerability (CVE-2021-43008) allowed authenticated users to create PHP files through SQLite ATTACH statements, achieving remote code execution. The patch introduced a regex filter to block ATTACH queries, but this filter is vulnerable to catastrophic backtracking. Originally reported by @zdi-disclosures in Admine…
AdminNeo SQLite Database-List Drop Arbitrary File Deletion
受影响: composer:adminneo-org/adminneo < 5.5.1 → 5.5.1 AdminNeo allows an authenticated SQLite-mode user to delete arbitrary files writable by the PHP process through the database-list drop action. The SQLite driver validates file extensions when creating or renaming databases, but the database-list drop path passes submitted db[] values directly to unlink(). Originally reported by @slpoiuewalspoid-dotcom in Adminer: https://github.com/vrana/adminer/security/advisories/GHSA-6pg3-chwq-wgqc Impact An authenticated AdminNeo SQLite user with a valid CS…
AdminNeo: RCE via SQLite VACUUM INTO (ATTACH Blocklist Bypass)
受影响: composer:adminneo-org/adminneo < 5.5.1 → 5.5.1 Adminer blocks ATTACH queries for SQLite to prevent arbitrary file creation. However, VACUUM INTO is not blocked and achieves the same result: writing a database file containing attacker-controlled PHP code to any path with any extension. An authenticated SQLite user can write a web shell to the web root and execute commands. Originally reported in Adminer: [GHSA-q4f2-39gr-45jh](https://github.com/vrana/adminer/security/advisories/GHSA-gmx3-g29w-77wf) Root Cause sql.inc.php, line 146: php if (D…
10月29日周四
filelock ReadWriteLock: a crafted lock database makes every acquire stall or hang regardless of timeout
受影响: pip:filelock >= 3.20.4, <= 4.2.0 → 4.2.1 ReadWriteLock and AsyncReadWriteLock (the SQLite-backed reader/writer lock) run PRAGMA journal_mode=MEMORY on a fresh connection for every acquire. That statement makes SQLite load the whole schema (the sqlite_master table, which lists every table and index with its CREATE text) of whatever file sits at the lock path. The caller's timeout reaches SQLite only as busy_timeout, which bounds waits for another connection's lock, not schema loading. The only content checks reject non-regular files an…
filelock: ReadWriteLock follows a symlink at the lock path into SQLite
受影响: pip:filelock >= 3.20.4, <= 4.0.8 → 4.0.9 ReadWriteLock and AsyncReadWriteLock resolve the lock path with pathlib.Path.resolve() and pass it to sqlite3.connect() without refusing a symlink. A local user who can create names in the lock's directory, such as /tmp or a shared cache, can plant a symlink at the lock path and make the victim's process create, lock, or write the file it points to, or break mutual exclusion between the victim's own processes. Details ReadWriteLock.__init__ stores pathlib.Path(lock_file).resolve(), which follow…
10月24日周六
filelock: ReadWriteLock on the hard-link route deletes any directory another user renames onto its .filelock-* link directory name
受影响: pip:filelock >= 4.1.0, <= 4.2.0 → 4.2.1 ReadWriteLock and AsyncReadWriteLock (the SQLite-backed reader/writer lock) remove their private .filelock- link directories with shutil.rmtree (a recursive delete) on a remembered path. They do not check that the path still names the directory they created. This happens on the hard-link route (a hard link is a second name for the same file). That route is every connection on macOS since 4.1.1 and any POSIX process without a usable /proc/self/fd (a Linux path that names the process's own open f…
filelock: ReadWriteLock on Windows acts on SQLite side files another local user places beside its database
受影响: pip:filelock >= 3.20.4, <= 4.2.0 → 4.2.1 On Windows, ReadWriteLock and AsyncReadWriteLock (the SQLite-backed reader/writer lock) connect SQLite to the lock database by its path, in every directory. SQLite derives three side files from that path: -journal, the rollback journal (pages saved to undo an interrupted write); -wal, the write-ahead log (changes kept outside the main file); and -shm, the shared-memory index of the WAL. SQLite acts on whichever of these it finds beside the database before the lock runs any statement. Another lo…
LangGraph: Namespace labels containing `.` reach other namespaces in Postgres and SQLite stores
受影响: pip:langgraph-checkpoint-postgres < 3.1.3 → 3.1.3, pip:langgraph-checkpoint-sqlite < 3.1.2 → 3.1.2 The Postgres and SQLite stores save a namespace as its labels joined with ., so ("tenant", "bob") and ("tenant.bob",) map to the same stored namespace. put rejected labels containing ., but get, search, delete, list_namespaces, their async versions, and ops passed directly to batch/abatch did not. A caller that could pass such a label could read, overwrite or delete items in another namespace. Details BaseStore checked namespace labels only in put/aput. The other methods passed the namespace on…
filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files
受影响: pip:filelock >= 3.20.4, <= 4.2.0 → 4.2.1 ReadWriteLock and AsyncReadWriteLock (the SQLite-backed reader/writer lock) hand SQLite a name they do not control. On Linux the lock validates its database through a descriptor (the number the kernel gives a process for an open file). It then connects SQLite to /proc/self/fd/ , a Linux path that names the process's own open file n. SQLite turns that path back into a plain path and reopens it by name, following symlinks (a symlink is a file that points at another path). On every POSIX route SQL…
obsidian-tc: Memory-lifecycle tools overwrite unowned notes or partially commit lifecycle changes
受影响: npm:obsidian-tc >= 1.0.1, <= 1.31.3 → 1.31.4 create_entity, link_entities, rename_entity, unlink_entities and delete_entity regenerate a memory note's body from SQLite at the computed memory/ / .md path. When a note already existed at that path and was not owned by the entity being written (a hand-authored note, or an orphan left by a different entity whose name sanitized to the same path), its entire body was overwritten on the next write naming that (type, name), keeping only its frontmatter. Separately, several of these tools inserted…
10月23日周五
Safer secrets, ZJIT, and more!
New apps stop falling back to Marshal for signed messages, the local secret file is no longer world-readable, and SQLite finally renames columns the way the database intended. Here’s what’s new in Rails:
10月22日周四
Bun v1.4.4
Fixes 271 issues, addressing 544 👍. bun fmt, a Prettier-compatible formatter built into Bun that is 3x to 6x faster than oxfmt, bun check is 1.4x to 7.8x faster on large projects, bun install migrates Yarn Berry lockfiles, retries with exponential backoff and closes 133 issues, up to 3.2x faster hoisted installs from a warm cache on Linux, bun pm fetch, bun publish --recursive, packageExtensions, Bun.SQL uses up to 48% less CPU per query, query.cancel(), COPY streams, column name transforms, user-defined functions and update hooks in bun:sqlite, ws rewritten to behave like npm ws on Node.js,…
10月21日周三
ApostropheCMS: Authenticated projection-exclusion prototype-member deletion in @apostrophecms/db-connect causes process-wide denial of service
受影响: npm:@apostrophecms/db-connect < 1.1.0 → 1.1.0, npm:apostrophe < 4.33.0 → 4.33.0 @apostrophecms/db-connect ships an in-memory MongoDB emulation used by its SQLite, PostgreSQL, and multipostgres adapters. Its unsetNestedField helper walks an attacker-controlled dotted field path with no segment validation and calls delete on the resolved property. A low-privileged authenticated user (any role holding view-draft, which every editor and contributor has; reduced to any logged-in user when guestApiAccess is enabled) can send a piece-type REST GET request whose project qu…
10月16日周五
Faster blank? checks, safer SQLite rollbacks, and more!
Hi, it’s Vipul. Let’s explore this week’s changes in the Rails codebase.
10月1日周四
Migrating Pinkary from Laravel Forge to Laravel Cloud: An engineering playbook
Pinkary's move from Laravel Forge to Laravel Cloud exposed SQLite and MySQL differences, query assumptions, and local-storage coupling. Here is the code-backed migration playbook.
1月13日周二
Bun v1.3.6
Fixes 45 issues (addressing 125 👍). Bun.Archive API for creating & extracting tarballs with gzip compression, Bun.JSONC for parsing JSON with comments, metafile & files options in Bun.build for bundle analysis and virtual files, Response.json() 3.5x faster, 15% faster async/await, 30% faster Promise.race, 20x faster Bun.hash.crc32, faster Buffer.indexOf/includes with SIMD, HTTP/HTTPS proxy support for WebSocket, S3 Requester Pays support, --grep flag for bun test, fake timers now work with @testing-library/react, SQLite updated to 3.51.2, and numerous Node.js compatibility improvements.
12月6日周六
Bun v1.3.4
Fixes 194 issues (addressing 412 👍). URLPattern API, Fake Timers for bun:test, Custom Proxy Headers in fetch(),console.log %j format, http.Agent connection pooling fix, Standalone executable config loading changes, SQLite 3.51.1, and numerous bugfixes for bun:test, Node.js compatibility, Windows, Web APIs, bun install, and more
11月21日周五
Bun v1.3.3
Fixes 95 issues (addressing 348 👍). CompressionStream and DecompressionStream, Control .env and bunfig.toml loading in standalone executables, `retry` and `repeats` in `bun:test`, --no-env-file, SQLite 3.51.0, Upgraded to Zig 0.15.2, Bugfixes for bundler, bun install, Windows, Node.js compatibility, Web APIs, Bun.serve, networking, Bun.YAML, Bun.Transpiler, Bun.spawn & TypeScript definitions
8月26日周二
Bun v1.2.21
Fixes 69 issues (addressing 204 👍). Bun.SQL now supports MySQL and SQLite, alongside PostgreSQL. Native YAML support. 500x faster postMessage(string). Bun.build() compile API, with cross-platform targets. Reduced idle CPU usage. Bun.stripANSI for SIMD-accelerated ANSI escape removal. bunx --package flag support. customizable User-Agent headers. Windows executable metadata embedding. and extensive Node.js compatibility improvements
6月22日周日
Bun v1.2.17
Fixes 50 issues (addressing 80 👍), and adds +24 passing Node.js tests. Ahead-of-time bundling for HTML imports, more reliable Bun Shell, `setTimeout` and `setImmediate` use 8-15% less memory, `columnTypes` & `declaredTypes` in `bun:sqlite`, `bun info` is the new `bun pm view`, Node.js compatibility improvements to `child_process.fork`, `fs.glob` options are now optional, `tls.getCACertificates()` is now implemented, `bun init` generates `CLAUDE.md` when claude code is installed, and more.
2月19日周三
Deno 2.2: OpenTelemetry, Lint Plugins, node:sqlite
Deno 2.2 adds built-in OpenTelemetry, a new linter plugin API, node:sqlite, and major improvements to deno check, deno lsp, and deno task.
11月29日周五
Bun v1.1.38
Fixes 7 bugs (addressing 14 👍). Fixes debugger bug causing Bun to hang in VSCode terminal. Fixes crash in `postgres` npm package. Fixes TypeScript minification bug, console.log improvements, updated SQLite and c-ares. Adds `reusePort` option to `Bun.listen` and `node:net`, and fixes a bug in `Bun.FileSystemRouter.reload()`. Fixes rare crash in `fetch()`. Fixes assertion failure when re-assigning global modules in `--print` or `--eval`
10月18日周五
Bun v1.1.31
Fixes 41 bugs (addressing 595 👍). node:http2 server and gRPC server support, ca and cafile support in bun install, Bun.inspect.table, bun build --drop, iterable SQLite queries, iterator helpers, Promise.try, Buffer.copyBytesFrom, and several Node.js compatibility improvements and bugfixes.
6月19日周三
Bun v1.1.14
Fixes 63 bugs (addressing 519 👍). Patch node_modules with bun patch. ORM-less object mapping in bun:sqlite. Log fetch() calls as curl commands. Node.js compatibility improvements. bun install bugfixes, bun:sqlite bugfixes, WebSocket fixes, Windows bugfixes
2月4日周日
Bun v1.0.26
Fixes 30 bugs (addressing 60 👍 reactions), adds support for multi-statement queries in bun:sqlite, makes bun --watch more reliable in longer-running sessions, Bun.FileSystemRouter now supports more than 64 routes, fixes a bug with expect().toStrictEqual(), fixes 2 bugs with error.stack, improves Node.js compatibility
1月16日周二
Bun v1.0.23
Fixes 40 bugs (addressing 194 👍 reactions). import & embed sqlite databases in Bun, Resource Management ('using' TC39 stage3) support, bundler improvements when building for Node.js, bugfix for peer dependency resolution, semver bugfix, 4% faster TCP on linux, Node.js compatibility improvements and more
1月2日周二
Bun v1.0.21
Fixes 33 bugs (addressing 80 👍 reactions). console.table() support. Bun.write, Bun.file, and bun:sqlite use less memory. Large file uploads with FormData use less memory. bun:sqlite error messages get more detailed. Memory leak in errors from node:fs fixed. Node.js compatibility improvements, and many crashes fixed
8月6日周日
Bun v0.7.3
bun test gets code coverage reporting. bun test -t pattern lets you filter tests to run by regex pattern. Fixes a crash in bun:sqlite, node.js compatiblity improvements, and more.
6月12日周五
PHP 5.4.42 Released
The PHP development team announces the immediate availability of PHP 5.4.42. Six security-related issues in PHP were fixed in this release, as well as several security issues in bundled sqlite library (CVE-2015-3414, CVE-2015-3415, CVE-2015-3416). All PHP 5.4 users are encouraged to upgrade to this version. For source downloads of PHP 5.4.42 please visit our , Windows binaries can be found on . The list of changes is recorded in the . downloads page windows.php.net/download/ ChangeLog