CVE & CISA-KEV Catalog

CVE-2025-64429

MEDIUM
6.5
CVSS v3
NVD

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.

How to fix

Remediation Available
duckdbNVD
Affected:>= 1.4.0, < 1.4.2Fixed in:1.4.2CVE-2025-64429derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploit Intelligence

0.10%probability of exploitation in 30 days
1stpercentile

Low risk: more likely to be exploited than 1% of all known CVEs.

References

Vendor Advisory1
Release Notes1
Product1

Related Vulnerabilities

Other CWE-327 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2015-2808Low3.774%-Fix
CVE-2023-34039Critical9.864%-Fix
CVE-2016-6602Critical9.855%--
CVE-2014-8687Critical9.844%--
CVE-2020-13777High7.418%-Fix
CVE-2017-17428Medium5.915%--
Embed a live status badge for CVE-2025-64429
CVE-2025-64429 severity badge

Markdown

[![CVE-2025-64429](https://tridentstack.com/cve/badge/CVE-2025-64429.svg)](https://tridentstack.com/cve/CVE-2025-64429)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-64429"><img src="https://tridentstack.com/cve/badge/CVE-2025-64429.svg" alt="CVE-2025-64429"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-25.