{"id":"CVE-2025-32029","published":"2025-04-07T20:13:48Z","modified":"2025-04-08T13:38:23Z","title":"ts-asn1-der has Incorrect DER Encoding of Numbers Leading to Denial of Service and Incorrect Value Representation","vendor":"ApelegHQ","product":"ts-asn1-der","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00239,"percentile":0.15302,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"},{"id":"CWE-1335","name":"Incorrect Bitwise Shift of Integer"}],"references":[{"url":"https://github.com/ApelegHQ/ts-asn1-der/security/advisories/GHSA-p4qw-7j9g-5h53","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ApelegHQ/ts-asn1-der/commit/b2bc9032cbe19755d234a27d79e47a7e52993af8","tags":["x_refsource_MISC"]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":3.06},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"apeleghq","affectedVersions":[{"vendor":"ApelegHQ","product":"ts-asn1-der","versions":["< 1.0.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-08T13:38:13.084238Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@apeleghq/asn1-der","vulnerableRanges":["<1.0.4"],"patched":["1.0.4"],"from":["GHSA-p4qw-7j9g-5h53"],"provenance":"source"}],"summary":{"text":"The ts-asn1-der library from ApelegHQ mishandles DER encoding of integers, specifically in its numBitLen arithmetic used when encoding absolute values in the range 231 to 232 - 1, where a bitwise shift produces a negative result that leads to an infinite loop. An attacker who can get the application to encode a value in that range through Asn1Integer, with local access and no privileges or user interaction required, can cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:28Z"},"euvd":{"id":"EUVD-2025-10288","exploited":false,"provenance":"source"}}