GHSA-8wx3-8m4x-g5h4 FOSUserBundle User Identity Validation Vulnerability

Not scored Published

An attacker can bypass identity validation if username changes are allowed, potentially leading to privilege escalation or unauthorized access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-8wx3-8m4x-g5h4?

GHSA-8wx3-8m4x-g5h4 is an authentication bypass vulnerability in friendsofsymfony/user-bundle, published on 15 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Versions of FOSUserBundle prior to 1.2.1 have been found to be vulnerable to a security issue related to user identity validation. Specifically, user refreshing was performed using the primary key instead of the username, leading to a potential security risk if a user is allowed to change their username. The fix in version 1.2.1 addresses this issue by loading the user using the primary key during refreshing.

Which versions are affected by GHSA-8wx3-8m4x-g5h4?

2 open source packages ship an affected version, including friendsofsymfony/user-bundle.

PackageAffectedFixed in
friendsofsymfony/user-bundle PackagistFrom 1.0.01.2.1
friendsofsymfony/user-bundle PackagistFrom 1.0.01.2.1

How do I fix GHSA-8wx3-8m4x-g5h4?

Upgrade friendsofsymfony/user-bundle to 1.2.1 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is GHSA-8wx3-8m4x-g5h4 being exploited?

There is no known exploitation of GHSA-8wx3-8m4x-g5h4 in the wild and no public exploit code.

Sources

Is GHSA-8wx3-8m4x-g5h4 in your software?

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

Check your SBOMs for free