Code execution or crash via negative growth size
Published Jun 11, 2025 · Updated Jun 11, 2025
Integer overflow in bundled LibTomMath in CryptX 0.002 through 0.086 allows attackers to execute arbitrary code or crash a process. LibTomMath's mp_grow routine fails to reject a negative requested size before calculating and reallocating the digit buffer. Reachability depends on a consuming Perl program passing attacker-influenced values into affected big-integer operations; the CryptX advisory identifies no exposed API path.
Summary
What happened
Integer overflow in bundled LibTomMath in CryptX 0.002 through 0.086 allows attackers to execute arbitrary code or crash a process. LibTomMath's mp_grow routine fails to reject a negative requested size before calculating and reallocating the digit buffer. Reachability depends on a consuming Perl program passing attacker-influenced values into affected big-integer operations; the CryptX advisory identifies no exposed API path.
The record
- CVE
- CVE-2025-40914
- Published
- Jun 11, 2025
- Updated
- Jun 11, 2025
- Vendor
- DCIT, a.s.
- Product
- CryptX
- Classifications
- CWE-1395
- Attack vector
- Unavailable
- Privileges
- Unavailable
Timeline
How it unfolded
- Jun 11, 2025CVE publishedPublication date reported by the CVE source.
- Jun 11, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0.002 <=0.086
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo