{"answers":{"affected":"2 open source packages ship an affected version, including io.vertx:vertx-web. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-12542 in the wild and no public exploit code.","fix":"Upgrade io.vertx:vertx-web to 3.5.4 or later.","what":"CVE-2018-12542 is a critical path traversal vulnerability in The Eclipse Foundation Eclipse Vert.x, published on 10 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-12542 and fix it if it is affected.\n\nWhat it is: CVE-2018-12542 is a critical path traversal vulnerability in The Eclipse Foundation Eclipse Vert.x, published on 10 Oct 2018. 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-2018-12542 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- io.vertx:vertx-web (Maven): affected from 3.0.0; fixed in 3.5.4\n- io.vertx:vertx-web (Maven): affected from 3.0.0; fixed in 3.5.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-2018-12542/ (Markdown: https://insights.sbomify.com/CVE-2018-12542/index.md)","id":"CVE-2018-12542","markdown":"https://insights.sbomify.com/CVE-2018-12542/index.md","name":"CVE-2018-12542","record":{"aliases":["GHSA-h39x-m55c-v55h"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Java web framework","requires_auth":"none","summary":"Attackers can read files outside the restricted directory on Windows systems using the StaticHandler in Eclipse Vert.x.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"eclipse","cpe":[{"product":"vert.x","vendor":"eclipse"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"In version from 3.0.0 to 3.5.3 of Eclipse Vert.x, the StaticHandler uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '\\' (forward slashes) sequences that can resolve to a location that is outside of that directory when running on Windows Operating Systems.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-16","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-16T12:51:16Z","kind":"github_poc","ref":"https://github.com/shoucheng3/vert-x3__vertx-web_CVE-2018-12542_3-5-3-CR1","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Eclipse Vert.x does not properly neutralize '' (forward slashes) sequences that can resolve to an external location","id":"CVE-2018-12542","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2018"},"n_packages":2,"n_references":3,"next":{"headline":"Denial of service in Eclipse Mosquitto","id":"CVE-2018-12543"},"packages":[{"ecosystem":"Maven","fixed":["3.5.4"],"introduced":["3.0.0"],"last_affected":[],"package":"io.vertx:vertx-web","purl":null,"source":"GHSA-h39x-m55c-v55h"},{"ecosystem":"Maven","fixed":["3.5.4"],"introduced":["3.0.0"],"last_affected":[],"package":"io.vertx:vertx-web","purl":"pkg:maven/io.vertx/vertx-web","source":"GHSA-h39x-m55c-v55h"}],"prev":{"headline":"Excessive memory allocation","id":"CVE-2018-12541"},"products":["Eclipse Vert.x"],"published":"2018-10-10","related":[{"cvss_score":9.8,"headline":"Path Traversal in Eclipse Vert","id":"CVE-2019-17640","kev_date_added":null,"published":"2020-10-15"},{"cvss_score":9.8,"headline":"Moderate severity vulnerability that affects io.vertx:vertx-core","id":"CVE-2018-12544","kev_date_added":null,"published":"2018-10-10"},{"cvss_score":9.2,"headline":"Deserialization in Eclipse Vert.x","id":"CVE-2026-102469","kev_date_added":null,"published":"2026-10-15"},{"cvss_score":8.8,"headline":"High severity vulnerability that affects io.vertx:vertx-web","id":"CVE-2018-12540","kev_date_added":null,"published":"2018-07-12"},{"cvss_score":8.7,"headline":"Denial of service in Eclipse Vert.x","id":"CVE-2026-102461","kev_date_added":null,"published":"2026-10-15"},{"cvss_score":8.7,"headline":"Denial of service in Eclipse Vert.x","id":"CVE-2026-102467","kev_date_added":null,"published":"2026-10-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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["The Eclipse Foundation"]},"summary":"Attackers can read files outside the restricted directory on Windows systems using the StaticHandler in Eclipse Vert.x.","url":"https://insights.sbomify.com/CVE-2018-12542/"}