Low

Symfony's `Security::login` does not take into account custom `user_checker`

  • Disclosed: 06.11.2024
  • Updated: 11.10.2026 10:22

Description

The custom user_checker defined on a firewall is not called when Login Programmaticaly with the Security::login method, leading to unwanted login.

Resolution

The Security::login method now ensure to call the configured user_checker.

The patch for this issue is available here for branch 6.4.

Credits

We would like to thank Oleg Andreyev, Antoine MAKDESSI for reporting the issue and Christian Flothmann for providing the fix.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package symfony/security-bundle >= 6.2.0, < 6.4.10, >= 7.0.0, < 7.0.10, >= 7.1.0, < 7.1.3 6.4.10, 7.0.10, 7.1.3
Composer package symfony/symfony >= 6.2.0, < 6.4.10, >= 7.0.0, < 7.0.10, >= 7.1.0, < 7.1.3 6.4.10, 7.0.10, 7.1.3

References

CVSS score 3.1/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Weakness (CWE)
CWE-287
Platform
Composer
Package
symfony/security-bundle, symfony/symfony
Disclosed
06.11.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-jxgr-3v7q-3w9v - CC BY 4.0

Vulnerability history: symfony/security-bundle

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
11.2021 11.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 3
  • Low 1

Disclosures per year

  1. 2021: 1
  2. 2022: 2
  3. 2023: 1
  4. 2024: 1
  5. 2025: 0
  6. 2026: 0
  1. Symfony's `Security::login` does not take into account custom `user_checker` this entry
    Low · 3.1 CVE-2024-50341 >= 6.2.0, < 6.4.10, >= 7.0.0, < 7.0.10, >= 7.1.0, < 7.1.3 6.4.10, 7.0.10, 7.1.3
  2. Medium · 6.3 CVE-2022-24895 >= 2.0.0, < 4.4.50, >= 5.0.0, < 5.4.20, >= 6.0.0, < 6.0.20, >= 6.1.0, < 6.1.12, >= 6.2.0, < 6.2.6 4.4.50, 5.4.20, 6.0.20, 6.1.12, 6.2.6
  3. Medium · 6.1 CVE-2018-11408 >= 2.7.0, < 2.7.48, >= 2.8.0, < 2.8.41, >= 3.3.0, < 3.3.17, >= 3.4.0, < 3.4.11, >= 4.0.0, < 4.0.11 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11
  4. High · 8.8 CVE-2018-11406 >= 2.7.0, < 2.7.48, >= 2.8.0, < 2.8.41, >= 3.0.0, < 3.3.17, >= 3.4.0, < 3.4.11, >= 4.0.0, < 4.0.11 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11
  5. Medium · 6.5 CVE-2021-41268 >= 5.3.0, < 5.3.12 5.3.12

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.