Security Advisory

CVE-2021-38427: RTI Connext DDS XML Stack Overflow

Last updated:
  • CVE-2021-38427

CVE-2021-38427 is a stack-based buffer overflow (CWE-121) in the XML parser of RTI Connext DDS Professional and Connext DDS Secure 4.2x to 6.1.0: a malformed configuration XML file can crash the application or run code with its privileges. NVD scores it 7.8. RTI fixed it in 6.1.0.3, 6.0.1.25, 5.3.1.35 and 4.5d.rev41.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

0.6%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
RTI Connext DDS Professionalcpe:2.3:a:rti:connext_professional:*:*:*:*:*:*:*:*NVD: 4.2.0 through 6.1.0; RTI: 6.1.0 before 6.1.0.3, 6.0.0 before 6.0.1.25, 5.3.0 before 5.3.1.35, 4.5x before 4.5d.rev41
RTI Connext DDS Securecpe:2.3:a:rti:connext_secure:*:*:*:*:*:*:*:*NVD: 4.2.0 through 6.1.0; CISA ICSA-21-315-02: 4.2x to 6.1.0

What does this mean for affected devices?

NVD's description: "RTI Connext DDS Professional and Connext DDS Secure Versions 4.2.x to 6.1.0 are vulnerable to a stack-based buffer overflow, which may allow a local attacker to execute arbitrary code." NVD's Primary score is 7.8, CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, with CWE-787. CISA, the assigning CNA, scores it 6.6 (AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H) and classes it CWE-121. NVD's CPE covers Connext Professional and Connext Secure from 4.2.0 up to and including 6.1.0 (NVD).

What does RTI say?

RTI's security bulletin page lists the bug as "Potential stack buffer overflow while parsing an XML document" (RTI issue CORE-11749). RTI scores it 7.6 (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H) without DDS Security, where it is "Remotely exploitable" with "Application crash, remote code execution with Connext application privileges", and 6.6 with Security, where it is "Only exploitable from the same host where the Connext application is running". RTI's affected ranges are narrower than CISA's 4.2x to 6.1.0:

Release line Affected Fixed in
6.1.0 before 6.1.0.3 6.1.0.3
6.0.0 before 6.0.1.25 6.0.1.25
5.3.0 before 5.3.1.35 5.3.1.35
4.5x before 4.5d.rev41 4.5d.rev41

RTI's mitigations: "Protect access to the network Connext applications are running in, or use Security Plugins RTPS protection" and "Restrict permissions for writing to the configuration files your Connext application uses." CISA's ICSA-21-315-02 (2021-11-11, updated 2022-02-01) adds that the patch is available on the RTI customer portal or from RTI Support.

How was it found?

The researchers fuzzed XML configuration files and filed this CVE and its twin CVE-2021-38433 under the "configuration XML file" attack surface. Their white paper says an attribute value longer than a certain limit makes RTIXMLObject_lookUpRef() overflow the stack, and at exactly 894 characters they overwrote the instruction pointer through the Connext Python bindings, "with up to 6 bytes write access". They list both CVEs as patched from 6.1.0 (Trend Micro Research).

What should device makers do?

Connext ships inside robots, vehicles and control systems, often with QoS profiles loaded from XML at start-up. Upgrade to a fixed RTI build, and make the XML profiles read-only to the service account, since whoever can write them controls the parser input. Our DDS security guide covers DDS Security and segmentation, and the memory corruption fix guide covers the weakness class. The same disclosure includes the RTI parser crash CVE-2021-38435 and the Cyclone DDS XML flaw CVE-2021-38443.

CVE-2021-38427 is not in the CISA KEV catalog as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.00581, the 48.4th percentile, in the 2026-11-17 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • Connext DDS Professional and Secure 4.2.x to 6.1.0 stack-based buffer overflow, local attacker may execute code; NVD Primary 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, CWE-787; CISA 6.6 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H, CWE-121; CPE connext_professional and connext_secure 4.2.0 through 6.1.0 inclusive; published 2022-05-05. — NVD
  • CVE-2021-38427 "Potential stack buffer overflow while parsing an XML document", RTI issue CORE-11749; without Security 7.6 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H, remotely exploitable, crash or RCE with Connext privileges; with Security 6.6, same host only; mitigations: protect network or Security Plugins RTPS protection, restrict write permissions on configuration files; CWE-121; affected 6.1.0 before 6.1.0.3, 6.0.0 before 6.0.1.25, 5.3.0 before 5.3.1.35, 4.5x before 4.5d.rev41; page last updated 2026-09-22. — RTI Connext Security Bulletins and Advisories
  • RTI Connext DDS Professional and Secure 4.2x to 6.1.0; CVE-2021-38427 CWE-121 CVSS 6.6; RTI patch on the customer portal or from RTI Support; 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 ICS Advisory ICSA-21-315-02
  • Configuration XML file attack surface; Table 6: Connext DDS, ROS 2, patched >= 6.1.0, stack overflow via malformed XML file with up to 6 bytes write access to instruction pointer; section 5.2.3.1: RTIXMLObject_lookUpRef() overflow, 894-character attribute overwrote RIP via Python bindings. — Trend Micro Research white paper
  • Not in the CISA KEV catalog, version 2026.11.17 (1,782 entries), checked 2026-11-18. — CISA KEV
  • EPSS 0.00581, percentile 0.48365, dataset 2026-11-17, read 2026-11-18. — FIRST EPSS

Related advisories

Sources

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

Frequently asked questions

Which RTI Connext versions fix CVE-2021-38427?

RTI lists 6.1.0.3, 6.0.1.25, 5.3.1.35 and 4.5d.rev41 as the first fixed builds of their release lines. CISA says the patch is on the RTI customer portal or available from RTI Support (per RTI and CISA ICSA-21-315-02).

Can CVE-2021-38427 be exploited over the network?

RTI rates it remotely exploitable without DDS Security (7.6) and exploitable only from the same host with Security (6.6). NVD and CISA treat it as local. The attacker needs to get a malformed XML document parsed by the application (per RTI, NVD and CISA).

What is the difference between CVE-2021-38427 and CVE-2021-38433?

RTI tracks them as two issues, CORE-11749 and CORE-11750, with the same title, scores, mitigations and fixed builds; both are stack overflows in Connext XML parsing. NVD's CPE for CVE-2021-38433 stops before 6.1.0, while this one includes 6.1.0 (per RTI and NVD).

Is CVE-2021-38427 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.00581, the 48.4th percentile, in the 2026-11-17 dataset (per CISA KEV, CISA ICSA-21-315-02 and FIRST EPSS).