CVE-2023-26920
JSON

6.5medium

Druid ingestion system Authenticated users can read data from other sources than intended

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
1.14% (higher than 67% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-793h-6f7r-6qvmGHSA-x3cc-x39p-42qx

Description

fast-xml-parser before 4.1.2 allows __proto__ for Prototype Pollution.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
org.apache.druid:druid-core (Maven)before 0.21.0GitHub Advisory Database
fast-xml-parser (npm)before 4.1.2GitHub Advisory Database
naturalintelligence fast_xml_parserbefore 4.1.2NVD

All scores

GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

What each source says

CVE List

fast-xml-parser before 4.1.2 allows __proto__ for Prototype Pollution.

GitHub Advisory Database

In the Druid ingestion system, the InputSource is used for reading data from a certain data source. However, the HTTP InputSource allows authenticated users to read data from other sources than intended, such as the local file system, with the privileges of the Druid server process. This is not an elevation of privilege when users access Druid directly, since Druid also provides the Local InputSource, which allows the same level of access. But it is problematic when users interact with Druid indirectly through an application that allows users to specify the HTTP InputSource, but not the Local InputSource. In this case, users could bypass the application-level restriction by passing a file URL to the HTTP InputSource.

GitHub Advisory Database
Impact

As a part of this vulnerability, user was able to se code using __proto__ as a tag or attribute name.

const { XMLParser, XMLBuilder, XMLValidator} = require("fast-xml-parser");

let XMLdata = "<__proto__><polluted>hacked</polluted></__proto__>"

const parser = new XMLParser();
let jObj = parser.parse(XMLdata);

console.log(jObj.polluted) // should return hacked
Patches

The problem has been patched in v4.1.2

Workarounds

User can check for "proto" in the XML string before parsing it to the parser.

References

https://gist.github.com/Sudistark/a5a45bd0804d522a1392cb5023aa7ef7

NVD (es)

fast-xml-parser anterior a 4.1.2 permite __proto__ para Prototype Pollution.

References

https://gist.github.com/Sudistark/a5a45bd0804d522a1392cb5023aa7ef7exploit, web
https://github.com/advisories/GHSA-793h-6f7r-6qvmadvisory, third-party-advisory
https://github.com/NaturalIntelligence/fast-xml-parser/commit/2b032a4f799c63d83991e4f992f1c68e4dd05804patch, web
https://nvd.nist.gov/vuln/detail/CVE-2021-26920advisory
https://lists.apache.org/thread.html/r29e45561343cc5cf7d3290ee0b0e94e565faab19c20d022df9b5e29c%40%3Cdev.druid.apache.org%3Eweb
https://lists.apache.org/thread.html/r304dfe56a5dfe1b2d9166b24d2c74ad1c6730338b20aef77a00ed2be@%3Cannounce.apache.org%3Eweb
https://lists.apache.org/thread.html/r61aab724cf97d80da7f02d50e9af6de5c7c40dd92dab7518746fbaa2@%3Cannounce.apache.org%3Eweb
https://lists.apache.org/thread.html/rc9400a70d0ec5cdb8a3486fc5ddb0b5282961c0b63e764abfbcb9f5d@%3Cdev.druid.apache.org%3Eweb
http://www.openwall.com/lists/oss-security/2021/07/02/1web
http://www.openwall.com/lists/oss-security/2021/09/24/1web
https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-x3cc-x39p-42qxweb
https://nvd.nist.gov/vuln/detail/CVE-2023-26920advisory

Related

Sources

SourceRecordLicence
CVE ListCVE-2023-26920 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-793h-6f7r-6qvm changed 2026-07-08CC-BY-4.0
GitHub Advisory DatabaseGHSA-x3cc-x39p-42qx changed 2026-07-08CC-BY-4.0
NVDCVE-2023-26920 changed 2026-06-17Public domain