Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. user_agent_parser
  4. ›
  5. CVE-2020-5243

CVE-2020-5243: Uncontrolled Resource Consumption

February 21, 2020 (updated February 25, 2020)

uap-core is vulnerable to a denial of service attack when processing crafted User-Agent strings. 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 has been patched in uap-core

References

  • github.com/ua-parser/uap-core/commit/0afd61ed85396a3b5316f18bfd1edfaadf8e88e1
  • github.com/ua-parser/uap-core/security/advisories/GHSA-cmcx-xhr8-3w9p
  • nvd.nist.gov/vuln/detail/CVE-2020-5243

Code Behaviors & Features

Detect and mitigate CVE-2020-5243 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.7.3

Fixed versions

  • 1.0.0

Solution

Upgrade to version 1.0.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

gem/user_agent_parser/CVE-2020-5243.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.