{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.linkis:linkis-metadata-query-service-jdbc. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-45627 in the wild and no public exploit code.","fix":"Upgrade org.apache.linkis:linkis-metadata-query-service-jdbc to 1.7.0 or later.","what":"CVE-2024-45627 is a medium-severity path traversal vulnerability in Apache Linkis Metadata Query Service JDBC, published on 14 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-45627 and fix it if it is affected.\n\nWhat it is: CVE-2024-45627 is a medium-severity path traversal vulnerability in Apache Linkis Metadata Query Service JDBC, published on 14 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-45627 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.linkis:linkis-metadata-query-service-jdbc (Maven): affected from 1.5.0; fixed in 1.7.0\n- org.apache.linkis:linkis-metadata-query-service-jdbc (Maven): affected from 1.5.0; fixed in 1.7.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/CVE-2024-45627/ (Markdown: https://insights.sbomify.com/CVE-2024-45627/index.md)","id":"CVE-2024-45627","markdown":"https://insights.sbomify.com/CVE-2024-45627/index.md","name":"CVE-2024-45627","record":{"aliases":["GHSA-8cvq-3jjp-ph9p"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Apache Linkis","requires_auth":"none","summary":"An authenticated attacker can read arbitrary files from the server by configuring malicious MySQL JDBC parameters in the DataSource Manager Module.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"linkis","vendor":"apache"}],"cvss":{"score":5.9,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"description":"In Apache Linkis \u003c1.7.0, due to the lack of effective filtering\nof parameters, an attacker configuring malicious Mysql JDBC parameters in the DataSource Manager Module will \n\nallow the attacker to read arbitrary files from the Linkis server. Therefore, the parameters in the Mysql JDBC URL should be blacklisted. This attack requires the attacker to obtain an authorized account from Linkis before it can be carried out. Versions of Apache Linkis \u003c 1.7.0 will be affected. \nWe recommend users upgrade the version of Linkis to version 1.7.0.","ecosystems":["Maven"],"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":"Apache Linkis Metadata Query Service JDBC: JDBC Datasource Module with Mysql has file read vulnerability","id":"CVE-2024-45627","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"Information disclosure in Security QRadar EDR","id":"CVE-2024-45636"},"packages":[{"ecosystem":"Maven","fixed":["1.7.0"],"introduced":["1.5.0"],"last_affected":[],"package":"org.apache.linkis:linkis-metadata-query-service-jdbc","purl":null,"source":"GHSA-8cvq-3jjp-ph9p"},{"ecosystem":"Maven","fixed":["1.7.0"],"introduced":["1.5.0"],"last_affected":[],"package":"org.apache.linkis:linkis-metadata-query-service-jdbc","purl":"pkg:maven/org.apache.linkis/linkis-metadata-query-service-jdbc","source":"GHSA-8cvq-3jjp-ph9p"}],"prev":{"headline":"Apache James: denial of service through JMAP HTML to text conversion","id":"CVE-2024-45626"},"products":["Apache Linkis Metadata Query Service JDBC"],"published":"2025-01-14","related":[{"cvss_score":9.8,"headline":"Apache Linkis publicsercice module unrestricted upload of file","id":"CVE-2023-27602","kev_date_added":null,"published":"2023-04-10"},{"cvss_score":9.8,"headline":"Apache Linkis Mangaer module engineConn material upload exists Zip Slip issue","id":"CVE-2023-27603","kev_date_added":null,"published":"2023-04-10"},{"cvss_score":9.8,"headline":"Apache Linkis JDBC EngineCon has a deserialization command execution","id":"CVE-2023-29215","kev_date_added":null,"published":"2023-04-10"},{"cvss_score":9.8,"headline":"Apache Linkis DatasourceManager module has a deserialization command execution","id":"CVE-2023-29216","kev_date_added":null,"published":"2023-04-10"},{"cvss_score":9.1,"headline":"Apache Linkis gateway module token authentication bypass","id":"CVE-2023-27987","kev_date_added":null,"published":"2023-04-10"},{"cvss_score":8.8,"headline":"Apache Linkis Basic management services: Privilege Escalation Attack vulnerability","id":"CVE-2024-27181","kev_date_added":null,"published":"2024-08-02"},{"cvss_score":8.8,"headline":"Apache Linkis DataSource: DataSource Remote code execution vulnerability","id":"CVE-2023-46801","kev_date_added":null,"published":"2024-07-15"}],"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-14","vendors":["Apache Software Foundation"]},"summary":"An authenticated attacker can read arbitrary files from the server by configuring malicious MySQL JDBC parameters in the DataSource Manager Module.","url":"https://insights.sbomify.com/CVE-2024-45627/"}