CVE-2021-25994 Userfrosting - Host-Header Injection Leads to Account Takeover

High 8.8 Published Updated

An attacker can hijack user accounts via Host Header Injection in the password reset flow by tricking users into clicking a malicious link.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-25994?

CVE-2021-25994 is a high-severity vulnerability in userfrosting, published on 3 Jan 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In Userfrosting, versions v0.3.1 to v4.6.2 are vulnerable to Host Header Injection. By luring a victim application user to click on a link, an unauthenticated attacker can use the “forgot password” functionality to reset the victim’s password and successfully take over their account.

Weakness: CWE-74

Which versions are affected by CVE-2021-25994?

2 open source packages ship an affected version, including userfrosting/userfrosting. It affects 1 product.

PackageAffectedFixed in
userfrosting/userfrosting PackagistFrom 0.3.14.6.3
userfrosting/userfrosting PackagistFrom 0.3.14.6.3

Products include Userfrosting Userfrosting.

How do I fix CVE-2021-25994?

Upgrade userfrosting/userfrosting to 4.6.3 or later.

Is CVE-2021-25994 being exploited?

There is no known exploitation of CVE-2021-25994 in the wild and no public exploit code.

Sources

Also known as GHSA-cv25-3gmg-c6m8.

Is CVE-2021-25994 in your software?

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

Check your SBOMs for free