Security Advisory

CVE-2021-38443: Cyclone DDS XML Parser Heap Write

Last updated:
  • CVE-2021-38443

CVE-2021-38443 is improper handling of syntactically invalid structures (CWE-228) in the XML configuration parser of Eclipse Cyclone DDS before 0.8.0: a malformed configuration file can write arbitrary values on the heap. NVD scores it 9.8; CISA scores it 6.6 as a local flaw. Update Cyclone DDS and lock down its configuration file.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

2.1%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2021-38443 · Source: NVD

Affected components

ComponentCPEVersion range
Eclipse Cyclone DDScpe:2.3:a:eclipse:cyclonedds:*:*:*:*:*:*:*:*before 0.8.0 (NVD, CISA ICSA-21-315-02); researchers list the fix as 0.8.1 and later and the master branch

What does this mean for affected devices?

NVD's description: "Eclipse CycloneDDS versions prior to 0.8.0 improperly handle invalid structures, which may allow an attacker to write arbitrary values in the XML parser." NVD's Primary score is 9.8, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. CISA, the assigning CNA, scores it 6.6 with a local vector (AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H) and classes it CWE-228. A triage queue sorted by NVD score will put this config-file bug above many network parser flaws (NVD).

How does the attack work?

The researchers built a fuzzing harness that fed memory-mapped XML files to the Cyclone DDS configuration initializer, with a mocked network stack. It found "multiple inputs that can lead to a heap overflow in the XML parsing routines", which "causes at least a crash and can be exploited to write in the heap". Their white paper lists CVE-2021-38443 as a "multi-byte heap-write via malformed XML file" and its sibling CVE-2021-38441 as a null dereference and heap-write primitive, both under the "configuration XML file" attack surface, which they map to supply-chain compromise and project file infection (Trend Micro Research). Cyclone DDS reads its XML configuration from the location in the CYCLONEDDS_URI environment variable (Cyclone DDS README), so whoever controls that file or variable controls the parser input.

Which version is fixed?

CISA's ICS advisory ICSA-21-315-02, first published on 2021-11-11 and updated on 2022-02-01, lists Cyclone DDS versions before 0.8.0 and says "Eclipse recommends users apply the latest CycloneDDS patches." The researchers' table instead lists the fix as ">= 0.8.1 master branch". Cyclone DDS 0.8.0 was released on 2021-09-15 and its notes do not mention the CVE. Given the two sources, treat 0.8.1 or a later release as the safe minimum.

What should device makers do?

Cyclone DDS is a common ROS 2 middleware choice, so check robot and gateway images, not only software installs. Use the firmware SBOM to find the Cyclone DDS version, make the XML configuration read-only and owned by root, and do not let untrusted users set CYCLONEDDS_URI. Our DDS security guide covers the rest of the deployment. RTI Connext had two XML overflows found by the same fuzzing campaign, CVE-2021-38427 and CVE-2021-38433.

CVE-2021-38443 is not in the CISA KEV catalog as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.0213, the 82.3rd percentile, in the 2026-11-17 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • Cyclone DDS before 0.8.0 improperly handles invalid structures, may allow writing arbitrary values in the XML parser; NVD Primary 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; CISA 6.6 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H, CWE-228; CPE cyclonedds before 0.8.0; published 2022-05-05. — NVD
  • Eclipse CycloneDDS all versions prior to 0.8.0; CVE-2021-38443 CWE-228 CVSS 6.6; "Eclipse recommends users apply the latest CycloneDDS patches"; ICSA-21-315-02 initial release 2021-11-11, Update A 2022-02-01; sectors "Multiple", deployed "Worldwide"; general measures: minimize network exposure, firewalls, VPN. — CISA CSAF ICSA-21-315-02
  • Table 6: CVE-2021-38443 Cyclone DDS, ROS 2, patched >= 0.8.1 master branch, multi-byte heap-write via malformed XML file; section 5.2.1.3: harness passes memory-mapped XML to configuration initializer, multiple inputs lead to heap overflow in XML parsing routines. — Trend Micro Research white paper
  • Configuration XML file attack surface mapped to supply chain compromise, module firmware and project file infection. — Trend Micro Research, 2022-04-19
  • Options set in an XML file pointed to by CYCLONEDDS_URI. — Cyclone DDS README
  • Cyclone DDS 0.8.0 released 2021-09-15; notes do not mention CVEs. — Cyclone DDS on GitHub
  • Not in the CISA KEV catalog, version 2026.11.17 (1,782 entries), checked 2026-11-18. — CISA KEV
  • EPSS 0.02128, percentile 0.8226, dataset 2026-11-17, read 2026-11-18. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CISA ICS Advisory ICSA-21-315-02: Multiple Data Distribution Service (DDS) Implementations
  3. CISA CSAF record for ICSA-21-315-02 (revision 2, 2022-02-01)
  4. Trend Micro Research white paper: A Security Analysis of the Data Distribution Service (DDS) Protocol
  5. Trend Micro Research: Critically Underrated: Studying the Data Distribution Service (DDS) Protocol
  6. Eclipse Cyclone DDS 0.8.0 release
  7. Eclipse Cyclone DDS README (configuration)
  8. CISA KEV
  9. FIRST EPSS

Frequently asked questions

Which Cyclone DDS version fixes CVE-2021-38443?

CISA and NVD list versions before 0.8.0 as affected. The researchers list the fix as 0.8.1 and later and the master branch, so treat 0.8.1 or a later release as the safe minimum (per CISA ICSA-21-315-02, NVD and the Trend Micro white paper).

Can CVE-2021-38443 be exploited remotely?

The bug is in parsing the XML configuration file, so the attacker must control that file or the CYCLONEDDS_URI variable that points to it. That is why CISA scores it 6.6 with a local vector, while NVD rates it 9.8 as a network flaw (per CISA, NVD and the Cyclone DDS README).

How does CVE-2021-38443 differ from CVE-2021-38441?

Both are Cyclone DDS XML parser flaws fixed after 0.8.0. CVE-2021-38441 is a write-what-where condition (CWE-123) with a null dereference and up to 8-byte heap write; CVE-2021-38443 is improper handling of invalid structures (CWE-228) with a multi-byte heap write (per CISA and the Trend Micro white paper).

Is CVE-2021-38443 exploited in the wild?

It is not in the CISA KEV catalog as of 2026-11-18 (catalog version 2026.11.17), and CISA's advisory reported no known public exploits targeting these DDS flaws. FIRST EPSS gives it 0.0213, the 82.3rd percentile, in the 2026-11-17 dataset (per CISA KEV, CISA ICSA-21-315-02 and FIRST EPSS).