CVE-2024-50341
Security::login does not take into account custom user_checker in symfony/security-bundle
Reported by github_m · Published November 6, 2024
symfony/security-bundle is fixed in 7.1.3, 7.0.10 and 6.4.10 (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| symfony/security-bundle | Packagist | 7.1.3, 7.0.10, 6.4.10 |
| symfony/symfony | Packagist | 7.1.3, 7.0.10, 6.4.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| symfony | symfony | >= 6.2.0, < 6.4.10, >= 7.0.0, < 7.0.10, >= 7.1.0, < 7.1.3 |
| symfony | symfony | 6.2.0, 7.0.0, 7.1.0 |
| symfony | security-bundle | 6.2.0, 7.0.0, 7.1.0 |
| symfony | symfony | 6.2.0, 7.0.0, 7.1.0 |
Timeline
- Nov 6, 2024 CVE Published
- Nov 6, 2024 Coalition ESS Score (7 in total, the first dated here)
- Nov 6, 2024 PoC Published (2 in total, the first dated here)
- Nov 7, 2024 EPSS Score (30 in total, the first dated here)
- Nov 7, 2024 CVE Updated
- Jan 2, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-50341
vulnetix vdb fixes CVE-2024-50341
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-50341/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/symfony/symfony/security/advisories/GHSA-jxgr-3v7q-3w9v x_refsource_CONFIRM
- https://github.com/symfony/symfony/commit/22a0789a0085c3ee96f4ef715ecad8255cf0e105 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-50341 advisory
- https://github.com/advisories/GHSA-jxgr-3v7q-3w9v advisory
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2024-50341.yaml url
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50341.yaml url
- https://github.com/symfony/symfony url
- https://symfony.com/cve-2024-50341 url