{"id":"CVE-2026-5271","aliases":["CVE-2026-5271"],"related":[],"kind":"vulnerability","state":"published","title":"Possible to hijack modules in current working directory","summary":"pymanager included the current working directory in sys.path meaning modules could be shadowed by modules in the current working directory. As a result, if a user executes a pymanager-generated command (e.g., pip, pytest)\n from an attacker-controlled directory, a malicious module in that \ndirectory can be imported and executed instead of the intended package.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"pymanager included the current working directory in sys.path meaning modules could be shadowed by modules in the current working directory. As a result, if a user executes a pymanager-generated command (e.g., pip, pytest)\n from an attacker-controlled directory, a malicious module in that \ndirectory can be imported and executed instead of the intended package.","source":"cvelist"},{"lang":"es","text":"pymanager incluyó el directorio de trabajo actual en sys.path, lo que significaba que los módulos podían ser solapados por módulos en el directorio de trabajo actual. Como resultado, si un usuario ejecuta un comando generado por pymanager (por ejemplo, pip, pytest) desde un directorio controlado por un atacante, un módulo malicioso en ese directorio puede ser importado y ejecutado en lugar del paquete previsto.","source":"nvd"}],"published":"2026-04-01T13:48:07.534Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"PSF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"PSF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-427"],"affected":[{"ranges":[{"type":"python","introduced":"26.0","fixed":"26.1","status":"affected"}],"vendor":"Python Software Foundation","product":"pymanager","repo":"https://github.com/python/pymanager","source":"cvelist"},{"ranges":[{"status":"affected","version":"26.0"}],"vendor":"python","product":"pymanager","cpe":"cpe:2.3:a:python:pymanager:26.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/01/5","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Steve Dower","LAKSHMIKANTHAN K"],"assigner":"PSF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-04-01T17:58:52.079Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5271","url":"https://www.cve.org/CVERecord?id=CVE-2026-5271","licence":"CVE Terms of Use","modified":"2026-04-01T23:12:18.741Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5271","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5271","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:17.692Z","epss":{"score":0.00206,"percentile":0.1125,"date":"2026-12-01T12:00:22.000Z"}}