Heap-based buffer overflow in Libidn2 - CVE-2019-18224
Published: October 30, 2019
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the idn2_to_ascii_4i() function in lib/lookup.c when processing domain names. A remote attacker can trick the victim to visit a specially crafted website, trigger heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Amazon Linux AMI
Fedora
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Opensuse
libidn2 (Debian package)
libidn2 (Ubuntu package)
libidn2 (Alpine package)
mingw-libidn2
libidn2 (Red Hat package)
How to mitigate CVE-2019-18224
libidn2 (Debian package) - update to 2.0.5-1+deb10u1
libidn2 (Ubuntu package) - addressed in versions 2.0.4-1.1ubuntu0.2, 2.0.5-1ubuntu0.3
mingw-libidn2 - addressed in versions 2.2.0-1.el7, 2.2.0-1.fc29, 2.2.0-1.fc30
libidn2 (Red Hat package) - update to 2.2.0-1.el8
External References
Related Security Bulletins
- Remote code execution in GNU libidn2
- Ubuntu update for Libidn2
- OpenSUSE Linux update for libidn2
- OpenSUSE Linux update for libidn2
- Amazon Linux AMI update for libidn2
- Debian update for libidn2
- Gentoo update for GNU IDN Library 2
- Heap-based buffer overflow in libidn2 (Alpine package)
- Red Hat Enterprise Linux 8 update for libidn2
- Fedora EPEL 7 update for mingw-libidn2
- Fedora 30 update for mingw-libidn2
- Fedora 29 update for mingw-libidn2