CVE-2023-36328
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit...
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
CVE-2023-36328- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
CVE List
9.8
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
CVE-2023-36328- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
EUVDEUVD-2023-40296
9.8
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
EUVD-2023-40296- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-j3xv-6967-cv88
9.8
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit...
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
GHSA-j3xv-6967-cv88- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVALPINE-CVE-2023-36328
9.8
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
ALPINE-CVE-2023-36328- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVAZL-28627
9.8
CVE-2023-36328 affecting package tcl for versions less than 8.6.13-2
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
AZL-28627- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 13 moreShow less
OSVAZL-28639
9.8
CVE-2023-36328 affecting package libtommath for versions less than 1.1.0-5
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
AZL-28639- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-35296
9.8
CVE-2023-36328 affecting package tcl for versions less than 8.6.13-3
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
AZL-35296- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-05
OSVAZL-36959
9.8
CVE-2023-36328 affecting package libtommath for versions less than 1.1.0-5
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
AZL-36959- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-48187
9.8
CVE-2023-36328 affecting package samba 4.18.3-2
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
AZL-48187- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-05
OSV
9.8
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
CVE-2023-36328- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVCVE-2025-40913
6.5
Net::Dropbear versions through 0.16 for Perl contains a dependency that may be susceptible to an integer overflow
Net::Dropbear versions through 0.16 for Perl contains a dependency that may be susceptible to an integer overflow.
Net::Dropbear embeds a version of the libtommath library that is susceptible to an integer overflow associated with CVE-2023-36328.
- Record
CVE-2025-40913- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-1395
- Updated
- 2026-11-02
OSVCVE-2025-40914
9.8
Perl CryptX before version 0.087 contains a dependency that may be susceptible to an integer overflow
Perl CryptX before version 0.087 contains a dependency that may be susceptible to an integer overflow.
CryptX embeds a version of the libtommath library that is susceptible to an integer overflow associated with CVE-2023-36328.
- Record
CVE-2025-40914- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-1395
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-36328
9.8
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
DEBIAN-CVE-2023-36328- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2023-1625
9.8
libtommath security update
LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C. The library is designed to provide a simple to work with API that provides fairly efficient routines that build out of the box without configuration.
Security Fix(es):
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).(CVE-2023-36328)
- Record
OESA-2023-1625- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-36328
9.8
Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).
- Record
UBUNTU-CVE-2023-36328- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2023-0265 No score
Updated libtommath packages fix security vulnerability
libtomath is vulnerable to an Integer Overflow vulnerability that could allow attackers to execute arbitrary code and cause a denial of service (DoS). (CVE-2023-36328)
- Record
MGASA-2023-0265- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13425-1 No score
libtommath-devel-1.2.1-1.1 on GA media
These are all security issues fixed in the libtommath-devel-1.2.1-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13425-1- Updated
- 2026-11-02
OSVUSN-6402-1 No score
libtommath vulnerability
It was discovered that LibTomMath incorrectly handled certain inputs. An attacker could possibly use this issue to execute arbitrary code and cause a denial of service (DoS).
- Record
USN-6402-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libtommathAlpine:v3.23 |
before 1.2.1-r0 | 1.2.1-r0 |
libtommathAlpine:v3.24 |
before 1.2.1-r0 | 1.2.1-r0 |
tclAzure Linux:2 |
before 8.6.13-2 | 8.6.13-2 |
libtommathAzure Linux:2 |
before 1.1.0-5 | 1.1.0-5 |
tclAzure Linux:3 |
before 8.6.13-3 | 8.6.13-3 |
libtommathAzure Linux:3 |
before 1.1.0-5 | 1.1.0-5 |
sambaAzure Linux:3 |
through 4.18.3-2 | None known |
libtommathDebian:12 |
before 1.2.0-6+deb12u1, plus listed versions 1.2.0-6 |
1.2.0-6+deb12u1 |
libtommathDebian:13 |
before 1.2.1-1 | 1.2.1-1 |
libtommathDebian:14 |
before 1.2.1-1 | 1.2.1-1 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libtommathDebian:11 |
before 1.2.0-6+deb11u1, plus listed versions 1.2.0-6 |
1.2.0-6+deb11u1 |
libtommathMageia:8 |
before 1.2.1-1.mga8 | 1.2.1-1.mga8 |
libtommathMageia:9 |
before 1.2.1-1.mga9 | 1.2.1-1.mga9 |
libtommathopenEuler:20.03-LTS-SP1 |
before 1.1.0-4.oe1 | 1.1.0-4.oe1 |
libtommathopenEuler:20.03-LTS-SP3 |
before 1.1.0-4.oe1 | 1.1.0-4.oe1 |
libtommathopenEuler:22.03-LTS |
before 1.2.0-4.oe2203sp2 | 1.2.0-4.oe2203sp2 |
libtommathopenEuler:22.03-LTS-SP1 |
before 1.2.0-4.oe2203sp1 | 1.2.0-4.oe2203sp1 |
libtommathopenEuler:22.03-LTS-SP2 |
before 1.2.0-4.oe2203sp2 | 1.2.0-4.oe2203sp2 |
libtommathUbuntu:Pro:16.04:LTS |
before 0.42.0-1.2ubuntu0.1~esm1, plus listed versions 0.42.0-1.2 |
0.42.0-1.2ubuntu0.1~esm1 |
libtommathUbuntu:Pro:18.04:LTS |
before 1.0.1-1ubuntu0.1~esm1, plus listed versions 1.0-41.0.1-1 |
1.0.1-1ubuntu0.1~esm1 |
libtommathUbuntu:20.04:LTS |
before 1.2.0-3ubuntu0.1, plus listed versions 1.1.0-31.2.0-11.2.0-21.2.0-3 |
1.2.0-3ubuntu0.1 |
libtommathUbuntu:22.04:LTS |
before 1.2.0-6ubuntu0.22.04.1, plus listed versions 1.2.0-6build11.2.0-6build21.2.0-6build3 |
1.2.0-6ubuntu0.22.04.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-36328 is a critical vulnerability (CVSS 9.8) in Libtom Libtommath, published September 1, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.26%, the 69th percentile. Fixed in libtommath 1.2.1-r0.
References
github.com/libtom/libtommath/pull/546
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3H2PFUTBKQUDSOJXQQS7LUSZQWT3JTW2
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6ZUPWZGPFJ4JOI2NIP7YLRKZD5YXQTBK
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/46GORAXZ34MHQNUGJBKS7PJ5NSMIAJGC
lists.debian.org/debian-lts-announce/2024/09/msg00011.html
nvd.nist.gov/vuln/detail/CVE-2023-36328
Show 25 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/3H2PFUTBKQUDSOJXQQS7LUSZQWT3JTW2
lists.fedoraproject.org/archives/list/[email protected]/message/46GORAXZ34MHQNUGJBKS7PJ5NSMIAJGC
lists.fedoraproject.org/archives/list/[email protected]/message/6ZUPWZGPFJ4JOI2NIP7YLRKZD5YXQTBK
github.com/advisories/GHSA-j3xv-6967-cv88
security.alpinelinux.org/vuln/CVE-2023-36328
github.com/CVEProject/cvelistV5/tree/main/cves/2023/36xxx/CVE-2023-36328.json
cpan.org/modules
metacpan.org/release/ATRODO/Net-Dropbear-0.16/source/dropbear/libtommath/bn_mp_grow.c
cve.org/CVERecord?id=CVE-2023-36328
github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40913.json
nvd.nist.gov/vuln/detail/CVE-2025-40913
github.com/atrodo/Net-Dropbear
metacpan.org/release/MIK/CryptX-0.086/source/src/ltm/bn_mp_grow.c
github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40914.json
nvd.nist.gov/vuln/detail/CVE-2025-40914
github.com/DCIT/perl-CryptX
security-tracker.debian.org/tracker/CVE-2023-36328
advisories.mageia.org/MGASA-2023-0265.html
bugs.mageia.org/show_bug.cgi?id=32247
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1625
ubuntu.com/security/CVE-2023-36328
github.com/libtom/libtommath/commit/beba892bc0d4e4ded4d667ab1d2a94f4d75109a9
ubuntu.com/security/notices/USN-6402-1
ubuntu.com/security/notices/USN-6402-2
suse.com/security/cve/CVE-2023-36328