{"answers":{"affected":"10 open source packages ship an affected version, including org.apache.spark:spark-core_2.11 and org.apache.spark:spark-core_2.10. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-8024 exists.","fix":"Upgrade org.apache.spark:spark-core_2.11 to a fixed version for your release line: 2.1.3, 2.2.2 or 2.3.1.","what":"CVE-2018-8024 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 12 Jul 2018. 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-2018-8024 and fix it if it is affected.\n\nWhat it is: CVE-2018-8024 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 12 Jul 2018. 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-2018-8024 exists.\n\nAffected packages and fixed versions:\n- org.apache.spark:spark-core_2.11 (Maven): affected from 2.1.0; fixed in 2.1.3\n- org.apache.spark:spark-core_2.11 (Maven): affected from 2.1.0; fixed in 2.1.3\n- org.apache.spark:spark-core_2.11 (Maven): affected from 2.2.0; fixed in 2.2.2\n- org.apache.spark:spark-core_2.11 (Maven): affected from 2.2.0; fixed in 2.2.2\n- org.apache.spark:spark-core_2.11 (Maven): affected from 2.3.0; fixed in 2.3.1\n- org.apache.spark:spark-core_2.11 (Maven): affected from 2.3.0; fixed in 2.3.1\n- org.apache.spark:spark-core_2.10 (Maven): affected from 2.1.0; fixed in 2.1.3\n- org.apache.spark:spark-core_2.10 (Maven): affected from 2.1.0; fixed in 2.1.3\n- org.apache.spark:spark-core_2.10 (Maven): affected from 2.2.0; fixed in 2.2.2\n- org.apache.spark:spark-core_2.10 (Maven): affected from 2.2.0; fixed in 2.2.2\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-2018-8024/ (Markdown: https://insights.sbomify.com/CVE-2018-8024/index.md)","id":"CVE-2018-8024","markdown":"https://insights.sbomify.com/CVE-2018-8024/index.md","name":"CVE-2018-8024","record":{"aliases":["GHSA-8cw6-5qvp-q3wj"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Spark","requires_auth":"low_privilege","summary":"A malicious user can trick victims into visiting a crafted URL to execute scripts and expose Spark UI information, primarily affecting Firefox users.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"spark","vendor":"apache"},{"product":"firefox","vendor":"mozilla"}],"cvss":{"score":5.4,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"In Apache Spark 2.1.0 to 2.1.2, 2.2.0 to 2.2.1, and 2.3.0, it's possible for a malicious user to construct a URL pointing to a Spark cluster's UI's job and stage info pages, and if a user can be tricked into accessing the URL, can be used to cause script to execute and expose information from the user's view of the Spark UI. While some browsers like recent versions of Chrome and Safari are able to block this type of attack, current versions of Firefox (and possibly others) do not.","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/2018/CVE-2018-8024.yaml","stars":null,"title":"Apache Spark UI - Cross-Site Scripting"}],"tier":"weaponised"},"has_fix":true,"headline":"Exposure of Sensitive Information to an Unauthorized Actor in Apache Spark via crafted URL","id":"CVE-2018-8024","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"mozilla:firefox","products":["mozilla:firefox"],"type":"xss","year":"2018"},"n_packages":10,"n_references":2,"next":{"headline":"Race condition in org.apache.hbase:hbase-thrift","id":"CVE-2018-8025"},"packages":[{"ecosystem":"Maven","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.10","purl":null,"source":"GHSA-8cw6-5qvp-q3wj"},{"ecosystem":"Maven","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.10","purl":"pkg:maven/org.apache.spark/spark-core_2.10","source":"GHSA-8cw6-5qvp-q3wj"},{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.10","purl":null,"source":"GHSA-8cw6-5qvp-q3wj"},{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.10","purl":"pkg:maven/org.apache.spark/spark-core_2.10","source":"GHSA-8cw6-5qvp-q3wj"},{"ecosystem":"Maven","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.11","purl":null,"source":"GHSA-8cw6-5qvp-q3wj"},{"ecosystem":"Maven","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.11","purl":"pkg:maven/org.apache.spark/spark-core_2.11","source":"GHSA-8cw6-5qvp-q3wj"},{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.11","purl":null,"source":"GHSA-8cw6-5qvp-q3wj"},{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.11","purl":"pkg:maven/org.apache.spark/spark-core_2.11","source":"GHSA-8cw6-5qvp-q3wj"},{"ecosystem":"Maven","fixed":["2.3.1"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.11","purl":null,"source":"GHSA-8cw6-5qvp-q3wj"},{"ecosystem":"Maven","fixed":["2.3.1"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.spark:spark-core_2.11","purl":"pkg:maven/org.apache.spark/spark-core_2.11","source":"GHSA-8cw6-5qvp-q3wj"}],"prev":{"headline":"Moderate severity vulnerability that affects org.apache.mesos:mesos","id":"CVE-2018-8023"},"products":["Apache Spark"],"published":"2018-07-12","related":[{"cvss_score":8.8,"headline":"Apache Spark Command Injection","id":"CVE-2022-33891","kev_date_added":"2023-03-07","published":"2022-07-18"},{"cvss_score":9.8,"headline":"Improper Authentication in Apache Spark","id":"CVE-2020-9480","kev_date_added":null,"published":"2020-06-23"},{"cvss_score":9.8,"headline":"Remote Code Execution in spark-core","id":"CVE-2018-17190","kev_date_added":null,"published":"2018-11-19"},{"cvss_score":9.1,"headline":"HTTP Request Smuggling in Netty","id":"CVE-2019-20445","kev_date_added":null,"published":"2020-01-29"},{"cvss_score":8.8,"headline":"Apache Spark: Spark History Server Code Execution Vulnerability","id":"CVE-2025-54920","kev_date_added":null,"published":"2026-03-14"},{"cvss_score":8.8,"headline":"Apache Spark: Shell command injection via Spark UI","id":"CVE-2023-32007","kev_date_added":null,"published":"2023-05-02"},{"cvss_score":7.8,"headline":"Apache Spark Deserialization of Untrusted Data vulnerability","id":"CVE-2017-12612","kev_date_added":null,"published":"2017-09-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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["Apache Software Foundation"]},"summary":"A malicious user can trick victims into visiting a crafted URL to execute scripts and expose Spark UI information, primarily affecting Firefox users.","url":"https://insights.sbomify.com/CVE-2018-8024/"}