GHSA-pcqq-5962-hvcw: User agent parser Denial of Service Vulnerability
HIGHGHSA-pcqq-5962-hvcw is a HIGH denial of service vulnerability (General Security Weakness) affecting User agent parser libraries in the RubyGems ecosystem. The issue involves denial of service in uap-core when processing crafted user-agent strings. Remediation is available by upgrading affected packages to version 2.6.0.
GHSA-pcqq-5962-hvcw at a Glance
How to Fix GHSA-pcqq-5962-hvcw
To remediate this vulnerability, upgrade all affected User agent parser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade user_agent_parser to 2.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for user_agent_parser
How to Check if You Are Affected
To determine whether your application is affected by GHSA-pcqq-5962-hvcw, inspect your project dependencies for User agent parser:
inspect dependencies for user_agent_parser
Analyze the terminal output to locate any version of User agent parser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In User agent parser, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-pcqq-5962-hvcw Affected User agent parser Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
user_agent_parser
|
RubyGems |
< 2.6.0
|
2.6.0
|
References
Frequently Asked Questions
What is GHSA-pcqq-5962-hvcw?
Which User agent parser versions are affected?
What version fixes GHSA-pcqq-5962-hvcw?
Is user_agent_parser affected?
What CWE is associated with GHSA-pcqq-5962-hvcw?
How can I check RubyGems dependencies for GHSA-pcqq-5962-hvcw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pcqq-5962-hvcw",
"modified" : "2025-05-22T17:12:55Z",
"published" : "2020-03-10T18:02:49Z",
"aliases" : [ ],
"summary" : "Denial of Service in uap-core when processing crafted User-Agent strings",
"details" : "### Impact\nSome 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.\n\n### Patches\nPlease update `uap-ruby` to >= v2.6.0\n\n### For more information\nhttps://github.com/ua-parser/uap-core/security/advisories/GHSA-cmcx-xhr8-3w9p\n\nReported in `uap-core` by Ben Caller @bcaller",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "user_agent_parser"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ua-parser/uap-ruby/security/advisories/GHSA-pcqq-5962-hvcw"
}, {
"type" : "WEB",
"url" : "https://github.com/ua-parser/uap-ruby/commit/2bb18268f4c5ba7d4ba0e21c296bf6437063da3a"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/user_agent_parser/GHSA-pcqq-5962-hvcw.yml"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-03-10T16:48:58Z",
"nvd_published_at" : null
}
}