{"schemaVersion":3,"id":"CVE-2026-23939","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Improper 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.","dates":{"published":"2026-02-26T19:41:18.762Z","modified":"2026-09-16T15:36:19.353Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.9,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.9,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00434,"percentile":0.36351,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.025000000000000022,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00409},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00434,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00434,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00434,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00434,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00434,"percentile":0.36351}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00434,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00434,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00434,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00434,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00434,"percentile":0.36351}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"hex","product":"hexpm","name":"hexpm","label":"hexpm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2014-09-29, < 2026-02-26","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2014-09-29, < 2026-02-26","eol":null,"hubHref":"/vendor/hex/hexpm"},{"vendor":"hexpm","product":"hexpm","name":"hexpm","label":"hexpm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 931ee0ed46fa89218e0400a4f6e6d15f96406050, < 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 931ee0ed46fa89218e0400a4f6e6d15f96406050, < 5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0","eol":null,"hubHref":"/vendor/hexpm/hexpm"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-42mv-r64p-4869","label":"github.com/hexpm/hexpm/security/advisories/GHSA-42mv-r64p-4869","hostname":"github.com","tags":["Vendor Advisory","Related","Mitigation"]},{"url":"https://cna.erlef.org/cves/CVE-2026-23939.html","label":"cna.erlef.org/cves/CVE-2026-23939.html","hostname":"cna.erlef.org","tags":["Related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-23939","label":"osv.dev/vulnerability/EEF-CVE-2026-23939","hostname":"osv.dev","tags":["Related"]},{"url":"https://github.com/hexpm/hexpm/commit/5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0","label":"github.com/hexpm/hexpm/commit/5d2ccd2f14f45a63225a73fb5b1c937baf36fdc0","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-02-26T19:41:18.762Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-16T15:36:19.353Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:05:48.652Z","stale":false,"partial":false}}