CVE-2025-32029 Details
Description
ts-asn1-der is a collection of utility classes to encode ASN.1 data following DER rule. Incorrect number DER encoding can lead to denial on service for absolute values in the range 2**31 -- 2**32 - 1. The arithmetic in the numBitLen didn't take into account that values in this range could result in a negative result upon applying the >> operator, leading to an infinite loop. The issue is patched in version 1.0.4. If upgrading is not an option, the issue can be mitigated by validating inputs to Asn1Integer to ensure that they are not smaller than -2**31 + 1 and no larger than 2**31 - 1.
A denial-of-service vulnerability has been identified in the Apeleg ts-asn1-der package, specifically in versions prior to 1.0.4. The issue arises from incorrect encoding of numbers in accordance with DER rules, particularly for values in the range of 2^31 to 2^32 - 1. This miscalculation causes the encoding function to enter an infinite loop, effectively disrupting service. Additionally, the flawed encoding logic misrepresents certain numeric values, further exacerbating the issue.
Users are advised to upgrade to version 1.0.4 or later. If an upgrade is not possible, validate inputs to the Asn1Integer class to ensure they are within the safe range. Alternatively, input can be provided as a buffer with the correct DER encoding.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 7, 2025CISA-ADP
Assessed Apr 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ApelegHQ/ts-asn1-der/commit/b2bc9032cbe19755d234a27d79e47a7e52993af8 | [email protected] | Source CodeVendor |
| https://github.com/ApelegHQ/ts-asn1-der/security/advisories/GHSA-p4qw-7j9g-5h53 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1335 | Incorrect Bitwise Shift of Integer | [email protected] |
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ApelegHQ ts-asn1-der | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 7, 2025 | New CVE Received | [email protected] |
Volerion