Read the docs
TI-2023-24566 Aliases CVE-2023-45805GHSA-j44v-mmf2-xvm9

Trojan Lockfilein pdm

Priority LOW 36CWE-20Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

pdm is a Python package and dependency manager supporting the latest PEP standards. It's possible to craft a malicious `pdm.lock` file that could allow e.g. an insider or a malicious open source project to appear to depend on a trusted PyPI project, but actually install another project. A project `foo` can be targeted by creating the project `foo-2` and uploading the file `foo-2-2.tar.gz` to pypi.org. PyPI will see this as project `foo-2` version `2`, while PDM will see this as project `foo` version `2-2`. The version must only be `parseable as a version` and the filename must be a prefix of the project name, but it's not verified to match the version being installed. Version `2-2` is also not a valid normalized version per PEP 440. Matching the project name exactly (not just prefix) would fix the issue. When installing dependencies with PDM, what's actually installed could differ from what's listed in `pyproject.toml` (including arbitrary code execution on install). It could also be used for downgrade attacks by only changing the version. This issue has been addressed in commit `6853e2642df` which is included in release version `2.9.4`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00452 39th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed pdm (pdm-project): 2.9.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
pdm-projectpdm2.0.0 to before 2.9.42.9.4Patch availableCNA
—pdm (PyPI)up to 2.9.3—No fix listedGHSA-j44v-mmf2-xvm9
  • pdm Vendorpdm-project Affected 2.0.0 to before 2.9.4 Fixed in 2.9.4 Patch available CNA
  • pdm (PyPI) Vendor— Affected up to 2.9.3 Fixed in — No fix listed GHSA-j44v-mmf2-xvm9

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:frostming:pdm:*:*:*:*:*:python:*:*2.0.0 to before 2.10.0Vulnerablefrostming
cpe:2.3:a:frostming:unearth:*:*:*:*:*:python:*:*before 0.11.2Vulnerablefrostming
  • cpe:2.3:a:frostming:pdm:*:*:*:*:*:python:*:* Versions 2.0.0 to before 2.10.0 Vulnerable ·frostming
  • cpe:2.3:a:frostming:unearth:*:*:*:*:*:python:*:* Versions before 0.11.2 Vulnerable ·frostming

Remediation

  • Fix · CNA pdm (pdm-project) Fixed in 2.9.4

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-45805
  2. 2026-10-03 Alias added: GHSA-j44v-mmf2-xvm9

References

  • TI-2026-35274 pdm: Project-Controlled `.pdm-plugins` Content Executes Before CLI Parsing CVSS 4.0HIGH 8.4
  • TI-2026-35260 pdm: Project-Local State and Config Writes Follow Symlinks CVSS 4.0MEDIUM 6.8
  • TI-2026-35261 pdm: Path traversal in wheel installation via overridden write_to_fs CVSS 4.0HIGH 8.4

Sources