{"id":"EEF-CVE-2026-23939","summary":"Path Traversal in Local File Store Backend","details":"## Summary\n\nImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in hexpm hexpm/hexpm ('Elixir.Hexpm.Store.Local' module) allows Relative Path Traversal. This vulnerability is associated with program files lib/hexpm/store/local.ex and program routines '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\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: 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.","aliases":["CVE-2026-23939","GHSA-42mv-r64p-4869"],"modified":"2026-09-08T03:45:03.850424905Z","published":"2026-02-26T19:41:18.762Z","database_specific":{"cpe_ids":["cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-22"],"capec_ids":["CAPEC-139"]},"references":[{"type":"ADVISORY","url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-42mv-r64p-4869"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-23939.html"},{"type":"FIX","url":"https://github.com/hexpm/hexpm/commit/5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hexpm/hexpm.git","events":[{"introduced":"931ee0ed46fa89218e0400a4f6e6d15f96406050"},{"fixed":"5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0"}]}],"database_specific":{"source":"https://cna.erlef.org/osv/EEF-CVE-2026-23939.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}],"credits":[{"name":"Michael Lubas / Paraxial.io","type":"FINDER"},{"name":"Jonatan Männchen / EEF","type":"REMEDIATION_DEVELOPER"},{"name":"Eric Meadows-Jönsson / Hex.pm","type":"REMEDIATION_REVIEWER"}]}