CVE-2018-20164: Uap core Denial of Service Vulnerability
MODERATECVE-2018-20164 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-185: Incorrect Regular Expression) affecting Uap core libraries in the npm ecosystem. The issue involves uap-core regular expression denial of service issue. Remediation is available by upgrading affected packages to version 0.6.0.
CVE-2018-20164 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2018-20164
To remediate this vulnerability, upgrade all affected Uap core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install uap-core@0.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls uap-core
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-20164, inspect your project dependencies using npm:
npm ls uap-core
Analyze the terminal output to locate any version of Uap core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.
Note: The npm ls uap-core command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-185: Incorrect Regular Expression, where the product specifies a regular expression in a way that causes data to be improperly matched or compared. In Uap core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-20164 Affected Uap core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
uap-core
|
npm |
< 0.6.0
|
0.6.0
|
References
Frequently Asked Questions
What is CVE-2018-20164?
Which Uap core versions are affected?
What version fixes CVE-2018-20164?
Is uap-core affected?
What is the CVSS score of CVE-2018-20164?
What CWE is associated with CVE-2018-20164?
How can I check npm dependencies for CVE-2018-20164?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fx7m-j728-mjw3",
"modified" : "2023-01-23T17:07:55Z",
"published" : "2019-03-06T17:35:47Z",
"aliases" : [ "CVE-2018-20164" ],
"summary" : "uap-core Regular Expression Denial of Service issue",
"details" : "An issue was discovered in regex.yaml (aka regexes.yaml) in UA-Parser UAP-Core before 0.6.0. A Regular Expression Denial of Service (ReDoS) issue allows remote attackers to overload a server by setting the User-Agent header in an HTTP(S) request to a value containing a long digit string. (The UAP-Core project contains the vulnerability, propagating to all implementations.)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "uap-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-20164"
}, {
"type" : "WEB",
"url" : "https://github.com/ua-parser/uap-core/issues/332"
}, {
"type" : "WEB",
"url" : "https://github.com/ua-parser/uap-core/commit/010ccdc7303546cd22b9da687c29f4a996990014"
}, {
"type" : "WEB",
"url" : "https://github.com/ua-parser/uap-core/commit/156f7e12b215bddbaf3df4514c399d683e6cdadc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ua-parser/uap-core"
}, {
"type" : "WEB",
"url" : "https://www.x41-dsec.de/lab/advisories/x41-2018-009-uaparser"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-185" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:35:45Z",
"nvd_published_at" : null
}
}