Intel

AIKIDO-2025-10856

symfony/security-http is vulnerable to Authentication Bypass by Primary Weakness

Authentication Bypass by Primary Weakness Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 1, 2025

72

High Risk

This Affects:

PHPsymfony/security-http
7.3.0 - 7.3.7
Fixed in 7.3.8
8.0.0 - 8.0.0
Fixed in 8.0.1
Are you affected? Scan for Free

TL;DR

Affected versions are vulnerable to a validation bypass in UserBadge identifier normalization. The issue occurs because the UserBadge constructor validates that the identifier is not empty and does not exceed MAX_USERNAME_LENGTH. Still, when using $identifierNormalizer, the normalized identifier is computed lazily in getUserIdentifier() without validation, allowing normalizers to return invalid values. An attacker can exploit this by supplying a custom normalizer that returns an empty string or other invalid identifiers, bypassing the constructor's validation and potentially leading to authentication flaws.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

symfony/security-http is vulnerable to Authentication Bypass by Primary Weakness in versions 7.3.0 - 7.3.7 and 8.0.0 - 8.0.0.

How to fix this

Upgrade the symfony/security-http library to the patch version.