CVE-2021-21317

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-21317
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-21317.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-21317
Aliases
Related
Published
2021-02-16T18:15:12Z
Modified
2025-01-08T10:33:51.456902Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
[none]
Details

uap-core in an open-source npm package which contains the core of BrowserScope's original user agent string parser. In uap-core before version 0.11.0, some regexes are vulnerable to regular expression denial of service (REDoS) due to overlapping capture groups. This allows remote attackers to overload a server by setting the User-Agent header in an HTTP(S) request to maliciously crafted long strings. This is fixed in version 0.11.0. Downstream packages such as uap-python, uap-ruby etc which depend upon uap-core follow different version schemes.

References

Affected packages

Git / github.com/ua-parser/uap-core

Affected ranges

Type
GIT
Repo
https://github.com/ua-parser/uap-core
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

java-1.*

java-1.2.2
java-1.3.0

php-3.*

php-3.3

Other

semver

v0.*

v0.1.0
v0.1.1
v0.10.0
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.3.0
v0.3.1
v0.3.2
v0.3.4
v0.5.0
v0.6.0
v0.6.1
v0.6.11
v0.6.2
v0.6.3
v0.6.4
v0.6.5
v0.6.6
v0.6.7
v0.6.8
v0.6.9
v0.7.0
v0.7.1
v0.7.2
v0.7.3
v0.8.0
v0.9.0