[GHSA-8wx3-8m4x-g5h4] FOSUserBundle User Identity Validation Vulnerability#8013
Open
RainSignal wants to merge 1 commit into
Open
[GHSA-8wx3-8m4x-g5h4] FOSUserBundle User Identity Validation Vulnerability#8013RainSignal wants to merge 1 commit into
RainSignal wants to merge 1 commit into
Conversation
Copilot stopped work on behalf of
RainSignal due to an error
June 11, 2026 16:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
Comments
The advisory states the affected versions start from 1.2.0, but code
review shows the vulnerable code exists as far back as 1.0.0, which
is the earliest version available on Packagist.
The vulnerable refreshUser() method in Model/UserManager.php at 1.0.0:
https://github.com/FriendsOfSymfony/FOSUserBundle/blob/1.0.0/Model/UserManager.php
uses loadUserByUsername($user->getUsername()) to reload the user on
each request, instead of loading by primary key. This means the
affected version range should start from 1.0.0, not 1.2.0.
Additionally, the current severity is listed as Moderate, but the
vulnerability allows an authenticated user to impersonate another
user by changing their username to match an existing account,
resulting in full account takeover. This warrants a High severity
rating with CVSS vector:
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N (score: 7.5)
AC:H reflects that exploitation requires the application to be
configured to allow username changes, which is not the default
behavior but is a supported feature of the bundle.
The weakness CWE-285 (Improper Authorization) should also be
replaced with CWE-287 (Improper Authentication), as the root cause
is the authentication refresh mechanism using an incorrect identifier,
not an authorization check failure.