# CVE-2021-21266: XXE vulnerability in OpenHAB

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-12-01)
- Published: 2021-02-01T14:40:16.000Z
- Modified: 2026-06-17T03:35:09.400Z
- Weaknesses: CWE-611
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- openhab openhab-addons: < 2.5.12; = 3.0.0
- openhab openhab: before 2.5.12; 3.0.0

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/openhab/openhab-addons/security/advisories/GHSA-r2hc-pmr7-4c9r> (patch, third-party-advisory)
- <https://dev.to/brianverm/configure-your-java-xml-parsers-to-prevent-xxe-213c> (third-party-advisory)
- <https://www.contrastsecurity.com/security-influencers/xml-xxe-pitfalls-with-jaxb> (technical-description, third-party-advisory)
- <https://github.com/openhab/openhab-addons/commit/81935b0ab126e6d9aebd2f6c3fc67d82bb7e8b86> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-21266](https://www.cve.org/CVERecord?id=CVE-2021-21266), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-21266](https://nvd.nist.gov/vuln/detail/CVE-2021-21266), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21266 · Whole record: https://cve.day/CVE-2021-21266.json · Rebuilt by cve.day 2026-11-25T22:57:59.769Z
