CVE-2025-71316

SQLite sqldiff remote code execution via argument injection

Published Jun 4, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
Description
SQLite 'sqldiff.exe' does not securely handle the way the Microsoft Windows C runtime converts Unicode characters to ANSI codepages. An attacker could use the '-L' option to load an arbitrary DLL with a crafted command line argument string that results in command line file arguments being misinterpreted as command line options. Fixed on or around 2025-12-26.

Analysis

AI-generated

Technical impact

SQLite sqldiff.exe fails to handle Microsoft Windows C runtime Unicode‑to‑ANSI conversions, enabling an attacker to pass a crafted '-L' argument that causes a chosen DLL to be loaded. This flaw lets the attacker execute arbitrary code with the privileges of the user running sqldiff. The vulnerability is a classic CWE‑176 (Command Injection) and can compromise confidentiality, integrity, and availability of the affected system.

Affected Systems

Windows installations of SQLite’s sqldiff utility that have not applied the bug fix released around 2025‑12‑26. All pre‑fix versions are vulnerable.

Risk and Exploitability

The CVSS score of 9.2 indicates high severity, but the EPSS score is not available, so actual exploitation probability is uncertain. Because the flaw requires passing a specially crafted command line, the most likely attack vector is a local attacker or automated attacker that can invoke sqldiff with arbitrary arguments. The flaw is not listed in the CISA KEV catalog, suggesting no documented large‑scale exploitation yet.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official patch released on 2025‑12‑26 to the sqldiff tool.
  • Restrict execution of sqldiff to trusted users by applying appropriate file‑system permissions.
  • Implement logging of command‑line arguments for sqldiff to detect suspicious activity.

Generated by OpenCVE AI on June 4, 2026 at 20:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sqlite
Sqlite sqlite
Vendors & Products Sqlite
Sqlite sqlite
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Type Values Removed Values Added
Description SQLite 'sqldiff.exe' does not securely handle the way the Microsoft Windows C runtime converts Unicode characters to ANSI codepages. An attacker could use the '-L' option to load an arbitrary DLL with a crafted command line argument string that results in command line file arguments being misinterpreted as command line options. Fixed on or around 2025-12-26.
Title SQLite sqldiff remote code execution via argument injection
Weaknesses CWE-176
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-176

    Improper Handling of Unicode Encoding

Sources

Status
PUBLISHED
Assigner
cisa-cg
Published
Updated
Oct 15, 2026, 1:11 AM
Reserved
Jun 4, 2026, 5:08 PM
Status
Awaiting Analysis
Published
Jun 4, 2026, 7:16 PM
Modified
Oct 15, 2026, 2:18 AM