{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.xmlgraphics:fop. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-5661 in the wild and no public exploit code.","fix":"Upgrade org.apache.xmlgraphics:fop to 2.2 or later.","what":"CVE-2017-5661 is a high-severity vulnerability in Apache FOP, 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-5661 and fix it if it is affected.\n\nWhat it is: CVE-2017-5661 is a high-severity vulnerability in Apache FOP, 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-5661 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.xmlgraphics:fop (Maven): affected all versions; fixed in 2.2\n- org.apache.xmlgraphics:fop (Maven): affected all versions; fixed in 2.2\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-5661/ (Markdown: https://insights.sbomify.com/CVE-2017-5661/index.md)","id":"CVE-2017-5661","markdown":"https://insights.sbomify.com/CVE-2017-5661/index.md","name":"CVE-2017-5661","record":{"aliases":["CLSA-2026-1779929352","DEBIAN-CVE-2017-5661","DLA-927-1","DSA-3864-1","GHSA-5hg8-r9vq-gjqp","UBUNTU-CVE-2017-5661","USN-3281-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache FOP library","requires_auth":"low_privilege","summary":"Attackers can exploit XML External Entity vulnerabilities in Apache FOP to read server files or cause denial of service via malicious SVG inputs.","user_interaction":"required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"formatting_objects_processor","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 FOP before 2.2, files lying on the filesystem of the server which uses FOP 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 FOP","id":"CVE-2017-5661","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2017"},"n_packages":2,"n_references":4,"next":{"headline":"Improper Restriction of XML External Entity Reference in Apache Batik","id":"CVE-2017-5662"},"packages":[{"ecosystem":"Maven","fixed":["2.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.xmlgraphics:fop","purl":null,"source":"GHSA-5hg8-r9vq-gjqp"},{"ecosystem":"Maven","fixed":["2.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.xmlgraphics:fop","purl":"pkg:maven/org.apache.xmlgraphics/fop","source":"GHSA-5hg8-r9vq-gjqp"}],"prev":{"headline":"Other in Apache Traffic Server","id":"CVE-2017-5660"},"products":["Apache FOP"],"published":"2017-04-18","related":[{"cvss_score":7.5,"headline":"Apache XML Graphics FOP: XML External Entity (XXE) Processing","id":"CVE-2024-28168","kev_date_added":null,"published":"2024-10-09"}],"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 exploit XML External Entity vulnerabilities in Apache FOP to read server files or cause denial of service via malicious SVG inputs.","url":"https://insights.sbomify.com/CVE-2017-5661/"}