Heap-based buffer overflow in Libidn2 - CVE-2019-18224

 

Heap-based buffer overflow in Libidn2 - CVE-2019-18224

Published: October 30, 2019


Vulnerability identifier: #VU22429
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-18224
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Libidn2
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

Install updates from vendor's website.

Libidn2 - update to 2.1.1
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