Advisory

GHSA-pcqq-5962-hvcw

Also known as: None

Summary

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

Details

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
https://github.com/ua-parser/uap-core/security/advisories/GHSA-cmcx-xhr8-3w9p

Reported in uap-core by Ben Caller @bcaller

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-03-10 18:02 UTC
Modified
2025-05-22 17:55 UTC

Affected packages and fixes

user_agent_parser

RubyGems · All systems

Affected

  • introduced 0, fixed 2.6.0 (ecosystem)

Fixed versions

2.6.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences