{"id":"CVE-2026-47763","published":"2026-08-04T17:29:41Z","modified":"2026-08-05T15:00:39Z","title":"pdm: Project-Local State and Config Writes Follow Symlinks","vendor":"pdm-project","product":"pdm","tier":"tail","description":{"text":"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.\nThe 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00197,"percentile":0.05371,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://github.com/pdm-project/pdm/security/advisories/GHSA-ghq2-5c67-fprm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pdm-project/pdm/releases/tag/2.27.0","tags":["x_refsource_MISC"]}],"priority":{"score":5.8,"factors":[{"name":"EPSS percentile","points":1.07},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"pdm-project","affectedVersions":[{"vendor":"pdm-project","product":"pdm","versions":["<  2.27.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-05T15:00:17.473346Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pdm","vulnerableRanges":["<2.27.0"],"patched":["2.27.0"],"from":["GHSA-ghq2-5c67-fprm","PYSEC-2026-2862"],"provenance":"source"}],"summary":{"text":"PDM, a Python package and dependency manager, versions prior to 2.27.0 write project-local state and configuration files such as pdm.toml without symlink protection, so a symlink planted in a project can redirect those writes to other files. An attacker who supplies a malicious repository can cause local PDM operations to overwrite arbitrary files the invoking user can write to, provided the victim takes an action such as running PDM commands in that project, and the pdm.toml case additionally requires the symlink target to already contain parseable TOML.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:32Z"},"euvd":{"id":"EUVD-2026-52807","exploited":false,"provenance":"source"}}