{"answers":{"affected":"2 open source packages ship an affected version, including org.wildfly:wildfly-undertow. It affects 2 products.","exploited":"There is no known exploitation of CVE-2018-1047 in the wild and no public exploit code.","fix":"Upgrade org.wildfly:wildfly-undertow to 12.0.0 or later.","what":"CVE-2018-1047 is a medium-severity path traversal vulnerability in Redhat Jboss Enterprise Application Platform, published on 24 Jan 2018. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-1047 and fix it if it is affected.\n\nWhat it is: CVE-2018-1047 is a medium-severity path traversal vulnerability in Redhat Jboss Enterprise Application Platform, published on 24 Jan 2018. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-1047 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.wildfly:wildfly-undertow (Maven): affected all versions; fixed in 12.0.0\n- org.wildfly:wildfly-undertow (Maven): affected all versions; fixed in 12.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-2018-1047/ (Markdown: https://insights.sbomify.com/CVE-2018-1047/index.md)","id":"CVE-2018-1047","markdown":"https://insights.sbomify.com/CVE-2018-1047/index.md","name":"CVE-2018-1047","record":{"aliases":["GHSA-fmr4-w67p-vh8x","UBUNTU-CVE-2018-1047"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Wildfly application server","requires_auth":"low_privilege","summary":"Attackers can exploit a path traversal flaw in Wildfly to read arbitrary local files, leading to information disclosure.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"jboss_enterprise_application_platform","vendor":"redhat"},{"product":"jboss_wildfly_application_server","vendor":"redhat"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"A flaw was found in Wildfly 9.x. A path traversal vulnerability through the org.wildfly.extension.undertow.deployment.ServletResourceManager.getResource method could lead to information disclosure of arbitrary local files.","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-16T13:53:51Z","kind":"github_poc","ref":"https://github.com/shoucheng3/wildfly__wildfly_CVE-2018-1047_11-0-0-Final","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Improper Input Validation in org.wildfly:wildfly-undertow","id":"CVE-2018-1047","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"redhat:jboss_enterprise_application_platform","products":["redhat:jboss_enterprise_application_platform"],"type":"path_traversal","year":"2018"},"n_packages":2,"n_references":7,"next":{"headline":"Improper Limitation of a Pathname to a Restricted Directory in Jboss EAP Undertow","id":"CVE-2018-1048"},"packages":[{"ecosystem":"Maven","fixed":["12.0.0"],"introduced":["0"],"last_affected":[],"package":"org.wildfly:wildfly-undertow","purl":null,"source":"GHSA-fmr4-w67p-vh8x"},{"ecosystem":"Maven","fixed":["12.0.0"],"introduced":["0"],"last_affected":[],"package":"org.wildfly:wildfly-undertow","purl":"pkg:maven/org.wildfly/wildfly-undertow","source":"GHSA-fmr4-w67p-vh8x"}],"prev":{"headline":"Memory corruption in pdns","id":"CVE-2018-1046"},"products":["Wildfly"],"published":"2018-01-24","related":[{"cvss_score":9.8,"headline":"Red Hat JBoss Application Server Remote Code Execution","id":"CVE-2017-12149","kev_date_added":"2021-12-10","published":"2017-10-04"},{"cvss_score":5.9,"headline":"Red Hat JBoss Information Disclosure","id":"CVE-2010-1428","kev_date_added":"2022-05-25","published":"2010-04-28"},{"cvss_score":3.7,"headline":"Red Hat JBoss Authentication Bypass","id":"CVE-2010-0738","kev_date_added":"2022-05-25","published":"2010-04-28"},{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2016-3690","kev_date_added":null,"published":"2017-06-08"},{"cvss_score":9.8,"headline":"Deserialization in JBoss","id":"CVE-2017-7504","kev_date_added":null,"published":"2017-05-19"},{"cvss_score":9.8,"headline":"XML external entity in JBoss Enterprise Application Platform","id":"CVE-2017-7503","kev_date_added":null,"published":"2017-05-18"},{"cvss_score":9.8,"headline":"Improper Input Validation in JGroups","id":"CVE-2016-2141","kev_date_added":null,"published":"2016-06-30"}],"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":["Red Hat, Inc."]},"summary":"Attackers can exploit a path traversal flaw in Wildfly to read arbitrary local files, leading to information disclosure.","url":"https://insights.sbomify.com/CVE-2018-1047/"}