BreachSpiderVerified, not vibes

CVE-2025-64429 in Duckdb

Medium 6.5

DuckDB is a SQL database management system. DuckDB implemented block-based encryption of DB on the filesystem starting with DuckDB 1.4.0. There are a few issues related to this implementation. The DuckDB can fall back to an insecure random number generator (pcg32) to generate cryptographic keys or IVs. When clearing...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.5
CVSS v46.9
EPSS0.2%
EPSS percentile5th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no availability impact.

Affected products and versions

VendorProductAffected versions
Duckdb Duckdb ≥ 1.4.0, < 1.4.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

DuckDB is a SQL database management system. DuckDB implemented block-based encryption of DB on the filesystem starting with DuckDB 1.4.0. There are a few issues related to this implementation. The DuckDB can fall back to an insecure random number generator (pcg32) to generate cryptographic keys or IVs. When clearing keys from memory, the compiler may remove the memset() and leave sensitive data on the heap. By modifying the database header, an attacker could downgrade the encryption mode from GCM to CTR to bypass integrity checks. There may be a failure to check return value on call to OpenSSL `rand_bytes()`. An attacker could use public IVs to compromise the internal state of RNG and determine the randomly generated key used to encrypt temporary files, get access to cryptographic keys if they have access to process memory (e.g. through memory leak),circumvent GCM integrity checks, and/or influence the OpenSSL random number generator and DuckDB would not be able to detect a failure of the generator. Version 1.4.2 has disabled the insecure random number generator by no longer using the fallback to write to or create databases. Instead, DuckDB will now attempt to install and load the OpenSSL implementation in the `httpfs` extension. DuckDB now uses secure MbedTLS primitive to clear memory as recommended and requires explicit specification of ciphers without integrity checks like CTR on `ATTACH`. Additionally, DuckDB now checks the return code.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-64429
BreachSpider IDBS-2025-GLOBAL-033906-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Published2025-11-12
Last modified2026-10-19
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-327: CWE-327

Related attack patterns (CAPEC)

CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-327

CAPEC-475 Signature Spoofing by Improper Validation via CWE-327

CAPEC-608 Cryptanalysis of Cellular Encryption via CWE-327

CAPEC-614 Rooting SIM Cards via CWE-327

CAPEC-20 Encryption Brute Forcing via CWE-327

Show all 7

CAPEC-97 Cryptanalysis via CWE-327

CAPEC-473 Signature Spoof via CWE-327

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

DuckDB, a SQL database management system, may use an insecure random number generator for cryptographic keys and IVs, and sensitive data may remain in memory due to compiler optimizations.

An attacker could exploit the use of the pcg32 random number generator to predict cryptographic keys or IVs, leading to potential data decryption. Additionally, sensitive data might not be properly cleared from memory, increasing the risk of data leakage.

Questions

What is CVE-2025-64429?

DuckDB, a SQL database management system, may use an insecure random number generator for cryptographic keys and IVs, and sensitive data may remain in memory due to compiler optimizations.

What is the CVSS score for CVE-2025-64429?

CVE-2025-64429 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N. EPSS: 0.2%.

Is CVE-2025-64429 actively exploited?

No confirmed active exploitation of CVE-2025-64429 as of 2026-10-25.

How do I remediate CVE-2025-64429?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2025-64429?

CVE-2025-64429 affects Duckdb Duckdb.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Duckdb","product":"Duckdb","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.