{"answers":{"affected":"3 open source packages ship an affected version, including github.com/gookit/goutil. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-27475 in the wild and no public exploit code.","fix":"Upgrade github.com/gookit/goutil to a fixed version for your release line: 0.6.0 or 0.6.7.","what":"CVE-2023-27475 is a high-severity path traversal vulnerability in gookit goutil, published on 7 Mar 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-27475 and fix it if it is affected.\n\nWhat it is: CVE-2023-27475 is a high-severity path traversal vulnerability in gookit goutil, published on 7 Mar 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-27475 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/gookit/goutil (Go): affected all versions; fixed in 0.6.0\n- github.com/gookit/goutil (Go): affected all versions; fixed in 0.6.0\n- github.com/gookit/goutil (Go): affected all versions; fixed in 0.6.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-27475/ (Markdown: https://insights.sbomify.com/CVE-2023-27475/index.md)","id":"CVE-2023-27475","markdown":"https://insights.sbomify.com/CVE-2023-27475/index.md","name":"CVE-2023-27475","record":{"aliases":["GHSA-fx2v-qfhr-4chv","GO-2023-1611"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Go utility library","requires_auth":"none","summary":"Attackers can exploit path traversal in the Goutil library's unzip function to write files outside the intended directory, potentially leading to code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"goutil","vendor":"goutil_project"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Goutil is a collection of miscellaneous functionality for the go language. In versions prior to 0.6.0 when users use fsutil.Unzip to unzip zip files from a malicious attacker, they may be vulnerable to path traversal. This vulnerability is known as a ZipSlip. This issue has been fixed in version 0.6.0, users are advised to upgrade. There are no known workarounds for this issue.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Goutil vulnerable to path traversal when unzipping files","id":"CVE-2023-27475","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":3,"n_references":3,"next":{"headline":"XML External Entity (XXE) Injection in OWSLib","id":"CVE-2023-27476"},"packages":[{"ecosystem":"Go","fixed":["0.6.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gookit/goutil","purl":null,"source":"GHSA-fx2v-qfhr-4chv"},{"ecosystem":"Go","fixed":["0.6.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gookit/goutil","purl":"pkg:golang/github.com/gookit/goutil","source":"GHSA-fx2v-qfhr-4chv"},{"ecosystem":"Go","fixed":["0.6.7"],"introduced":["0"],"last_affected":[],"package":"github.com/gookit/goutil","purl":"pkg:golang/github.com/gookit/goutil","source":"GO-2023-1611"}],"prev":{"headline":"HTML Injection in Password Reset email to custom Reset URL in directus","id":"CVE-2023-27474"},"products":["goutil"],"published":"2023-03-07","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-25","vendors":["gookit"]},"summary":"Attackers can exploit path traversal in the Goutil library's unzip function to write files outside the intended directory, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2023-27475/"}