Skip to main content

Mcpm: DuckDB implemented block-based encryption of DB on the filesystem starting with DuckDB 1.4.0. (CVE-2025-64429)

0
Medium
Published: 08/13/2026 (08/13/2026, 17:13:14 UTC)
Source: GCVE Database
Product: mcpm

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected software

Homebrewmore threats →ghsa
mcpm
pkg:brew/mcpm
Affected versions
>=2.8.2 <2.9.0_2

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

AILast updated: 09/18/2026, 01:47:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses