PT-2017-2621 · Oniguruma+5 · Oniguruma+5
Xixabangm4O
·
Publicado
2017-05-18
·
Atualizado
2022-07-20
·
CVE-2017-9226
CVSS v3.1
9.8
Crítica
| Vetor | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Oniguruma versions 6.2.0
Oniguruma-mod in Ruby versions through 2.4.1
mbstring in PHP versions through 7.1.5
Description
The issue is caused by incorrect handling of numbers larger than 0xff in the
fetch token() and fetch token in cc() functions during regular expression compilation. Exploitation of this issue may allow a remote attacker to cause memory corruption by using a specially crafted octal number in the form of "700" that exceeds 0xff, resulting in an out-of-bounds write when processed. This can lead to memory corruption due to the incorrect handling of octal numbers in the next state val() function.Recommendations
For Oniguruma version 6.2.0, consider disabling the
fetch token() and fetch token in cc() functions until a patch is available.
For Oniguruma-mod in Ruby versions through 2.4.1, restrict the use of octal numbers in regular expressions to prevent exploitation.
For mbstring in PHP versions through 7.1.5, avoid using the next state val() function with malformed regular expressions containing octal numbers larger than 0xff until the issue is resolved.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
Out of bounds Read
Memory Corruption
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Identificadores relacionados
Produtos afetados
Alt Linux
Oniguruma
Oniguruma-Mod
Suse
Ubuntu
Mbstring