Skip to content

Denial of Service in uap-core when processing crafted User-Agent strings

High severity GitHub Reviewed Published Mar 6, 2020 in ua-parser/uap-ruby • Updated Jan 9, 2023

Package

bundler user_agent_parser (RubyGems)

Affected versions

< 2.6.0

Patched versions

2.6.0

Description

Impact

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.

Patches

Please update uap-ruby to >= v2.6.0

For more information

GHSA-cmcx-xhr8-3w9p

Reported in uap-core by Ben Caller @bcaller

References

@nijikon nijikon published to ua-parser/uap-ruby Mar 6, 2020
Reviewed Mar 10, 2020
Published to the GitHub Advisory Database Mar 10, 2020
Last updated Jan 9, 2023

Severity

High

Weaknesses

No CWEs

CVE ID

No known CVE

GHSA ID

GHSA-pcqq-5962-hvcw

Source code

No known source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.