Integer overflow in LibTomMath - CVE-2023-36328

 

Integer overflow in LibTomMath - CVE-2023-36328

Published: September 4, 2023


Vulnerability identifier: #VU80405
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-36328
CWE-ID: CWE-190
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 integer overflow within the mp_grow() function. A remote attacker can pass specially crafted data to the application, trigger integer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

LibTomMath
Amazon Linux AMI
Fedora
IBM AIX
Ubuntu
openEuler
Anolis OS
IBM VIOS
libtommath1 (Ubuntu package)
libtommath0 (Ubuntu package)
libtommath
libtommath-devel
libtommath-debuginfo
libtommath-help
libtommath-debugsource

How to mitigate CVE-2023-36328

Install updates from vendor's website.

LibTomMath - update to 1.2.1
libtommath1 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.2.0-3ubuntu0.1, 1.2.0-6ubuntu0.22.04.1, 1.2.0-6ubuntu0.23.04.1, 1.2.0-6ubuntu0.23.10.1
libtommath0 (Ubuntu package) - update to Ubuntu Pro
libtommath - addressed in versions 0.42.0-6.el7, 1.1.0-4.el8, 1.2.0-10.el9, 1.2.0-11.fc37, 1.2.0-12.fc38, 1.2.0-13.fc39
libtommath-devel - update to 1.1.0-4
libtommath-debuginfo - update to 1.1.0-4
libtommath-help - update to 1.1.0-4
libtommath-debugsource - update to 1.1.0-4
libtommath - update to 1.1.0-4
libtommath - update to 1.2.0-4.1
libtommath-devel - update to 1.2.0-4.1
libtommath - update to 1.2.0-62

External References

Related Security Bulletins