CVE-2023-45805
Last modified
CVE-2023-45805 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.51% chance of exploitation in the next 30 days.
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/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Frostming | Pdm | >= 2.0.0, < 2.10.0 |
| Frostming | Unearth | < 0.11.2 |
References
- https://github.com/pdm-project/pdm/commit/6853e2642dfa281d4a9958fbc6c95b7e32d84831Patch, Vendor Advisory
- https://github.com/pdm-project/pdm/security/advisories/GHSA-j44v-mmf2-xvm9Exploit, Vendor Advisory
- https://peps.python.org/pep-0440/#post-release-spellingNot Applicable
- https://github.com/pdm-project/pdm/commit/6853e2642dfa281d4a9958fbc6c95b7e32d84831Patch, Vendor Advisory
- https://github.com/pdm-project/pdm/security/advisories/GHSA-j44v-mmf2-xvm9Exploit, Vendor Advisory
- https://peps.python.org/pep-0440/#post-release-spellingNot Applicable
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-45805?
How severe is CVE-2023-45805?
How do I fix CVE-2023-45805?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-4580Push notifications stored on disk in private browsing mode w…6.5
- CVE-2023-45800Improper Neutralization of Special Elements used in an SQL C…7.5
- CVE-2023-45801Improper Authentication vulnerability in Nadatel DVR allows …7.5
- CVE-2023-45802When a HTTP/2 stream was reset (RST frame) by a client, ther…5.9
- CVE-2023-45803urllib3 is a user-friendly HTTP client library for Python. u…4.2
- CVE-2023-45804Rejected reason: User requested a CVE number by mistake
- CVE-2023-45806Discourse is an open source platform for community discussio…5.4
- CVE-2023-45807OpenSearch is a community-driven, open source fork of Elasti…5.4
- CVE-2023-45808iTop is an IT service management platform. When creating or…5.4
- CVE-2023-45809Wagtail is an open source content management system built on…2.7
- CVE-2023-4581Excel `.xll` add-in files did not have a blocklist entry in …4.3
- CVE-2023-45810OpenFGA is a flexible authorization/permission engine built …7.5
Are you affected by CVE-2023-45805?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
