Denial of Service Vulnerability in libtasn1: CPU Exhaustion Risk

libtasn1 Updated 02 Oct 2025

Summary

20/08/2018
N/A
Yes i
Medium
5.5

ALPINE-CVE-2018-1000654: GNU Libtasn1-4.13 libtasn1-4.13 version libtasn1-4.13, libtasn1-4.12 contains a DoS, specifically CPU usage will reach 100% when running asn1Paser against the POC due to an issue in _asn1_expand_object_id(p_tree), after... Affects libtasn1 versions < 4.14-r0. Fixed in 4.14-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libtasn1 is a library for handling ASN.1 (Abstract Syntax Notation One) data structures, commonly used in various applications for encoding and decoding data. It provides essential functionality for parsing ASN.1 encoded data, which is crucial for many networking protocols and data interchange formats. However, vulnerabilities in libtasn1 can lead to severe consequences, including denial of service attacks that can cripple applications relying on this library.

Vulnerability Detail

The vulnerability identified as CVE-2018-1000654 affects libtasn1 versions prior to 4.14-r0. It is a Denial of Service (DoS) vulnerability that arises from an issue in the function _asn1_expand_object_id(p_tree). When a crafted ASN.1 file is parsed using the asn1Parser, the CPU usage spikes to 100%, leading to potential application crashes after prolonged processing. This vulnerability can be exploited by attackers who can craft malicious ASN.1 files, causing significant resource exhaustion and service disruption.

How To Fix

Minimum fixed version

4.14-r0

This is the first release that contains the fix.

sudo apk add --upgrade libtasn1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider implementing input validation to reject malformed ASN.1 files before they are processed by libtasn1. This can help mitigate the risk of triggering the vulnerability.

Conclusion

The CVE-2018-1000654 vulnerability in libtasn1 poses a significant risk of Denial of Service due to excessive CPU usage when processing crafted ASN.1 files. It is crucial for users of libtasn1 to update to the patched version to mitigate this risk. Additionally, employing input validation can serve as a temporary measure until the update can be applied.

See every vulnerability recorded for libtasn1 →

Share this vulnerability

FAQ

CVE-2018-1000654 is a Denial of Service vulnerability in the libtasn1 library that can lead to high CPU usage and application crashes when processing crafted ASN.1 files.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected by this vulnerability without needing to sign up.

Exploiting this vulnerability can lead to service disruptions, as the affected application may become unresponsive due to excessive CPU usage.

Yes, the patch is available in libtasn1 version 4.14-r0 and later. Updating to this version will resolve the vulnerability.

If you cannot update immediately, implement input validation to reject malformed ASN.1 files as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libtasn1.

How To Fix

Minimum fixed version

4.14-r0

This is the first release that contains the fix.

sudo apk add --upgrade libtasn1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback