# CVE-2024-22682: PYSEC-2024-25 - DuckDB <=0.9.2 and DuckDB extension-template <=0.9.2 are vulnerable to malicious extension injection via the custom extension feature.

Source: https://junglewise.ai/threats/cve-2024-22682-pysec-2024-25-duckdb-0-9-2-and-duckdb-extension-template-0-9-2  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-01-30  
License: CC BY 4.0 with a link back

CVE-2024-22682 · Severity: low · CVSS 3.1 · Published 2024-01-30

DuckDB <=0.9.2 and DuckDB extension-template <=0.9.2 are vulnerable to malicious extension injection via the custom extension feature.

Technologies: [duckdb (PyPI)](https://junglewise.ai/threats/technologies/pypi-duckdb). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-22682 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-22682 being exploited in the wild.

**How severe is CVE-2024-22682?** Low severity, with a CVSS score of 3.1, published 30 January 2024.

**Which products and versions are affected?** duckdb (PyPI) ECOSYSTEM:introduced=0,fixed=0.9.3.dev6.

**Is there a fix for CVE-2024-22682?** Yes. duckdb (PyPI): upgrade to 0.9.3.dev6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-22682?** Check whether you run duckdb (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- duckdb (PyPI): upgrade to 0.9.3.dev6 or later

  ```sh
  pip install "duckdb>=0.9.3.dev6"
  ```


## Affected products

- duckdb (PyPI) ECOSYSTEM:introduced=0,fixed=0.9.3.dev6

## Identifiers

- CVE-2024-22682
- PYSEC-2024-25

## Related threats

- [DuckDB is a SQL database management system. DuckDB implemented block-based encryption of DB on the filesystem starting…](https://junglewise.ai/threats/cve-2025-64429-pysec-2025-112-duckdb-is-a-sql-database-management-system-duckdb)
- [sniff_csv provides filesystem access even when enable_external_access is disabled in duckdb](https://junglewise.ai/threats/cve-2024-41672-sniff-csv-provides-filesystem-access-even-when-enable-external)
