{"answers":{"affected":"1 open source package ship an affected version, including goyave.dev/goyave/v5.","exploited":"There is no known exploitation of GO-2024-3293 in the wild and no public exploit code.","fix":"Upgrade goyave.dev/goyave/v5 to 5.5.0 or later.","what":"GO-2024-3293 is a path traversal vulnerability in goyave.dev/goyave/v5, published on 13 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GO-2024-3293 and fix it if it is affected.\n\nWhat it is: GO-2024-3293 is a path traversal vulnerability in goyave.dev/goyave/v5, published on 13 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GO-2024-3293 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- goyave.dev/goyave/v5 (Go): affected from 5.0.0; fixed in 5.5.0\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/GO-2024-3293/ (Markdown: https://insights.sbomify.com/GO-2024-3293/index.md)","id":"GO-2024-3293","markdown":"https://insights.sbomify.com/GO-2024-3293/index.md","name":"GO-2024-3293","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"workaround","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Go web framework","requires_auth":"none","summary":"Attackers can read arbitrary host files via path traversal in static file serving, requiring developers to switch to embedded filesystems.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Static file serving using router.Static and osfs.FS allows clients to access any file on the host file system using relative paths because the requested path is not sanitized and . and .. segments are accepted. The files will be returned as a response, provided the system user running the Go application has read access to the requested file.\n\nAs a workaround, use fsutil.NewEmbed(embeddedFS) from the goyave.dev/goyave/v5/util/fsutil package to serve static content using Router.Static instead of \u0026osfs.FS. Embedded file systems are rooted to the specified directory, making it impossible to navigate outside of the developers' intended directory.","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Full access to the host's OS file system using osfs.FS with Router.Static in goyave.dev/goyave/v5","id":"GO-2024-3293","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["5.5.0"],"introduced":["5.0.0"],"last_affected":[],"package":"goyave.dev/goyave/v5","purl":"pkg:golang/goyave.dev/goyave/v5","source":"GO-2024-3293"}],"products":null,"published":"2024-12-13","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can read arbitrary host files via path traversal in static file serving, requiring developers to switch to embedded filesystems.","url":"https://insights.sbomify.com/GO-2024-3293/"}