CVE-2021-21266
published medium CVSS 3.1 · 6.4XXE vulnerability in OpenHAB
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| openhab | — | openhab-addons< 2.5.12 · = 3.0.0 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| openhab | openhab-addons | < 2.5.12 (affected)= 3.0.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-611 CWE-611 Improper Restriction of XML External Entity Reference ('XXE')
References
4- https://dev.to/brianverm/configure-your-java-xml-parsers-to-prevent-xxe-213c
- https://github.com/openhab/openhab-addons/commit/81935b0ab126e6d9aebd2f6c3fc67d82bb7e8b86
- https://github.com/openhab/openhab-addons/security/advisories/GHSA-r2hc-pmr7-4c9r
- https://www.contrastsecurity.com/security-influencers/xml-xxe-pitfalls-with-jaxb
Provider assertions
2GitHub_M · cna
XXE vulnerability in OpenHAB
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fe528a80f16ccab5bb4cb61d029c5dd4aecd71aef7e7ecb29cf031de26664215
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record