CVE-2025-32029
published medium CVSS 4.0 · 6.9ts-asn1-der has Incorrect DER Encoding of Numbers Leading to Denial of Service and Incorrect Value Representation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ApelegHQ | — | ts-asn1-der< 1.0.4 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ApelegHQ | ts-asn1-der | < 1.0.4 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-835 CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
- CWE-1335 CWE-1335: Incorrect Bitwise Shift of Integer
References
2Provider assertions
2GitHub_M · cna
ts-asn1-der has Incorrect DER Encoding of Numbers Leading to Denial of Service and Incorrect Value Representation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 533c150cb79910cb1e92bb272ce0e5e312a28674922744fffbec1884cfd8f12f
- Ingested
- 23 Sep 2026, 08:45:00 UTC
- Source record
- Official CVE record