{"answers":{"affected":"8 open source packages ship an affected version, including io.crate:crate. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24565 exists.","fix":"Upgrade io.crate:crate to a fixed version for your release line: 5.3.9, 5.4.8, 5.5.4 or 5.6.1.","what":"CVE-2024-24565 is a medium-severity path traversal vulnerability in crate, published on 30 Jan 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-24565 and fix it if it is affected.\n\nWhat it is: CVE-2024-24565 is a medium-severity path traversal vulnerability in crate, published on 30 Jan 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24565 exists.\n\nAffected packages and fixed versions:\n- io.crate:crate (Maven): affected all versions; fixed in 5.3.9\n- io.crate:crate (Maven): affected all versions; fixed in 5.3.9\n- io.crate:crate (Maven): affected from 5.4.0; fixed in 5.4.8\n- io.crate:crate (Maven): affected from 5.4.0; fixed in 5.4.8\n- io.crate:crate (Maven): affected from 5.5.0; fixed in 5.5.4\n- io.crate:crate (Maven): affected from 5.5.0; fixed in 5.5.4\n- io.crate:crate (Maven): affected from 5.6.0; fixed in 5.6.1\n- io.crate:crate (Maven): affected from 5.6.0; fixed in 5.6.1\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-2024-24565/ (Markdown: https://insights.sbomify.com/CVE-2024-24565/index.md)","id":"CVE-2024-24565","markdown":"https://insights.sbomify.com/CVE-2024-24565/index.md","name":"CVE-2024-24565","record":{"aliases":["GHSA-475g-vj6c-xf96"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"CrateDB database","requires_auth":"low_privilege","summary":"Authenticated attackers can exploit the COPY FROM function to read arbitrary files from the server, leading to information leakage.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cratedb","vendor":"cratedb"}],"cvss":{"score":5.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"CrateDB is a distributed SQL database that makes it simple to store and analyze massive amounts of data in real-time. There is a COPY FROM function in the CrateDB database that is used to import file data into database tables. This function has a flaw, and authenticated attackers can use the COPY FROM function to import arbitrary file content into database tables, resulting in information leakage. This vulnerability is patched in 5.3.9, 5.4.8, 5.5.4, and 5.6.1.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-24565.yaml","stars":null,"title":"CrateDB Database - Arbitrary File Read"}],"tier":"weaponised"},"has_fix":true,"headline":"CrateDB database has an arbitrary file read vulnerability","id":"CVE-2024-24565","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":8,"n_references":2,"next":{"headline":"Lobe Chat unauthorized access to plugins","id":"CVE-2024-24566"},"packages":[{"ecosystem":"Maven","fixed":["5.3.9"],"introduced":["0"],"last_affected":[],"package":"io.crate:crate","purl":null,"source":"GHSA-475g-vj6c-xf96"},{"ecosystem":"Maven","fixed":["5.3.9"],"introduced":["0"],"last_affected":[],"package":"io.crate:crate","purl":"pkg:maven/io.crate/crate","source":"GHSA-475g-vj6c-xf96"},{"ecosystem":"Maven","fixed":["5.4.8"],"introduced":["5.4.0"],"last_affected":[],"package":"io.crate:crate","purl":null,"source":"GHSA-475g-vj6c-xf96"},{"ecosystem":"Maven","fixed":["5.4.8"],"introduced":["5.4.0"],"last_affected":[],"package":"io.crate:crate","purl":"pkg:maven/io.crate/crate","source":"GHSA-475g-vj6c-xf96"},{"ecosystem":"Maven","fixed":["5.5.4"],"introduced":["5.5.0"],"last_affected":[],"package":"io.crate:crate","purl":null,"source":"GHSA-475g-vj6c-xf96"},{"ecosystem":"Maven","fixed":["5.5.4"],"introduced":["5.5.0"],"last_affected":[],"package":"io.crate:crate","purl":"pkg:maven/io.crate/crate","source":"GHSA-475g-vj6c-xf96"},{"ecosystem":"Maven","fixed":["5.6.1"],"introduced":["5.6.0"],"last_affected":[],"package":"io.crate:crate","purl":null,"source":"GHSA-475g-vj6c-xf96"},{"ecosystem":"Maven","fixed":["5.6.1"],"introduced":["5.6.0"],"last_affected":[],"package":"io.crate:crate","purl":"pkg:maven/io.crate/crate","source":"GHSA-475g-vj6c-xf96"}],"prev":{"headline":"Vyper extract32 can ready dirty memory","id":"CVE-2024-24564"},"products":["crate"],"published":"2024-01-30","related":[{"cvss_score":9.8,"headline":"CrateDB authentication bypass vulnerability","id":"CVE-2023-51982","kev_date_added":null,"published":"2024-01-30"},{"cvss_score":5.3,"headline":"Client initialized Session-Renegotiation DoS","id":"CVE-2024-37309","kev_date_added":null,"published":"2024-06-13"}],"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":"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-23","vendors":["crate"]},"summary":"Authenticated attackers can exploit the COPY FROM function to read arbitrary files from the server, leading to information leakage.","url":"https://insights.sbomify.com/CVE-2024-24565/"}