ts-asn1-der has Incorrect DER Encoding of Numbers Leading to Denial of Service and Incorrect Value Representation
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-835.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ApelegHQ | ts-asn1-der | before 1.0.4 | 1.0.4 | Patch available | CNA |
| — | @apeleghq/asn1-der (npm) | before 1.0.4 | 1.0.4 | Patch available | GHSA-p4qw-7j9g-5h53 |
- ts-asn1-der VendorApelegHQ Affected before 1.0.4 Fixed in 1.0.4 Patch available CNA
- @apeleghq/asn1-der (npm) Vendor— Affected before 1.0.4 Fixed in 1.0.4 Patch available GHSA-p4qw-7j9g-5h53
Remediation
- Fix · CNA ts-asn1-der (ApelegHQ) Fixed in 1.0.4
- Fix · GHSA-p4qw-7j9g-5h53 @apeleghq/asn1-der (npm) Fixed in 1.0.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-32029
- 2026-10-03 Alias added: GHSA-p4qw-7j9g-5h53
References
Sources
- CVE-2025-32029 · CVE Program
- CVE-2025-32029 · NVD
- FIRST EPSS
- GHSA-p4qw-7j9g-5h53 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences