CVE-2023-45805

HighCVSS 7.8/10Last modified Jun 17, 2026

Description

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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Oct 20, 2023
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2023

CVE-2023-458065.4Discourse is an open source platform for community discussion. Prior to version 3.1.3 of the `stable` branch and version 3.2.0.beta3 of the CVE-2023-458075.4OpenSearch is a community-driven, open source fork of Elasticsearch and Kibana following the license change in early 2021. There is an issueCVE-2023-458085.4iTop is an IT service management platform. When creating or updating an object, extkey values aren't checked to be in the current user siloCVE-2023-458092.7Wagtail is an open source content management system built on Django. A user with a limited-permission editor account for the Wagtail admin cCVE-2023-45814.3Excel `.xll` add-in files did not have a blocklist entry in Firefox's executable blocklist which allowed them to be downloaded without any wCVE-2023-458107.5OpenFGA is a flexible authorization/permission engine built for developers and inspired by Google Zanzibar. Affected versions of OpenFGA areCVE-2023-458117.8Synchrony deobfuscator is a javascript cleaner & deobfuscator. A `__proto__` pollution vulnerability exists in versions before v2.4.4. SuccCVE-2023-458127.5The Apollo Router is a configurable, high-performance graph router written in Rust to run a federated supergraph that uses Apollo FederationCVE-2023-458137.5Torbot is an open source tor network intelligence tool. In affected versions the `torbot.modules.validators.validate_link function` uses theCVE-2023-458145.3Bunkum is an open-source protocol-agnostic request server for custom game servers. First, a little bit of background. So, in the beginning, CVE-2023-458155.4ArchiveBox is an open source self-hosted web archiving system. Any users who are using the `wget` extractor and view the content it outputs.CVE-2023-458163.3Discourse is an open source platform for community discussion. Prior to version 3.1.3 of the `stable` branch and version 3.2.0.beta3 of the
CVE-2023-45805: High severity, CVSS 7.8 | Vulnix