{"schemaVersion":4,"id":"CVE-2026-140395","aliases":["GHSA-r48v-r4vw-h9v8","UBUNTU-CVE-2026-140395"],"status":"published","duplicateOf":null,"title":"Hugo 0.56.0 before 0.170.0 Path Traversal via _vendor/modules.txt","description":"Hugo from 0.56.0 before 0.170.0 contains a path traversal vulnerability that allows malicious themes or modules to read arbitrary build host files by supplying '..' segments in _vendor/modules.txt import paths. Attackers can make Hugo treat any directory as a module root and use readFile or static mounts to publish secrets, credentials, and system files in the generated site.","dates":{"published":"2026-12-01T14:29:10.962Z","modified":"2026-12-02T19:05:52.324Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/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},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":6.7,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":0.00785,"percentile":0.57417,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-12-02T00:00:00.000Z","score":0.00785,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00785,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00785,"percentile":0.57417}],"last30":[{"date":"2026-12-02T00:00:00.000Z","score":0.00785,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00785,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00785,"percentile":0.57417}]},"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","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":"ubuntu","product":"hugo","name":"hugo","label":"hugo","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/hugo","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gohugoio","product":"hugo","name":"hugo","label":"hugo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.56.0, < 0.170.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.56.0","startInclusive":true,"end":"0.170.0","endInclusive":false}}],"versionsText":"≥ 0.56.0, < 0.170.0","eol":null,"hubHref":"/vendor/gohugoio/hugo"},{"vendor":"github.com/gohugoio","product":"hugo","name":"github.com/gohugoio/hugo","label":"hugo","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/gohugoio/hugo","purlType":"golang","versions":[{"text":"≥ 0.56.0, < 0.170.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.56.0","startInclusive":true,"end":"0.170.0","endInclusive":false}}],"versionsText":"≥ 0.56.0, < 0.170.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-r48v-r4vw-h9v8","label":"github.com/gohugoio/hugo/security/advisories/GHSA-r48v-r4vw-h9v8","hostname":"github.com","tags":["Vendor Advisory","WEB","REPORT"]},{"url":"https://www.vulncheck.com/advisories/hugo-0.56.0-before-0.170.0-path-traversal-via-vendor-modules-txt","label":"www.vulncheck.com/advisories/hugo-0.56.0-before-0.170.0-path-traversal-via-vendor-modules-txt","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]},{"url":"https://github.com/gohugoio/hugo/pull/15564","label":"github.com/gohugoio/hugo/pull/15564","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/gohugoio/hugo/commit/d41a8a196e6b2fd5e5aa886c790d6c679dd73be0","label":"github.com/gohugoio/hugo/commit/d41a8a196e6b2fd5e5aa886c790d6c679dd73be0","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/gohugoio/hugo","label":"github.com/gohugoio/hugo","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.170.0","label":"github.com/gohugoio/hugo/releases/tag/v0.170.0","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2026-140395","label":"ubuntu.com/security/CVE-2026-140395","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-140395","label":"www.cve.org/CVERecord?id=CVE-2026-140395","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":["RHSA-2026:104146"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-12-01T14:29:10.962Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-02T19:05:52.324Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 0.170.0 (CNA); fix release not confirmed","rank":[0,0,0,0,1,87],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00785,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-02T19:05:52.324Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-12-02T19:05:52.324Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-12-02T19:05:52.324Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/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","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-12-02T19:05:52.324Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_go","date":"2026-12-02T19:05:52.324Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.7,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-12-02T18:47:23.881Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00785,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T10:02:10.250Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T10:02:10.837Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T10:02:11.033Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T10:01:03.214Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T10:02:08.667Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T10:02:07.694Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:13:01.906Z","stale":false,"partial":false}}