{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-21266 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-21266 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-21266 is a medium-severity vulnerability in openhab-addons, published on 1 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-21266 and fix it if it is affected.\n\nWhat it is: CVE-2021-21266 is a medium-severity vulnerability in openhab-addons, published on 1 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-21266 in the wild and no public exploit code.\n\nAffected product: openhab-addons. 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-2021-21266/ (Markdown: https://insights.sbomify.com/CVE-2021-21266/index.md)","id":"CVE-2021-21266","markdown":"https://insights.sbomify.com/CVE-2021-21266/index.md","name":"CVE-2021-21266","record":{"aliases":["GHSA-r2hc-pmr7-4c9r"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Home automation software","requires_auth":"low_privilege","summary":"Attackers on the same network can exploit XXE vulnerabilities in openHAB add-ons to read internal files from the system.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"openhab","vendor":"openhab"}],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"openHAB is a vendor and technology agnostic open source automation software for your home. In openHAB before versions 2.5.12 and 3.0.1 the XML external entity (XXE) attack allows attackers in the same network as the openHAB instance to retrieve internal information like the content of files from the file system. Responses to SSDP requests can be especially malicious. All add-ons that use SAX or JAXB parsing of externally received XML are potentially subject to this kind of attack. In openHAB, the following add-ons are potentially impacted: AvmFritz, BoseSoundtouch, DenonMarantz, DLinkSmarthome, Enigma2, FmiWeather, FSInternetRadio, Gce, Homematic, HPPrinter, IHC, Insteon, Onkyo, Roku, SamsungTV, Sonos, Roku, Tellstick, TR064, UPnPControl, Vitotronic, Wemo, YamahaReceiver and XPath Tranformation. The vulnerabilities have been fixed in versions 2.5.12 and 3.0.1 by a more strict configuration of the used XML parser.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"XXE vulnerability in OpenHAB","id":"CVE-2021-21266","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xxe","year":"2021"},"n_packages":0,"n_references":4,"next":{"headline":"Regular Expression Denial-of-Service in npm schema-inspector","id":"CVE-2021-21267"},"packages":[],"prev":{"headline":"October CMS vulnerable to Potential Host Header Poisoning on misconfigured servers","id":"CVE-2021-21265"},"products":["openhab-addons"],"published":"2021-02-01","related":[{"cvss_score":9.8,"headline":"CometVisu Backend for openHAB affected by RCE through path traversal","id":"CVE-2024-42469","kev_date_added":null,"published":"2024-08-09"},{"cvss_score":7.7,"headline":"openHAB exec add-ons allow remote arbitrary command execution","id":"CVE-2020-5242","kev_date_added":null,"published":"2020-02-20"},{"cvss_score":6.5,"headline":"CometVisu Backend for openHAB has a sensitive information disclosure vulnerability","id":"CVE-2024-42470","kev_date_added":null,"published":"2024-08-09"},{"cvss_score":5.3,"headline":"Path traversal (CometVisu)","id":"CVE-2024-42468","kev_date_added":null,"published":"2024-08-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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-03","vendors":["openhab"]},"summary":"Attackers on the same network can exploit XXE vulnerabilities in openHAB add-ons to read internal files from the system.","url":"https://insights.sbomify.com/CVE-2021-21266/"}