GHSA-78hm-5hjw-58mh ua-parser/uap-php ReDoS vulnerability

Not scored Published

A ReDoS vulnerability in the ua-parser/uap-php library allows attackers to cause denial of service via crafted user agent strings.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-78hm-5hjw-58mh?

GHSA-78hm-5hjw-58mh is a denial of service vulnerability in ua-parser/uap-php, published on 7 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A regex expression in ua-parser/uap-php could lead to a ReDoS vulnerability in versions prior to 3.8.0.

Which versions are affected by GHSA-78hm-5hjw-58mh?

2 open source packages ship an affected version, including ua-parser/uap-php.

PackageAffectedFixed in
ua-parser/uap-php PackagistAll versions3.8.0
ua-parser/uap-php PackagistAll versions3.8.0

How do I fix GHSA-78hm-5hjw-58mh?

Upgrade ua-parser/uap-php to 3.8.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is GHSA-78hm-5hjw-58mh being exploited?

There is no known exploitation of GHSA-78hm-5hjw-58mh in the wild and no public exploit code.

Sources

Is GHSA-78hm-5hjw-58mh in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free