{"id":"CVE-2024-50341","aliases":["CVE-2024-50341","GHSA-jxgr-3v7q-3w9v"],"related":[],"kind":"vulnerability","state":"published","title":"Security::login does not take into account custom user_checker in symfony/security-bundle","summary":"symfony/security-bundle is a module for the Symphony PHP framework which provides a tight integration of the Security component into the Symfony full-stack framework. The custom `user_checker` defined on a firewall is not called when Login Programmaticaly with the `Security::login` method, leading to  unwanted login. As of versions 6.4.10, 7.0.10 and 7.1.3 the `Security::login` method now ensure to call the configured `user_checker`. All users are advised to upgrade. There are no known workarounds for this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"symfony/security-bundle is a module for the Symphony PHP framework which provides a tight integration of the Security component into the Symfony full-stack framework. The custom `user_checker` defined on a firewall is not called when Login Programmaticaly with the `Security::login` method, leading to  unwanted login. As of versions 6.4.10, 7.0.10 and 7.1.3 the `Security::login` method now ensure to call the configured `user_checker`. All users are advised to upgrade. There are no known workarounds for this vulnerability.","source":"cvelist"},{"lang":"en","text":"### Description\n\nThe custom `user_checker` defined on a firewall is not called when Login Programmaticaly with the `Security::login` method, leading to  unwanted login.\n\n### Resolution\n\nThe `Security::login` method now ensure to call the configured `user_checker`.\n\nThe patch for this issue is available [here](https://github.com/symfony/symfony/commit/22a0789a0085c3ee96f4ef715ecad8255cf0e105) for branch 6.4.\n\n### Credits\n\nWe would like to thank Oleg Andreyev, Antoine MAKDESSI for reporting the issue and Christian Flothmann for providing the fix.","format":"markdown","source":"ghsa"},{"lang":"es","text":"symfony/security-bundle es un módulo para el framework PHP Symphony que proporciona una integración estrecha del componente Security en el framework full-stack Symfony. El `user_checker` personalizado definido en un firewall no se llama cuando se inicia sesión mediante programación con el método `Security::login`, lo que provoca inicios de sesión no deseados. A partir de las versiones 6.4.10, 7.0.10 y 7.1.3, el método `Security::login` ahora se asegura de llamar al `user_checker` configurado. Se recomienda a todos los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2024-11-06T15:13:42.000Z","modified":"2026-06-17T08:04:16.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"LOW"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"version":">= 6.2.0, < 6.4.10","status":"affected"},{"version":">= 7.0.0, < 7.0.10","status":"affected"},{"version":">= 7.1.0, < 7.1.3","status":"affected"}],"vendor":"symfony","product":"symfony","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.2.0","status":"affected","fixed":"6.4.10"}],"ecosystem":"Packagist","package":"symfony/security-bundle","purl":"pkg:composer/symfony/security-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.10"}],"ecosystem":"Packagist","package":"symfony/security-bundle","purl":"pkg:composer/symfony/security-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.1.0","status":"affected","fixed":"7.1.3"}],"ecosystem":"Packagist","package":"symfony/security-bundle","purl":"pkg:composer/symfony/security-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.2.0","status":"affected","fixed":"6.4.10"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.10"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.1.0","status":"affected","fixed":"7.1.3"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-jxgr-3v7q-3w9v","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/symfony/symfony/commit/22a0789a0085c3ee96f4ef715ecad8255cf0e105","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50341","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2024-50341.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50341.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/symfony","tags":["package"],"sources":["ghsa"]},{"url":"https://symfony.com/cve-2024-50341","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-07T15:26:59.288Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50341","url":"https://www.cve.org/CVERecord?id=CVE-2024-50341","licence":"CVE Terms of Use","modified":"2024-11-07T15:27:06.600Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jxgr-3v7q-3w9v","url":"https://github.com/advisories/GHSA-jxgr-3v7q-3w9v","licence":"CC-BY-4.0","modified":"2024-11-07T00:09:49.602Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50341","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50341","licence":"Public domain","modified":"2026-06-17T08:04:16.140Z"}],"updatedAt":"2026-11-25T22:58:47.845Z","epss":{"score":0.00316,"percentile":0.26472,"date":"2026-12-01T12:00:22.000Z"}}