Vulnerabilities/

ts-asn1-der has Incorrect DER Encoding of Numbers Leading to Denial of Service and Incorrect Value Representation

Severity:
Medium

Description

Incorrect number DER encoding can lead to denial on service for absolute values in the range 2**312**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.

Recommendation

Update the @apeleghq/asn1-der package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@apeleghq/asn1-der
Anything's wrong? Let us know Last updated on April 08, 2025