6.4
MEDIUM
CVE-2021-21266
openHAB XXE File Retrieval Vulnerability
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.

INFO

Published Date :

Feb. 1, 2021, 3:15 p.m.

Last Modified :

Feb. 5, 2021, 9:38 p.m.

Remotely Exploitable :

Yes !

Impact Score :

2.7

Exploitability Score :

3.1
Affected Products

The following products are affected by CVE-2021-21266 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Openhab openhab
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-21266.

URL Resource
https://dev.to/brianverm/configure-your-java-xml-parsers-to-prevent-xxe-213c Third Party Advisory
https://github.com/openhab/openhab-addons/commit/81935b0ab126e6d9aebd2f6c3fc67d82bb7e8b86 Patch Third Party Advisory
https://github.com/openhab/openhab-addons/security/advisories/GHSA-r2hc-pmr7-4c9r Patch Third Party Advisory
https://www.contrastsecurity.com/security-influencers/xml-xxe-pitfalls-with-jaxb Technical Description Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-21266 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-21266 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Feb. 05, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:S/C:P/I:N/A:N)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
    Changed Reference Type https://dev.to/brianverm/configure-your-java-xml-parsers-to-prevent-xxe-213c No Types Assigned https://dev.to/brianverm/configure-your-java-xml-parsers-to-prevent-xxe-213c Third Party Advisory
    Changed Reference Type https://github.com/openhab/openhab-addons/commit/81935b0ab126e6d9aebd2f6c3fc67d82bb7e8b86 No Types Assigned https://github.com/openhab/openhab-addons/commit/81935b0ab126e6d9aebd2f6c3fc67d82bb7e8b86 Patch, Third Party Advisory
    Changed Reference Type https://github.com/openhab/openhab-addons/security/advisories/GHSA-r2hc-pmr7-4c9r No Types Assigned https://github.com/openhab/openhab-addons/security/advisories/GHSA-r2hc-pmr7-4c9r Patch, Third Party Advisory
    Changed Reference Type https://www.contrastsecurity.com/security-influencers/xml-xxe-pitfalls-with-jaxb No Types Assigned https://www.contrastsecurity.com/security-influencers/xml-xxe-pitfalls-with-jaxb Technical Description, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:openhab:openhab:*:*:*:*:*:*:*:* versions up to (excluding) 2.5.12 *cpe:2.3:a:openhab:openhab:3.0.0:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-21266 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-21266 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.12 }} 0.00%

score

0.44892

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability