{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.xmlgraphics:batik. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-5662 in the wild and no public exploit code.","fix":"Upgrade org.apache.xmlgraphics:batik to 1.9 or later.","what":"CVE-2017-5662 is a high-severity vulnerability in Apache Batik, published on 18 Apr 2017. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2017-5662 and fix it if it is affected.\n\nWhat it is: CVE-2017-5662 is a high-severity vulnerability in Apache Batik, published on 18 Apr 2017. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2017-5662 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.xmlgraphics:batik (Maven): affected all versions; fixed in 1.9\n- org.apache.xmlgraphics:batik (Maven): affected all versions; fixed in 1.9\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-2017-5662/ (Markdown: https://insights.sbomify.com/CVE-2017-5662/index.md)","id":"CVE-2017-5662","markdown":"https://insights.sbomify.com/CVE-2017-5662/index.md","name":"CVE-2017-5662","record":{"aliases":["DEBIAN-CVE-2017-5662","DLA-926-1","GHSA-qwgx-59jw-qfg9","UBUNTU-CVE-2017-5662","USN-3280-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Batik library","requires_auth":"low_privilege","summary":"Attackers can read server files and cause denial of service via malicious SVG files in Apache Batik, potentially leading to full server compromise.","user_interaction":"required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"batik","vendor":"apache"}],"cvss":{"score":7.3,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"In Apache Batik before 1.9, files lying on the filesystem of the server which uses batik can be revealed to arbitrary users who send maliciously formed SVG files. The file types that can be shown depend on the user context in which the exploitable application is running. If the user is root a full compromise of the server - including confidential or sensitive files - would be possible. XXE can also be used to attack the availability of the server via denial of service as the references within a xml document can trivially trigger an amplification attack.","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":"Improper Restriction of XML External Entity Reference in Apache Batik","id":"CVE-2017-5662","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2017"},"n_packages":2,"n_references":11,"next":{"headline":"SQL injection in Apache Fineract","id":"CVE-2017-5663"},"packages":[{"ecosystem":"Maven","fixed":["1.9"],"introduced":["0"],"last_affected":[],"package":"org.apache.xmlgraphics:batik","purl":null,"source":"GHSA-qwgx-59jw-qfg9"},{"ecosystem":"Maven","fixed":["1.9"],"introduced":["0"],"last_affected":[],"package":"org.apache.xmlgraphics:batik","purl":"pkg:maven/org.apache.xmlgraphics/batik","source":"GHSA-qwgx-59jw-qfg9"}],"prev":{"headline":"Improper Restriction of XML External Entity Reference in Apache FOP","id":"CVE-2017-5661"},"products":["Apache Batik"],"published":"2017-04-18","related":[{"cvss_score":9.8,"headline":"Deserialization of Untrusted Data in Apache Batik","id":"CVE-2018-8013","kev_date_added":null,"published":"2018-05-24"},{"cvss_score":8.2,"headline":"Server-side request forgery (SSRF) in Apache Batik","id":"CVE-2020-11987","kev_date_added":null,"published":"2021-02-24"},{"cvss_score":7.5,"headline":"Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input","id":"CVE-2022-41704","kev_date_added":null,"published":"2022-10-25"},{"cvss_score":7.5,"headline":"Apache Batik prior to 1.16 allows RCE via scripting","id":"CVE-2022-42890","kev_date_added":null,"published":"2022-10-25"},{"cvss_score":7.5,"headline":"Jar url should be blocked by DefaultScriptSecurity","id":"CVE-2022-40146","kev_date_added":null,"published":"2022-09-22"},{"cvss_score":7.5,"headline":"Server-side request forgery (SSRF) in Apache Batik","id":"CVE-2019-17566","kev_date_added":null,"published":"2020-11-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":"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-05","vendors":["Apache Software Foundation"]},"summary":"Attackers can read server files and cause denial of service via malicious SVG files in Apache Batik, potentially leading to full server compromise.","url":"https://insights.sbomify.com/CVE-2017-5662/"}