CVE-2018-3738:
Denial of Service in protobufjs
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.58973%
CWE
Published
10/9/2018
Updated
4/11/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
protobufjs | npm | >= 6.0.0, < 6.8.6 | 6.8.6 |
protobufjs | npm | < 5.0.3 | 5.0.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from inefficient regular expressions used in numeric value parsing. The parseNumber function contains multiple complex regex patterns (numberRe, base16Re, etc.) that exhibit exponential time complexity for certain malicious inputs. During .proto file parsing, readValue calls parseNumber with attacker-controlled data, making these functions appear in stack traces when processing malicious payloads. The GitHub advisory specifically references parse.js line 27 which contains the regex definitions, and the CVE description confirms the ReDoS occurs during invalid proto file parsing.