Ad

CVE-2026-133752

MEDIUM CVSS 4.0: 6,3
Обновлено 25 ноября 2026
Payload
Параметр Значение
CVSS 6,3 (MEDIUM)
Тип уязвимости CWE-915
Поставщик Payload
Публичный эксплойт Нет

Когда он преобразует данные в класс, Serializer вычисляет, какие атрибуты он может записывать из метаданных [Игнорировать] и [Групп . Он сделал это для запрашиваемого класса, но написал в другой класс в двух случаях. Первый случай - это класс, который карта дискриминатора выбирает из данных.

Второй — класс объекта, пройденный с опцией object_to_populate или deep_object_to_populate. Когда запрашиваемый класс не имеет атрибута [Игнорировать] и контекст не устанавливает групп, ничто не было ограничено. A client could then set a property that the picked class marks with #[Ignore], constructor arguments included: #[DiscriminatorMap(typeProperty: 'kind', mapping: ['email' => EmailNotification::class])] abstract class Notification {} class EmailNotification extends Notification { #[Ignore] public bool $skipModeration = false; } With a #[MapRequestPayload] Notification $notification argument, the payload {"kind":"email","skipModeration":true} set skipModeration.

С группами в контексте, свойство вне этих групп также может быть установлено. Это произошло, когда другой класс карты имел свойство с тем же именем в одной из групп. То же самое произошло с [Игнорировать], когда запрашиваемый класс объявляет саму карту.

На 5.4, ObjectNormalizer также возвращал такие свойства при нормализации объекта, класс которого объявляет саму карту. Это касается ObjectNormalizer, PropertyNormalizer и GetSetMethodNormalizer. Теперь Serializer решает класс, в который он записывает первым, и вычисляет разрешенные атрибуты для этого класса.

Свойство типа карты дискриминатора также записывается только тогда, когда метаданные этого класса позволяют это.

Показать оригинальное описание (EN)

When it denormalizes data into a class, the Serializer computes which attributes it may write from the #[Ignore] and #[Groups] metadata. It did that for the requested class, but wrote into another class in two cases. The first case is the class that a discriminator map picks from the data. The second is the class of the object passed with the object_to_populate or deep_object_to_populate option. When the requested class has no #[Ignore] attribute and the context sets no groups, nothing was restricted. A client could then set a property that the picked class marks with #[Ignore], constructor arguments included: #[DiscriminatorMap(typeProperty: 'kind', mapping: ['email' => EmailNotification::class])] abstract class Notification {} class EmailNotification extends Notification { #[Ignore] public bool $skipModeration = false; } With a #[MapRequestPayload] Notification $notification argument, the payload {"kind":"email","skipModeration":true} set skipModeration. With groups in the context, a property outside these groups could be set too. This happened when another class of the map had a property with the same name in one of the groups. The same happened with #[Ignore] when the requested class declares the map itself. On 5.4, ObjectNormalizer also returned such properties when normalizing an object whose class declares the map itself. This affects ObjectNormalizer, PropertyNormalizer and GetSetMethodNormalizer. The Serializer now resolves the class it writes into first, and computes the allowed attributes for that class. The type property of a discriminator map is also written only when the metadata of that class allows it.

Характеристики атаки

Способ атаки
По сети
Атака возможна удалённо
Сложность
Низкая
Легко эксплуатировать
Условия для атаки
Требуются
Нужны дополнительные условия
Нужны права
Не требуются
Права не нужны
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Нет
Нет утечки данных
Целостность
Низкое
Частичная модификация данных
Доступность
Нет
Нет нарушения работы

Строка CVSS v4.0

Тип уязвимости (CWE)