# CVE-2026-47763: pdm: Project-Local State and Config Writes Follow Symlinks

- Severity: Medium 6.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-10T20:32:56.000Z
- Modified: 2026-10-24T16:10:00.153Z
- Also known as: GHSA-ghq2-5c67-fprm, PYSEC-2026-2862
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

pdm is a Python package and dependency manager supporting the latest PEP standards. In versions prior to 2.27.0, pdm writes several project-local state or configuration files without symlink protection. If a malicious repository places those files as symlinks, local PDM operations can overwrite the symlink targets. This creates an arbitrary file clobber primitive relative to the privileges of the invoking user. Config.__init__() resolves the project-local pdm.toml path and _save_config() writes to the resolved target. If PROJECT_ROOT/pdm.toml is a symlink to another file, pdm config -l ... updates the target file instead of refusing the write.
The same general problem exists for other project-local persistence paths that are written directly with no lstat / O_NOFOLLOW protection. For the pdm.toml PoC specifically, the target file must already contain parseable TOML. Otherwise the load step fails before the write path is reached. That parser constraint does not apply to the .pdm-python or .python-version sinks. This issue has been fixed in version 2.27.0.

(As written by CVE List.)

## Affected

- pdm-project pdm: <  2.27.0
- pdm (PyPI): before 2.27.0

## Every score

- GitHub_M: CVSS:4.0 6.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/pdm-project/pdm/security/advisories/GHSA-ghq2-5c67-fprm> (exploit, web)
- <https://github.com/pdm-project/pdm/releases/tag/2.27.0> (web)
- <https://github.com/pdm-project/pdm> (package)
- <https://pypi.org/project/pdm> (package)
- <https://github.com/advisories/GHSA-ghq2-5c67-fprm> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47763> (advisory)

## Sources

- CVE List: [CVE-2026-47763](https://www.cve.org/CVERecord?id=CVE-2026-47763), CVE Terms of Use, modified 2026-08-05
- GitHub Advisory Database: [GHSA-ghq2-5c67-fprm](https://github.com/advisories/GHSA-ghq2-5c67-fprm), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-47763](https://nvd.nist.gov/vuln/detail/CVE-2026-47763), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-2862](https://osv.dev/vulnerability/PYSEC-2026-2862), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-47763 · Whole record: https://cve.day/CVE-2026-47763.json · Rebuilt by cve.day 2026-11-25T22:59:31.000Z
