Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2023-38704

8.1 · HIGH
Published Aug 7, 2023 datadoghq CWE-20 EPSS 1.00% (60th pctl)

Overview

CVE-2023-38704 is a high-severity vulnerability affecting datadoghq import-in-the-middle. It was published on August 7, 2023 and has a CVSS 3.1 base score of 8.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

import-in-the-middle is a module loading interceptor specifically for ESM modules. The import-in-the-middle loader works by generating a wrapper module on the fly. The wrapper uses the module specifier to load the original module and add some wrapping code. Prior to version 1.4.2, it allows for remote code execution in cases where an application passes user-supplied input directly to the `import()` function. This vulnerability has been patched in import-in-the-middle version 1.4.2.

Some workarounds are available. Do not pass any user-supplied input to `import()`. Instead, verify it against a set of allowed values. If using import-in-the-middle, directly or indirectly, and support for EcmaScript Modules is not needed, ensure that no options are set, either via command-line or the `NODE_OPTIONS` environment variable, that would enable loader hooks.

Remediation

Check the references section for vendor advisories and patches from datadoghq. Update import-in-the-middle to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
datadoghq import-in-the-middle >= 0, < 1.4.2 Affected

Frequently Asked Questions

What is CVE-2023-38704?

CVE-2023-38704 is a high-severity vulnerability affecting datadoghq import-in-the-middle. It was published on August 7, 2023 and has a CVSS 3.1 base score of 8.1 (HIGH).

How severe is CVE-2023-38704?

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2023-38704?

Check the references section for vendor advisories and patches from datadoghq. Update import-in-the-middle to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2023-38704?

CyberStrike's AI-powered security agents can automatically detect CVE-2023-38704 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.