{"answers":{"affected":"2 open source packages ship an affected version, including org.glassfish.main.web:web. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-2712 in the wild and no public exploit code.","fix":"Upgrade org.glassfish.main.web:web to 7.0.0 or later.","what":"CVE-2022-2712 is a medium-severity path traversal vulnerability in The Eclipse Foundation Eclipse GlassFish, published on 27 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-2712 and fix it if it is affected.\n\nWhat it is: CVE-2022-2712 is a medium-severity path traversal vulnerability in The Eclipse Foundation Eclipse GlassFish, published on 27 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-2712 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.glassfish.main.web:web (Maven): affected from 5.1.0; fixed in 7.0.0\n- org.glassfish.main.web:web (Maven): affected from 5.1.0; fixed in 7.0.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-2022-2712/ (Markdown: https://insights.sbomify.com/CVE-2022-2712/index.md)","id":"CVE-2022-2712","markdown":"https://insights.sbomify.com/CVE-2022-2712/index.md","name":"CVE-2022-2712","record":{"aliases":["GHSA-3g5w-6pw7-6hrp","UBUNTU-CVE-2022-2712"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Java application server","requires_auth":"none","summary":"Remote unauthenticated attackers can access critical data like configuration files and source code via path traversal in Eclipse GlassFish.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"eclipse","cpe":[{"product":"glassfish","vendor":"eclipse"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"In Eclipse GlassFish versions 5.1.0 to 6.2.5, there is a vulnerability in relative path traversal because it does not filter request path starting with './'. Successful exploitation could allow an remote unauthenticated attacker to access critical data, such as configuration files and deployed application source code. This is fixed in GlassFish 7.0.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":"Path Traversal In Eclipse GlassFish","id":"CVE-2022-2712","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":2,"n_references":1,"next":{"headline":"Insufficient Session Expiration in cockpit-hq/cockpit","id":"CVE-2022-2713"},"packages":[{"ecosystem":"Maven","fixed":["7.0.0"],"introduced":["5.1.0"],"last_affected":[],"package":"org.glassfish.main.web:web","purl":null,"source":"GHSA-3g5w-6pw7-6hrp"},{"ecosystem":"Maven","fixed":["7.0.0"],"introduced":["5.1.0"],"last_affected":[],"package":"org.glassfish.main.web:web","purl":"pkg:maven/org.glassfish.main.web/web","source":"GHSA-3g5w-6pw7-6hrp"}],"prev":{"headline":"WP All Import \u003c 3.6.9 - Admin+ Directory traversal via file upload","id":"CVE-2022-2711"},"products":["Eclipse GlassFish"],"published":"2023-01-27","related":[{"cvss_score":9.6,"headline":"Server-side request forgery in Eclipse GlassFish","id":"CVE-2026-12605","kev_date_added":null,"published":"2026-08-06"},{"cvss_score":9.6,"headline":"GlassFish's gadget handler is vulnerable to RCE","id":"CVE-2026-2587","kev_date_added":null,"published":"2026-05-19"},{"cvss_score":9.1,"headline":"GlassFish's Administration Console is Vulnerable to RCE","id":"CVE-2026-2586","kev_date_added":null,"published":"2026-05-19"},{"cvss_score":8.9,"headline":"Eclipse GlassFish is vulnerable to Server Side Request Forgery attacks through specific endpoints","id":"CVE-2024-9408","kev_date_added":null,"published":"2025-07-16"},{"cvss_score":6.9,"headline":"Glassfish redirect to untrusted site","id":"CVE-2024-9329","kev_date_added":null,"published":"2024-09-30"},{"cvss_score":6.8,"headline":"Glassfish remote code execution","id":"CVE-2023-5763","kev_date_added":null,"published":"2023-11-03"}],"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":"2026-07-22","vendors":["The Eclipse Foundation"]},"summary":"Remote unauthenticated attackers can access critical data like configuration files and source code via path traversal in Eclipse GlassFish.","url":"https://insights.sbomify.com/CVE-2022-2712/"}