Vulnerability Assessment
| Impact | This vulnerability presents critical real-world risk supported by multiple threat indicators: (1) CVSS 9.8 with AV:N/AC:L/PR:N/UI:N indicates unauthenticated remote exploitation via standard network protocols with no special conditions required; (2) The vulnerability is a transitive dependency issue—CryptX users may be unaware they're using libtommath, complicating patch deployment visibility; (3) Integer overflows in cryptographic libraries have established exploitation techniques and are actively researched; (4) The dependency inheritance model (embedded libtommath) means even patched libtommath versions may not protect CryptX users who haven't updated; (5) Given the cryptographic nature of the affected library, this could impact authentication, encryption, and digital signature operations across dependent applications. The AC:L (Low Complexity) rating suggests straightforward exploitation requiring only network access. This is a genuine priority requiring immediate patching—high CVSS is justified by realistic attack vectors and cryptographic context. |
| Exploit ScenarioDerived | An attacker crafts a specially-formed cryptographic input (e.g., a malformed encrypted message, signature, or key exchange parameter) targeting the integer overflow in libtommath's mathematical functions. When CryptX processes this input—potentially during HTTPS/TLS handshakes, cryptographic verification, or encryption operations—the integer overflow causes a buffer overflow or memory corruption. This allows the attacker to execute arbitrary code with the privileges of the application using CryptX. For example: (1) Attacker sends a specially-crafted TLS/DTLS packet to a service using CryptX for TLS termination; (2) The packet triggers integer overflow during key exchange or signature verification; (3) Memory corruption occurs, allowing shellcode injection; (4) Attacker achieves RCE on the server. No user interaction or authentication is required—any network-accessible service using CryptX is exploitable. Exploitation likelihood is high given AC:L complexity rating; public exploits for CVE-2023-36328 likely exist and are adaptable to this CryptX context. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 14, 2026
Perl CryptX before version 0.087 contains an embedded version of the libtommath library vulnerable to integer overflow (CVE-2023-36328), enabling remote code execution with no authentication required. This affects all users of vulnerable CryptX versions; attackers can exploit the integer overflow to achieve complete system compromise including confidentiality, integrity, and availability breaches. The vulnerability carries a critical CVSS 9.8 score with network-accessible attack vector and no user interaction requirements.
RemediationAI
- action: Immediate patch deployment; details: Upgrade Perl CryptX to version 0.087 or later. This version contains an updated libtommath library patched for CVE-2023-36328.; method: cpan[m] install CryptX or update via system package manager (apt, brew, yum, etc.)
- action: Version verification; details: Verify CryptX version post-upgrade using: perl -e 'use CryptX; print $CryptX::VERSION'; expected_version: >= 0.087
- action: Dependency scanning; details: Audit all Perl applications and dependencies for CryptX usage. Use tools like 'cpan-audit' or 'perl-criticize' to identify vulnerable versions in production environments.
- action: No practical workarounds; details: Integer overflow vulnerabilities cannot be mitigated without code-level fixes. Patching is mandatory; workarounds like input validation at application layer are insufficient for cryptographic library vulnerabilities.
- action: Mitigation during patch window; details: Restrict network exposure of services using CryptX if immediate patching is impossible. However, given the criticality, patching should occur within hours, not days.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability stems from an integer overflow flaw in libtommath, a mathematical library used for cryptographic operations. CryptX, a Perl module providing cryptographic functionality via XS bindings, embeds an outdated version of libtommath that fails to properly validate integer operations during mathematical calculations. Integer overflows in cryptographic libraries can lead to buffer overflows, memory corruption, or logic flaws in cryptographic implementations. The affected component is used internally by CryptX for operations like modular exponentiation and big integer arithmetic. The root cause is improper input validation or bounds checking in integer arithmetic operations (CWE category: Improper Input Validation / Integer Overflow). CPE affected: cpe:2.3:a:perl:cryptx:*:*:*:*:*:*:*:* (versions prior to 0.087).
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
Sources disagree (Medium–Critical)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
CVE-2025-40914 is a critical integer overflow vulnerability in Perl CryptX that could allow attackers to execute arbitrary code on systems using affected versions. Organizations running CryptX before version 0.087 face immediate risk of compromise, particularly in applications handling cryptographic operations or processing untrusted data.
Until patch availability: (1) Isolate systems running CryptX to trusted networks only; (2) Restrict access to CryptX-dependent applications using network segmentation and authentication controls; (3) Disable CryptX features not essential to business operations; (4) Implement enhanced logging and monitoring for suspicious activity on affected systems; (5) Monitor vendor communications for patch release timeline; (6) Consider alternative cryptographic libraries if operationally feasible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Same technique Integer Overflow
View allVendor StatusVendor
Ubuntu
Priority: Medium| Release | Status | Version |
|---|---|---|
| bionic | needs-triage | - |
| focal | needs-triage | - |
| jammy | needs-triage | - |
| noble | needs-triage | - |
| upstream | needs-triage | - |
| oracular | ignored | end of life, was needs-triage |
| plucky | ignored | end of life, was needs-triage |
| questing | needs-triage | - |
Debian
Bug #1107697| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| bullseye | vulnerable | 0.069-1 | - |
| bookworm | vulnerable | 0.077-1 | - |
| trixie | vulnerable | 0.085-1 | - |
| forky, sid | fixed | 0.087-1 | - |
| (unstable) | fixed | 0.087-1 | - |
SUSE
Severity: Critical| Product | Status |
|---|---|
| SUSE Package Hub 15 SP6 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| openSUSE Tumbleweed | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
EUVD-2025-18120
NVD
CVE.org
EPSS
GitHub
Exploit-DB