{"id":"CVE-2018-17297","aliases":["EUVD-2018-0685","GHSA-rhq2-2574-78mc"],"status":"published","title":"Unzip function in ZipUtil.java in Hutool allows remote attackers to overwrite arbitrary files via directory traversal","description":"The unzip function in ZipUtil.java in Hutool before 4.1.12 allows remote attackers to overwrite arbitrary files via directory traversal sequences in a filename within a ZIP archive.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02674,"percentile":0.85885,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-22"],"published":"2018-09-21T06:00:00Z","modified":"2026-06-17T01:45:37Z","exploits":[{"source":"pocgithub","id":"shoucheng3/dromara__hutool_CVE-2018-17297_4-1-1111","title":"shoucheng3/dromara__hutool_CVE-2018-17297_4-1-1111","date":"2025-08-19","url":"https://github.com/shoucheng3/dromara__hutool_CVE-2018-17297_4-1-1111"}],"fixes":[{"ecosystem":"Maven","package":"cn.hutool:hutool-parent","fixed_in":["4.1.12"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"cn.hutool:hutool-all","fixed_in":["4.1.12"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"cn.hutool:hutool-core","fixed_in":["4.1.12"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"cn.hutool:hutool-parent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.12"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"cn.hutool:hutool-all","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.12"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"cn.hutool:hutool-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.12"}]}]},{"source":"osv","ecosystem":"Maven","package":"cn.hutool:hutool-parent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.12"}]}],"versions":["4.0.0","4.0.1","4.0.10","4.0.11","4.0.12","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.0.7","4.0.8","4.0.9","4.1.0","4.1.1","4.1.10","4.1.11","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7","4.1.8","4.1.9"]},{"source":"osv","ecosystem":"Maven","package":"cn.hutool:hutool-all","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.12"}]}],"versions":["4.0.0","4.0.1","4.0.10","4.0.11","4.0.12","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.0.7","4.0.8","4.0.9","4.1.0","4.1.1","4.1.10","4.1.11","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7","4.1.8","4.1.9"]},{"source":"osv","ecosystem":"Maven","package":"cn.hutool:hutool-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.12"}]}],"versions":["4.0.0","4.0.1","4.0.10","4.0.11","4.0.12","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.0.7","4.0.8","4.0.9","4.1.0","4.1.1","4.1.10","4.1.11","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7","4.1.8","4.1.9"]}],"products":[{"vendor":"hutool","product":"hutool"}],"references":[{"url":"https://github.com/looly/hutool/issues/162","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-17297","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-rhq2-2574-78mc","tags":["advisory"]},{"url":"https://github.com/looly/hutool","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-17297","description":"The unzip function in ZipUtil.java in Hutool before 4.1.12 allows remote attackers to overwrite arbitrary files via directory traversal sequences in a filename within a ZIP archive.","status":"published","published":"2018-09-21T06:00:00Z","modified":"2024-08-05T10:47:04.089Z","updated_at":"2026-11-02T14:35:07.354449Z"}],"euvd":[{"id":"EUVD-2018-0685","description":"The unzip function in ZipUtil.java in Hutool before 4.1.12 allows remote attackers to overwrite arbitrary files via directory traversal sequences in a filename within a ZIP archive.","status":"published","published":"2018-09-21T06:00:00Z","modified":"2024-08-05T10:47:04Z","updated_at":"2026-11-03T02:39:39.229856Z"}],"ghsa":[{"id":"GHSA-rhq2-2574-78mc","title":"Unzip function in ZipUtil.java in Hutool allows remote attackers to overwrite arbitrary files via directory traversal","description":"The unzip function in ZipUtil.java in Hutool before 4.1.12 allows remote attackers to overwrite arbitrary files via directory traversal sequences in a filename within a ZIP archive.","status":"published","published":"2018-10-17T19:54:53Z","modified":"2023-01-09T05:03:22Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:05.071174Z"}],"nvd":[{"id":"CVE-2018-17297","description":"The unzip function in ZipUtil.java in Hutool before 4.1.12 allows remote attackers to overwrite arbitrary files via directory traversal sequences in a filename within a ZIP archive.","status":"published","published":"2018-09-21T07:29:00.787Z","modified":"2026-06-17T01:45:37.913Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:04:40.661264Z"}],"osv":[{"id":"GHSA-rhq2-2574-78mc","title":"Unzip function in ZipUtil.java in Hutool allows remote attackers to overwrite arbitrary files via directory traversal","description":"The unzip function in ZipUtil.java in Hutool before 4.1.12 allows remote attackers to overwrite arbitrary files via directory traversal sequences in a filename within a ZIP archive.","status":"published","published":"2018-10-17T19:54:53Z","modified":"2023-11-08T04:00:04.085589Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:55.877614Z"}]}}
