{"schemaVersion":3,"id":"CVE-2024-7625","aliases":["UBUNTU-CVE-2024-7625","GHSA-25qx-vfw2-fw8r","GO-2024-3073"],"status":"published","duplicateOf":null,"title":null,"description":"In HashiCorp Nomad and Nomad Enterprise from 0.6.1 up to 1.6.13, 1.7.10, and 1.8.2, the archive unpacking process is vulnerable to writes outside the allocation directory during migration of allocation directories when multiple archive headers target the same file. This vulnerability, CVE-2024-7625, is fixed in Nomad 1.6.14, 1.7.11, and 1.8.3. Access or compromise of the Nomad client agent at the source allocation first is a prerequisite for leveraging this vulnerability.","dates":{"published":"2024-08-14T23:20:17.888Z","modified":"2025-01-09T19:19:01.219Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.8,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N","exploitability":3.3,"impact":6.7,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":4.6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":5.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N","exploitability":3.3,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00336,"percentile":0.25616,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00336},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00336,"percentile":0.25616}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00336,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00336,"percentile":0.25616}]},"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-610","name":"Externally Controlled Reference to a Resource in Another Sphere","description":"The product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/610.html"}],"affected":[{"vendor":"ubuntu","product":"nomad","name":"nomad","label":"nomad","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/nomad","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/hashicorp","product":"nomad","name":"github.com/hashicorp/nomad","label":"nomad","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/hashicorp/nomad","purlType":"golang","versions":[{"text":"≥ 0.6.1, < 1.6.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.7.0, < 1.7.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.8.0, < 1.8.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.6.1, < 1.8.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.6.1, < 1.6.14 | ≥ 1.7.0, < 1.7.11 | ≥ 1.8.0, < 1.8.3 | ≥ 0.6.1, < 1.8.3","eol":null,"hubHref":null},{"vendor":"hashicorp","product":"nomad","name":"nomad","label":"nomad","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.6.1, < 1.8.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.6.1, < 1.6.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.7.0, < 1.7.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.8.0, ≤ 1.8.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.8.0, < 1.8.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.6.1, < 1.8.3 | ≥ 0.6.1, < 1.6.14 | ≥ 1.7.0, < 1.7.11 | ≥ 1.8.0, ≤ 1.8.3 | ≥ 1.8.0, < 1.8.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"nomad","label":"Nomad","category":"server-app"}},"hubHref":"/vendor/hashicorp/nomad"},{"vendor":"hashicorp","product":"nomad enterprise","name":"Nomad Enterprise","label":"nomad enterprise","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.6.1, < 1.8.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.6.1, < 1.8.3","eol":null,"hubHref":"/vendor/hashicorp/nomad_enterprise"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2024-17-nomad-vulnerable-to-allocation-directory-escape-on-non-existing-file-paths-through-archive-unpacking/69293","label":"discuss.hashicorp.com/t/…","hostname":"discuss.hashicorp.com","tags":["REPORT","WEB","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-7625","label":"ubuntu.com/security/CVE-2024-7625","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-7625","label":"www.cve.org/CVERecord?id=CVE-2024-7625","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7625","label":"nvd.nist.gov/vuln/detail/CVE-2024-7625","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-25qx-vfw2-fw8r","label":"github.com/advisories/GHSA-25qx-vfw2-fw8r","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-08-14T23:20:17.888Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-01-09T19:19:01.219Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":23,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T13:18:49.787Z","stale":false,"partial":false}}