Mcpm: DuckDB implemented block-based encryption of DB on the filesystem starting with DuckDB 1.4.0. (CVE-2025-64429)
DuckDB, a SQL database management system, introduced block-based encryption on the filesystem starting with version 1.4.0. Several issues were found in this implementation, including fallback to an insecure random number generator (pcg32), potential removal of memory clearing calls by the compiler, downgrade attacks from GCM to CTR encryption modes, and unchecked return values from OpenSSL's random byte generation. These vulnerabilities could allow attackers to compromise cryptographic keys, bypass integrity checks, or influence the random number generator state. Version 1.4.2 addresses these issues by disabling the insecure RNG fallback, using secure memory clearing primitives, requiring explicit cipher specification, and checking return codes.
AI Analysis
Technical Summary
DuckDB implemented block-based encryption starting with version 1.4.0 but had multiple cryptographic weaknesses: fallback to an insecure RNG (pcg32) for key and IV generation, potential compiler optimization removing memory clearing (memset) calls leaving sensitive data in memory, downgrade attacks from GCM to CTR mode allowing bypass of integrity checks, failure to check return values from OpenSSL's rand_bytes(), and exposure of cryptographic keys via public IVs or memory leaks. These issues could allow attackers to recover encryption keys, circumvent integrity protections, or manipulate the RNG state undetected. The vendor fixed these issues in version 1.4.2 by disabling the insecure RNG fallback, switching to secure MbedTLS memory clearing, enforcing explicit cipher specification disallowing insecure modes like CTR, and adding return code checks.
Potential Impact
The vulnerabilities could allow attackers to obtain cryptographic keys by exploiting insecure random number generation or memory clearing flaws, bypass encryption integrity checks by downgrading encryption modes, and potentially influence the RNG state without detection. This compromises the confidentiality and integrity of encrypted database files and temporary files. However, no known exploits are reported in the wild.
Mitigation Recommendations
A patch is available and should be applied. DuckDB version 1.4.2 disables the insecure RNG fallback, uses secure memory clearing methods, requires explicit cipher specification excluding insecure modes like CTR, and checks return codes from cryptographic functions. Users should upgrade to version 1.4.2 or later to mitigate these vulnerabilities.
Mcpm: DuckDB implemented block-based encryption of DB on the filesystem starting with DuckDB 1.4.0. (CVE-2025-64429)
Description
DuckDB, a SQL database management system, introduced block-based encryption on the filesystem starting with version 1.4.0. Several issues were found in this implementation, including fallback to an insecure random number generator (pcg32), potential removal of memory clearing calls by the compiler, downgrade attacks from GCM to CTR encryption modes, and unchecked return values from OpenSSL's random byte generation. These vulnerabilities could allow attackers to compromise cryptographic keys, bypass integrity checks, or influence the random number generator state. Version 1.4.2 addresses these issues by disabling the insecure RNG fallback, using secure memory clearing primitives, requiring explicit cipher specification, and checking return codes.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
DuckDB implemented block-based encryption starting with version 1.4.0 but had multiple cryptographic weaknesses: fallback to an insecure RNG (pcg32) for key and IV generation, potential compiler optimization removing memory clearing (memset) calls leaving sensitive data in memory, downgrade attacks from GCM to CTR mode allowing bypass of integrity checks, failure to check return values from OpenSSL's rand_bytes(), and exposure of cryptographic keys via public IVs or memory leaks. These issues could allow attackers to recover encryption keys, circumvent integrity protections, or manipulate the RNG state undetected. The vendor fixed these issues in version 1.4.2 by disabling the insecure RNG fallback, switching to secure MbedTLS memory clearing, enforcing explicit cipher specification disallowing insecure modes like CTR, and adding return code checks.
Potential Impact
The vulnerabilities could allow attackers to obtain cryptographic keys by exploiting insecure random number generation or memory clearing flaws, bypass encryption integrity checks by downgrading encryption modes, and potentially influence the RNG state without detection. This compromises the confidentiality and integrity of encrypted database files and temporary files. However, no known exploits are reported in the wild.
Mitigation Recommendations
A patch is available and should be applied. DuckDB version 1.4.2 disables the insecure RNG fallback, uses secure memory clearing methods, requires explicit cipher specification excluding insecure modes like CTR, and checks return codes from cryptographic functions. Users should upgrade to version 1.4.2 or later to mitigate these vulnerabilities.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-mcpm-CVE-2025-64429
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Patch Information
Threat ID: 6aac8e4a55bf5e2cf549141a
Added to database: 09/18/2026, 01:05:14 UTC
Last enriched: 09/18/2026, 01:47:35 UTC
Last updated: 09/18/2026, 03:25:27 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.