# GHSA-pcqq-5962-hvcw: Denial of Service in uap-core when processing crafted User-Agent strings

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-03-10T18:02:49.000Z
- Modified: 2025-05-22T17:55:09.602Z

## 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 &gt;= 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

(As written by GitHub Advisory Database.)

## Affected

- user_agent_parser (RubyGems): before 2.6.0

## References

- <https://github.com/ua-parser/uap-ruby/security/advisories/GHSA-pcqq-5962-hvcw> (web)
- <https://github.com/ua-parser/uap-ruby/commit/2bb18268f4c5ba7d4ba0e21c296bf6437063da3a> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/user_agent_parser/GHSA-pcqq-5962-hvcw.yml> (web)

## Sources

- GitHub Advisory Database: [GHSA-pcqq-5962-hvcw](https://github.com/advisories/GHSA-pcqq-5962-hvcw), CC-BY-4.0, modified 2025-05-22

---

Page: https://cve.day/GHSA-pcqq-5962-hvcw · Whole record: https://cve.day/GHSA-pcqq-5962-hvcw.json · Rebuilt by cve.day 2026-11-25T22:56:41.430Z
