{"answers":{"affected":"It affects 7 products.","exploited":"There is no known exploitation of CVE-2013-0340 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2013-0340 is a medium-severity vulnerability in Apple Ipados, published on 21 Jan 2014. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2013-0340 and fix it if it is affected.\n\nWhat it is: CVE-2013-0340 is a medium-severity vulnerability in Apple Ipados, published on 21 Jan 2014. 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-2013-0340 in the wild and no public exploit code.\n\nAffected product: Apple Ipados. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2013-0340/ (Markdown: https://insights.sbomify.com/CVE-2013-0340/index.md)","id":"CVE-2013-0340","markdown":"https://insights.sbomify.com/CVE-2013-0340/index.md","name":"CVE-2013-0340","record":{"aliases":["DEBIAN-CVE-2013-0340","GHSA-w3v2-46wf-pq33","OESA-2021-1261","PSF-2014-1","RHBA-2022:8290"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"XML parsing library","requires_auth":"none","summary":"Remote attackers can cause denial of service, access intranet servers, or read arbitrary files via crafted XML documents in the expat library.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ipados","vendor":"apple"},{"product":"iphone_os","vendor":"apple"},{"product":"macos","vendor":"apple"},{"product":"tvos","vendor":"apple"},{"product":"watchos","vendor":"apple"},{"product":"libexpat","vendor":"libexpat_project"},{"product":"python","vendor":"python"}],"cvss":{"score":6.8,"severity":"medium","source":"nvd","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler function, which allows remote attackers to cause a denial of service (resource consumption), send HTTP requests to intranet servers, or read arbitrary files via a crafted XML document, aka an XML External Entity (XXE) issue.  NOTE: it could be argued that because expat already provides the ability to disable external entity expansion, the responsibility for resolving this issue lies with application developers; according to this argument, this entry should be REJECTed, and each affected application would need its own CVE.","ecosystems":["Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos"],"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":"XML external entity in apple:ipados","id":"CVE-2013-0340","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"apple:ipados","products":["apple:ipados","apple:iphone_os","apple:macos","apple:tvos","apple:watchos","libexpat_project:libexpat","python:python"],"type":"xxe","year":"2013"},"n_packages":6,"n_references":25,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2013-0341"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.9-1.el9_1"],"introduced":["0"],"last_affected":[],"package":"expat-debuginfo","purl":"pkg:rpm/redhat/expat-debuginfo","source":"RHBA-2022:8290"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.9-1.el9_1"],"introduced":["0"],"last_affected":[],"package":"expat-debugsource","purl":"pkg:rpm/redhat/expat-debugsource","source":"RHBA-2022:8290"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.4.9-1.el9_1"],"introduced":["0"],"last_affected":[],"package":"expat-devel","purl":"pkg:rpm/redhat/expat-devel","source":"RHBA-2022:8290"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.4.9-1.el9_1"],"introduced":["0"],"last_affected":[],"package":"expat","purl":"pkg:rpm/redhat/expat","source":"RHBA-2022:8290"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.4.9-1.el9_1"],"introduced":["0"],"last_affected":[],"package":"expat-debuginfo","purl":"pkg:rpm/redhat/expat-debuginfo","source":"RHBA-2022:8290"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.4.9-1.el9_1"],"introduced":["0"],"last_affected":[],"package":"expat-debugsource","purl":"pkg:rpm/redhat/expat-debugsource","source":"RHBA-2022:8290"}],"prev":{"headline":"XML external entity in n/a","id":"CVE-2013-0339"},"products":["apple:ipados","apple:iphone_os","apple:macos","apple:tvos","apple:watchos","libexpat_project:libexpat","python:python"],"published":"2014-01-21","related":[{"cvss_score":10,"headline":"Apple iOS, iPadOS, and macOS Out-of-Bounds Write","id":"CVE-2025-43300","kev_date_added":"2025-08-21","published":"2025-08-21"},{"cvss_score":10,"headline":"Apple Multiple Products WebKit Out-of-Bounds Write","id":"CVE-2025-24201","kev_date_added":"2025-03-13","published":"2025-03-11"},{"cvss_score":10,"headline":"Apple Multiple Products Use-After-Free","id":"CVE-2025-24085","kev_date_added":"2025-01-29","published":"2025-01-27"},{"cvss_score":9.8,"headline":"Apple Multiple Products Memory Corruption","id":"CVE-2025-31200","kev_date_added":"2025-04-17","published":"2025-04-16"},{"cvss_score":9.8,"headline":"Apple Multiple Products Arbitrary Read and Write","id":"CVE-2025-31201","kev_date_added":"2025-04-17","published":"2025-04-16"},{"cvss_score":9.8,"headline":"Apple Memory Corruption","id":"CVE-2022-22587","kev_date_added":"2022-01-28","published":"2022-03-18"},{"cvss_score":9.8,"headline":"Apple iOS, iPadOS, and macOS WebKit Remote Code Execution","id":"CVE-2021-1870","kev_date_added":"2021-11-03","published":"2021-04-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHBA"},{"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-14","vendors":["apple","libexpat_project","python"]},"summary":"Remote attackers can cause denial of service, access intranet servers, or read arbitrary files via crafted XML documents in the expat library.","url":"https://insights.sbomify.com/CVE-2013-0340/"}