Home / pdm-project / pdm / CVE-2023-45805
CVE-2023-45805: is it exploited, and which versions of pdm-project pdm are affected and fixed?
CVE-2023-45805 is an improper input validation vulnerability in pdm-project pdm. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: pdm through 2.9.3 (GitHub advisory GHSA-j44v-mmf2-xvm9). Fixed in 2.10.0 and 0.11.2 (NVD). Severity: High (7.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:35 UTC.
What is CVE-2023-45805?
Trojan Lockfilein pdm
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.
From the CVE record by GitHub_M, last updated September 12, 2024, 15:01 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pdm-project | pdm | >= 2.0.0,< 2.9.4 |
As the CVE record by GitHub_M states it, last updated September 12, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | pdm | <= 2.9.3 | none listed | GHSA-j44v-mmf2-xvm9 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 20, 2023. Summary: PDM Trojan Lockfile.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| frostming | pdm | from 2.0.0 before 2.10.0 | application |
| frostming | unearth | before 0.11.2 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:29 UTC.
How severe is CVE-2023-45805?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | GitHub_M |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-45805 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, September 12, 2024)
- EPSS
- 0.45% probability of exploitation activity in the next 30 days, percentile 40.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
Where are the vendor advisories and references?
- https://github.com/pdm-project/pdm/security/advisories/GHSA-j44v-mmf2-xvm9 x_refsource_CONFIRM
- https://github.com/pdm-project/pdm/commit/6853e2642dfa281d4a9958fbc6c95b7e32d84831 x_refsource_MISC
- https://github.com/frostming/unearth/blob/eca170d9370ac5032f2e497ee9b1b63823d3fe0f/src/unearth/evaluator.py#L215-L229 x_refsource_MISC
- https://github.com/pdm-project/pdm/blob/45d1dfa47d4900c14a31b9bb761e4c46eb5c9442/src/pdm/models/candidates.py#L98-L99 x_refsource_MISC
- https://peps.python.org/pep-0440/#post-release-spelling x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- October 13, 2023
- Published
- October 20, 2023, 18:12 UTC
- CVE record updated
- September 12, 2024, 15:01 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:29 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:35 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect pdm?
- Dec 2, 2026CVE-2026-141547 pdm-project pdm: external Control of System or Configuration Setting
- Aug 4, 2026CVE-2026-47781 pdm-project pdm: inclusion of code from an untrusted source
- Aug 4, 2026CVE-2026-47764 pdm-project pdm: path traversal (reading or writing files outside the intended folder)
- Aug 4, 2026CVE-2026-47763 pdm-project pdm: UNIX Symbolic Link (Symlink) Following
Questions about CVE-2023-45805
Is CVE-2023-45805 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.45% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of pdm-project pdm are affected by CVE-2023-45805?
pdm through 2.9.3, per the GitHub advisory GHSA-j44v-mmf2-xvm9. The tables above give every range the sources list.
Which version fixes CVE-2023-45805?
2.10.0 and 0.11.2, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-45805?
High (7.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-45805?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.