Regular expression denial of service in UAParser.js



Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-25927
CWE-ID CWE-185
Exploitation vector Network
Public exploit N/A
Vulnerable software
UAParser.js
Web applications / JS libraries

Vendor Faisal Salman

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Incorrect Regular Expression

EUVDB-ID: #VU73969

Risk: Medium

CVSSv3.1: 4.6 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-25927

CWE-ID: CWE-185 - Incorrect Regular Expression

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient input validation passed via the trim() function. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.

Mitigation

Install update from vendor's website.

Vulnerable software versions

UAParser.js: 0.1 - 1.0.32

CPE2.3 External links

http://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450
http://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###