Потоковые фильтры convert.base64-encode, convert.quoted-printable-encode и convert.quoted-printable-decode принимают опцию line-break-chars, длина которой отслеживается отдельно от самой строки. Конструкторы фильтров дублируют значение pestrdup(), которое останавливается на первом NUL байте, сохраняя при этом исходную длину. Когда фильтр позже испускает разрыв строки, он копирует записанную длину из усеченного распределения, считывая его конец и помещая соседние байты кучи в выход фильтра.
Показать оригинальное описание (EN)
The convert.base64-encode, convert.quoted-printable-encode and convert.quoted-printable-decode stream filters accept a line-break-chars option whose length is tracked separately from the string itself. The filter constructors duplicate the value with pestrdup(), which stops at the first NUL byte, while keeping the original length. When the filter later emits a line break it copies the recorded length out of the truncated allocation, reading past its end and placing adjacent heap bytes into the filter output.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Php Php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
|
8.2.0
|
8.2.34
|
|
Php Php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
|
8.3.0
|
8.3.35
|
|
Php Php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
|
8.4.0
|
8.4.26
|
|
Php Php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
|
8.5.0
|
8.5.11
|