Read the docs
TI-2024-38798 Aliases GHSA-7mx2-7q8p-pgmw

Symfony may allow a user to switch to using another user's identity

Priority LOW 38CWE-287Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Security bypass
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-287.

Summary

Symfony 2.0.6 has just been released. It addresses a security vulnerability in the EntityUserProvider as provided in the Doctrine bridge. If you let your users update their login/username from a form, and if you are using Doctrine as a user provider, then you are vulnerable and you should upgrade as soon as possible. The issue is that it is possible for a user to switch to another one. Here is how to reproduce it: The current user changes its username via a form to another existing username. When the form is submitted, he will have a validation error (as the username already exists) but the user object in the session will still be modified to the new username. This user from the session will be used for the next requests and so the user will be switched to this other user. The fix is to always refresh the user via the primary key (which cannot be updated via a form) instead of the username. If you cannot upgrade immediately, please apply the following patch: https://github.com/symfony/symfony/commit/9d2ab9ca9c1762

Why it matters now

Fix Fixed symfony/symfony (Packagist): 2.0.6

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—symfony/symfony (Packagist)2.0.0 to before 2.0.62.0.6Patch availableGHSA-7mx2-7q8p-pgmw
  • symfony/symfony (Packagist) Vendor— Affected 2.0.0 to before 2.0.6 Fixed in 2.0.6 Patch available GHSA-7mx2-7q8p-pgmw

Remediation

  • Fix · GHSA-7mx2-7q8p-pgmw symfony/symfony (Packagist) Fixed in 2.0.6 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-7mx2-7q8p-pgmw

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences