Access of Memory Location After End of Buffer Affecting undici package, versions >=6.14.0 <6.19.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-UNDICI-7361667
  • published 25 Jun 2024
  • disclosed 21 Jun 2024
  • credit wille

How to fix?

Upgrade undici to version 6.19.2 or higher.

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Access of Memory Location After End of Buffer when cloning an arrayBuffer in body.js and util.js. This exposes some process memory when returning a buffer not exactly 8192 bytes in length. The attacker cannot fully control the contents of the returned buffer.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
6.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    Low
  • Integrity (SI)
    None
  • Availability (SA)
    None