{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-28684","id":"CVE-2026-28684","title":"python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback","description":"python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, ap","descriptionLong":"python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, apply the patch manually.","published":"2026-04-20T16:25:12.302Z","updated":"2026-11-17T11:57:21.806882927Z","reserved":"2026-03-02T21:43:19.927Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","rating":"medium","source":"GitHub"}],"rating":"medium","products":["theskumar python-dotenv"],"affectedProducts":[{"vendor":"theskumar","product":"python-dotenv","defaultStatus":null,"versions":[{"version":"< 1.2.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"python-dotenv","purl":"pkg:pypi/python-dotenv","ranges":["<1.2.2"],"fixed":["1.2.2"],"advisory":"GHSA-mf9w-mj56-hr94"}],"cwes":["CWE-59","CWE-61"],"aliases":["GHSA-mf9w-mj56-hr94","PYSEC-2026-2270"],"references":[{"url":"https://github.com/theskumar/python-dotenv/security/advisories/GHSA-mf9w-mj56-hr94","tags":["x_refsource_CONFIRM","exploit","Exploit","Patch","Vendor Advisory","advisory","web","fix"]},{"url":"https://github.com/theskumar/python-dotenv/commit/790c5c02991100aa1bf41ee5330aca75edc51311","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/theskumar/python-dotenv/releases/tag/v1.2.2","tags":["x_refsource_MISC","Release Notes","web","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28684.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28684","tags":["advisory"]},{"url":"https://github.com/theskumar/python-dotenv/commit/790c5c02991100aa1bf41ee5330aca75edc51311.patch","tags":["web"]},{"url":"https://github.com/theskumar/python-dotenv","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00262,"epssPercentile":0.18263,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-28684","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28684","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-28684","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mf9w-mj56-hr94","ok":true,"note":"GHSA-mf9w-mj56-hr94"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-28684","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}