{"answers":{"affected":"18 open source packages ship an affected version, including org.geoserver:gs-wfs, org.geoserver:gs-wms and org.geoserver:gs-wps. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-35042 in the wild and no public exploit code.","fix":"Upgrade org.geoserver:gs-wfs to a fixed version for your release line: 2.18.6, 2.19.6 or 2.20.4.","what":"CVE-2023-35042 is a critical code injection vulnerability in n/a, published on 12 Jun 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-35042 and fix it if it is affected.\n\nWhat it is: CVE-2023-35042 is a critical code injection vulnerability in n/a, published on 12 Jun 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-35042 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.geoserver:gs-wfs (Maven): affected all versions; fixed in 2.18.6\n- org.geoserver:gs-wfs (Maven): affected all versions; fixed in 2.18.6\n- org.geoserver:gs-wfs (Maven): affected from 2.19.0; fixed in 2.19.6\n- org.geoserver:gs-wfs (Maven): affected from 2.19.0; fixed in 2.19.6\n- org.geoserver:gs-wfs (Maven): affected from 2.20.0; fixed in 2.20.4\n- org.geoserver:gs-wfs (Maven): affected from 2.20.0; fixed in 2.20.4\n- org.geoserver:gs-wms (Maven): affected all versions; fixed in 2.18.6\n- org.geoserver:gs-wms (Maven): affected all versions; fixed in 2.18.6\n- org.geoserver:gs-wms (Maven): affected from 2.19.0; fixed in 2.19.6\n- org.geoserver:gs-wms (Maven): affected from 2.19.0; fixed in 2.19.6\n- org.geoserver:gs-wms (Maven): affected from 2.20.0; fixed in 2.20.4\n- org.geoserver:gs-wms (Maven): affected from 2.20.0; fixed in 2.20.4\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-35042/ (Markdown: https://insights.sbomify.com/CVE-2023-35042/index.md)","id":"CVE-2023-35042","markdown":"https://insights.sbomify.com/CVE-2023-35042/index.md","name":"CVE-2023-35042","record":{"aliases":["GHSA-59x6-g4jr-4hxc"],"analysis":{"component_type":"server_software","fix_type":"no_fix_stated","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"GeoServer","requires_auth":"none","summary":"Remote attackers can execute arbitrary code via WPS requests in certain GeoServer configurations, posing a critical risk to geospatial data servers.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"geoserver","vendor":"geoserver"}],"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":[],"description":"GeoServer 2, in some configurations, allows remote attackers to execute arbitrary code via java.lang.Runtime.getRuntime().exec in wps:LiteralData within a wps:Execute request, as exploited in the wild in June 2023. NOTE: the vendor states that they are unable to reproduce this in any version.","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":"GeoServer RCE due to improper control of generation of code in jai-ext`Jiffle` map algebra language","id":"CVE-2023-35042","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":18,"n_references":2,"next":{"headline":"WordPress Recent Posts Slider Plugin \u003c= 1.1 is vulnerable to Cross Site Scripting (XSS)","id":"CVE-2023-35043"},"packages":[{"ecosystem":"Maven","fixed":["2.18.6"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-wfs","purl":null,"source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.18.6"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-wfs","purl":"pkg:maven/org.geoserver/gs-wfs","source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.19.6"],"introduced":["2.19.0"],"last_affected":[],"package":"org.geoserver:gs-wfs","purl":null,"source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.19.6"],"introduced":["2.19.0"],"last_affected":[],"package":"org.geoserver:gs-wfs","purl":"pkg:maven/org.geoserver/gs-wfs","source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.20.4"],"introduced":["2.20.0"],"last_affected":[],"package":"org.geoserver:gs-wfs","purl":null,"source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.20.4"],"introduced":["2.20.0"],"last_affected":[],"package":"org.geoserver:gs-wfs","purl":"pkg:maven/org.geoserver/gs-wfs","source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.18.6"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-wms","purl":null,"source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.18.6"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-wms","purl":"pkg:maven/org.geoserver/gs-wms","source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.19.6"],"introduced":["2.19.0"],"last_affected":[],"package":"org.geoserver:gs-wms","purl":null,"source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.19.6"],"introduced":["2.19.0"],"last_affected":[],"package":"org.geoserver:gs-wms","purl":"pkg:maven/org.geoserver/gs-wms","source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.20.4"],"introduced":["2.20.0"],"last_affected":[],"package":"org.geoserver:gs-wms","purl":null,"source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.20.4"],"introduced":["2.20.0"],"last_affected":[],"package":"org.geoserver:gs-wms","purl":"pkg:maven/org.geoserver/gs-wms","source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.18.6"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-wps","purl":null,"source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.18.6"],"introduced":["0"],"last_affected":[],"package":"org.geoserver:gs-wps","purl":"pkg:maven/org.geoserver/gs-wps","source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.19.6"],"introduced":["2.19.0"],"last_affected":[],"package":"org.geoserver:gs-wps","purl":null,"source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.19.6"],"introduced":["2.19.0"],"last_affected":[],"package":"org.geoserver:gs-wps","purl":"pkg:maven/org.geoserver/gs-wps","source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.20.4"],"introduced":["2.20.0"],"last_affected":[],"package":"org.geoserver:gs-wps","purl":null,"source":"GHSA-59x6-g4jr-4hxc"},{"ecosystem":"Maven","fixed":["2.20.4"],"introduced":["2.20.0"],"last_affected":[],"package":"org.geoserver:gs-wps","purl":"pkg:maven/org.geoserver/gs-wps","source":"GHSA-59x6-g4jr-4hxc"}],"prev":{"headline":"WordPress Webpushr Plugin \u003c= 4.34.0 is vulnerable to Cross Site Request Forgery (CSRF)","id":"CVE-2023-35041"},"products":["n/a"],"published":"2023-06-12","related":[{"cvss_score":9.8,"headline":"OSGeo GeoServer GeoTools Eval Injection","id":"CVE-2024-36401","kev_date_added":"2024-07-15","published":"2024-07-01"},{"cvss_score":8.2,"headline":"OSGeo GeoServer Improper Restriction of XML External Entity Reference","id":"CVE-2025-58360","kev_date_added":"2025-12-11","published":"2025-11-25"},{"cvss_score":7.5,"headline":"Classpath resource disclosure in GWC Web Resource API on Windows / Tomcat","id":"CVE-2024-24749","kev_date_added":null,"published":"2024-07-01"},{"cvss_score":7.2,"headline":"GeoServer log file path traversal vulnerability","id":"CVE-2023-41877","kev_date_added":null,"published":"2024-03-20"},{"cvss_score":7.2,"headline":"GeoServer arbitrary file upload vulnerability in REST Coverage Store API","id":"CVE-2023-51444","kev_date_added":null,"published":"2024-03-20"},{"cvss_score":6.1,"headline":"GeoServer Reflected Cross-Site Scripting (XSS) vulnerability in WMS GetFeatureInfo HTML format","id":"CVE-2025-21621","kev_date_added":null,"published":"2025-11-25"}],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-27","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via WPS requests in certain GeoServer configurations, posing a critical risk to geospatial data servers.","url":"https://insights.sbomify.com/CVE-2023-35042/"}