{"answers":{"affected":"3 open source packages ship an affected version, including apache-submarine. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-46302 in the wild and no public exploit code.","fix":"Upgrade apache-submarine to 0.8.0 or later.","what":"CVE-2023-46302 is a critical unsafe deserialization vulnerability in Apache Submarine, published on 20 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-46302 and fix it if it is affected.\n\nWhat it is: CVE-2023-46302 is a critical unsafe deserialization vulnerability in Apache Submarine, published on 20 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-46302 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- apache-submarine (PyPI): affected from 0.7.0; fixed in 0.8.0\n- apache-submarine (PyPI): affected from 0.7.0; fixed in 0.8.0\n- apache-submarine (PyPI): affected from 0.7.0; fixed in 0.8.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-2023-46302/ (Markdown: https://insights.sbomify.com/CVE-2023-46302/index.md)","id":"CVE-2023-46302","markdown":"https://insights.sbomify.com/CVE-2023-46302/index.md","name":"CVE-2023-46302","record":{"aliases":["GHSA-8hcr-5x2g-9f7j","PYSEC-2023-240"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Submarine server","requires_auth":"none","summary":"Attackers can execute arbitrary code via unsafe YAML deserialization in Apache Submarine server endpoints.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"submarine","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"Apache Software Foundation Apache Submarine has a bug when serializing against yaml. The bug is caused by snakeyaml  https://nvd.nist.gov/vuln/detail/CVE-2022-1471 .\n\nApache Submarine uses JAXRS to define REST endpoints.  In order to\nhandle YAML requests (using application/yaml content-type), it defines\na YamlEntityProvider entity provider that will process all incoming\nYAML requests.  In order to unmarshal the request, the readFrom method\nis invoked, passing the entityStream containing the user-supplied data in `submarine-server/server-core/src/main/java/org/apache/submarine/server/utils/YamlUtils.java`.\n \nWe have now fixed this issue in the new version by replacing to `jackson-dataformat-yaml`.\nThis issue affects Apache Submarine: from 0.7.0 before 0.8.0. Users are recommended to upgrade to version 0.8.0, which fixes this issue.\nIf using the version smaller than 0.8.0  and not want to upgrade, you can try cherry-pick PR  https://github.com/apache/submarine/pull/1054  and rebuild the submart-server image to fix this.","ecosystems":["PyPI"],"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 Submarine: Fix CVE-2022-1471 SnakeYaml unsafe deserialization","id":"CVE-2023-46302","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"deserialization","year":"2023"},"n_packages":3,"n_references":3,"next":{"headline":"Server-side request forgery in n/a","id":"CVE-2023-46303"},"packages":[{"ecosystem":"PyPI","fixed":["0.8.0"],"introduced":["0.7.0"],"last_affected":[],"package":"apache-submarine","purl":null,"source":"GHSA-8hcr-5x2g-9f7j"},{"ecosystem":"PyPI","fixed":["0.8.0"],"introduced":["0.7.0"],"last_affected":[],"package":"apache-submarine","purl":"pkg:pypi/apache-submarine","source":"GHSA-8hcr-5x2g-9f7j"},{"ecosystem":"PyPI","fixed":["0.8.0"],"introduced":["0.7.0"],"last_affected":[],"package":"apache-submarine","purl":"pkg:pypi/apache-submarine","source":"PYSEC-2023-240"}],"prev":{"headline":"Code injection in n/a","id":"CVE-2023-46301"},"products":["Apache Submarine"],"published":"2023-11-20","related":[{"cvss_score":9.8,"headline":"Apache Submarine Commons Utils: default secret","id":"CVE-2024-36264","kev_date_added":null,"published":"2024-06-12"},{"cvss_score":9.8,"headline":"Apache Submarine Server Core: authorization bypass","id":"CVE-2024-36265","kev_date_added":null,"published":"2024-06-12"},{"cvss_score":9.8,"headline":"Apache Submarine: SQL injection from unauthorized login","id":"CVE-2023-37924","kev_date_added":null,"published":"2023-11-22"},{"cvss_score":8.1,"headline":"Apache Submarine Server Core: SQL injection","id":"CVE-2024-36263","kev_date_added":null,"published":"2024-06-12"}],"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":"PyPA Advisory Database","prefix":"PYSEC"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary code via unsafe YAML deserialization in Apache Submarine server endpoints.","url":"https://insights.sbomify.com/CVE-2023-46302/"}