---
id: CVE-2025-71316
title: >-
  SQLite 'sqldiff.exe' does not securely handle the way the Microsoft Windows C
  runtime converts Unicode characters to ANSI codepages
summary: >-
  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
  str…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-176
published: '2026-06-04'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T02:18:25.980'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71316'
references:
  - url: >-
      https://i.blackhat.com/EU-24/Presentations/EU-24-Tsai-V2-WorstFit-Unveiling-Hidden-Transformers-in-Windows-ANSI.pdf
    label: 9119a7d8-5eab-497f-8521-727c672e3725
  - url: >-
      https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getcommandlinea#security-remarks
    label: 9119a7d8-5eab-497f-8521-727c672e3725
  - url: >-
      https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2026/va-26-155-01.json
    label: 9119a7d8-5eab-497f-8521-727c672e3725
  - url: 'https://sqlite.org/src/file/tool/winmain.c'
    label: 9119a7d8-5eab-497f-8521-727c672e3725
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-71316'
    label: 9119a7d8-5eab-497f-8521-727c672e3725
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-765416.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00384
epssPercentile: 0.3078
ingestedAt: '2026-10-15T03:30:12.897Z'
vendor: SQLite
product: sqldiff
affected:
  - sqldiff < 2025-12-26
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-06-05T03:55:53.116575Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
