CVE-2023-38704 Vulnerability Analysis & Exploit Details

CVE-2023-38704
Vulnerability Scoring

8.1
/10
Severe Risk

Cybersecurity professionals consider CVE-2023-38704 an immediate threat requiring urgent mitigation.

Attack Complexity Details

  • Attack Complexity: High
    Exploits require significant effort and special conditions.
  • Attack Vector: Network
    Vulnerability is exploitable over a network without physical access.
  • Privileges Required: None
    No privileges are required for exploitation.
  • Scope: Changed
    Successful exploitation can impact components beyond the vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2023-38704 Details

Status: Modified

Last updated: 🕗 21 Nov 2024, 08:14 UTC
Originally published on: 🕗 07 Aug 2023, 20:15 UTC

Time between publication and last update: 471 days

CVSS Release: version 3

CVSS3 Source

security-advisories@github.com

CVSS3 Type

Secondary

CVSS3 Vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L

CVE-2023-38704 Vulnerability Summary

CVE-2023-38704: 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.

Assessing the Risk of CVE-2023-38704

Access Complexity Graph

The exploitability of CVE-2023-38704 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2023-38704

CVE-2023-38704 presents a challenge to exploit due to its high attack complexity, but the absence of privilege requirements still makes it a viable target for skilled attackers. A thorough security review is advised.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2023-38704, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2023-38704, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: High
    Exploiting CVE-2023-38704 can result in unauthorized access to sensitive data, severely compromising data privacy.
  • Integrity: Low
    Exploiting CVE-2023-38704 may cause minor changes to data without severely impacting its accuracy.
  • Availability: Low
    CVE-2023-38704 may slightly degrade system performance without fully affecting service availability.

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.994% (probability of exploit)

EPSS Percentile: 83.8% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 16.200000000000003% of others.

CVE-2023-38704 References

External References

CWE Common Weakness Enumeration

NVD-CWE-noinfo

Vulnerable Configurations

  • cpe:2.3:a:datadoghq:import-in-the-middle:1.0.0:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.0.0:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.0.1:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.0.1:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.1.0:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.1.0:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.1.1:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.1.1:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.1.2:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.1.2:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.2.0:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.2.0:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.2.1:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.2.1:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.2.2:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.2.2:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.2.3:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.2.3:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.3.0:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.3.0:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.3.1:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.3.1:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.3.2:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.3.2:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.3.3:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.3.3:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.3.4:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.3.4:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.3.5:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.3.5:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.4.0:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.4.0:*:*:*:*:node.js:*:*
  • cpe:2.3:a:datadoghq:import-in-the-middle:1.4.1:*:*:*:*:node.js:*:*
    cpe:2.3:a:datadoghq:import-in-the-middle:1.4.1:*:*:*:*:node.js:*:*

Protect Your Infrastructure against CVE-2023-38704: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-4287 – A vulnerability was found in PyTorch 2.6.0+cu124. It has been rated as problematic. Affected by this issue is the function torch.cuda.nccl.reduce o...
  • CVE-2025-4286 – A vulnerability was found in Intelbras InControl up to 2.21.59. It has been classified as problematic. Affected is an unknown function of the compo...
  • CVE-2025-46813 – Discourse is an open-source community platform. A data leak vulnerability affects sites deployed between commits 10df7fdee060d44accdee7679d66d778d1...
  • CVE-2025-46734 – league/commonmark is a PHP Markdown parser. A cross-site scripting (XSS) vulnerability in the Attributes extension of the league/commonmark library...
  • CVE-2025-46731 – Craft is a content management system. Versions of Craft CMS on the 4.x branch prior to 4.14.13 and on the 5.x branch prior to 5.6.16 contains a pot...