{"id":"CVE-2026-23939","aliases":["CVE-2026-23939","EEF-CVE-2026-23939","GHSA-42mv-r64p-4869"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in Local File Store Backend","summary":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in hexpm hexpm/hexpm (Hexpm.Store.Local module) allows Relative Path Traversal.\n\nThis vulnerability is associated with program files lib/hexpm/store/local.ex and program routines Hexpm.Store.Local.get/3, Hexpm.Store.Local.put/4, Hexpm.Store.Local.delete/2, Hexpm.Store.Local.delete_many/2.\n\nThis issue does NOT affect hex.pm the service. Only self-hosted deployments using the Local Storage backend are affected.\n\nThis issue affects hexpm/hexpm: from 931ee0ed46fa89218e0400a4f6e6d15f96406050 before 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in hexpm hexpm/hexpm (Hexpm.Store.Local module) allows Relative Path Traversal.\n\nThis vulnerability is associated with program files lib/hexpm/store/local.ex and program routines Hexpm.Store.Local.get/3, Hexpm.Store.Local.put/4, Hexpm.Store.Local.delete/2, Hexpm.Store.Local.delete_many/2.\n\nThis issue does NOT affect hex.pm the service. Only self-hosted deployments using the Local Storage backend are affected.\n\nThis issue affects hexpm/hexpm: from 931ee0ed46fa89218e0400a4f6e6d15f96406050 before 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in hexpm hexpm/hexpm (`Hexpm.Store.Local` module) allows Relative Path Traversal.\n\nThis vulnerability is associated with program files `lib/hexpm/store/local.ex` and program routines `Hexpm.Store.Local.get/3`, `Hexpm.Store.Local.put/4`, `Hexpm.Store.Local.delete/2`, `Hexpm.Store.Local.delete_many/2`.\n\nThis issue does NOT affect hex.pm the service. Only self-hosted deployments using the Local Storage backend are affected.\n\nThis issue affects hexpm/hexpm: from 931ee0ed46fa89218e0400a4f6e6d15f96406050 before 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0.\n\n## Workarounds\n\n* Avoid the local file store backend in any exposed environment.\n* Restrict network access to the registry when using the local backend.\n* Production deployments should use object storage (e.g., S3-compatible backends) instead of the local filesystem store.\n\n## Configurations\n\nOnly self-hosted hexpm deployments using the `Hexpm.Store.Local` storage backend are affected. The hex.pm service and deployments using S3-compatible object storage backends are not affected.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de Limitación Inadecuada de un Nombre de Ruta a un Directorio Restringido ('Salto de Ruta') en hexpm hexpm/hexpm (módulo 'Elixir.Hexpm.Store.Local') permite Salto de Ruta Relativo. Esta vulnerabilidad está asociada con los archivos de programa lib/hexpm/store/local.ex y las rutinas de programa 'Elixir.Hexpm.Store.Local':get/3, 'Elixir.Hexpm.Store.Local':put/4, 'Elixir.Hexpm.Store.Local':delete/2, 'Elixir.Hexpm.Store.Local':delete_many/2.\n\nEste problema NO afecta a hex.pm el servicio. Solo las implementaciones autoalojadas que utilizan el backend de Almacenamiento Local se ven afectadas.\n\nEste problema afecta a hexpm: desde 931ee0ed46fa89218e0400a4f6e6d15f96406050 antes de 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0.","source":"nvd"}],"published":"2026-02-26T19:41:18.762Z","modified":"2026-11-25T06:30:20.677Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"git","introduced":"931ee0ed46fa89218e0400a4f6e6d15f96406050","fixed":"5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0","status":"affected"}],"vendor":"hexpm","product":"hexpm","package":"hexpm/hexpm","cpe":"cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*","repo":"https://github.com/hexpm/hexpm","source":"cvelist"},{"ranges":[{"type":"git","introduced":"931ee0ed46fa89218e0400a4f6e6d15f96406050","status":"affected","fixed":"5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0"}],"repo":"https://github.com/hexpm/hexpm","source":"eef"},{"ranges":[{"status":"affected","introduced":"2014-09-29","fixed":"2026-02-26"}],"vendor":"hex","product":"hexpm","cpe":"cpe:2.3:a:hex:hexpm:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-42mv-r64p-4869","tags":["advisory","mitigation","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-23939.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-23939","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hexpm/hexpm/commit/931ee0ed46fa89218e0400a4f6e6d15f96406050","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/hexpm/hexpm/commit/5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]}],"credits":["Michael Lubas / Paraxial.io","Jonatan Männchen / EEF","Eric Meadows-Jönsson / Hex.pm"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-02-26T20:24:13.786Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23939","url":"https://www.cve.org/CVERecord?id=CVE-2026-23939","licence":"CVE Terms of Use","modified":"2026-11-20T02:54:32.371Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-23939","url":"https://osv.dev/vulnerability/EEF-CVE-2026-23939","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:20.677Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23939","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23939","licence":"Public domain","modified":"2026-11-20T03:17:35.700Z"}],"updatedAt":"2026-11-25T22:59:14.970Z","epss":{"score":0.00581,"percentile":0.49123,"date":"2026-12-02T12:00:21.000Z"}}