Critical Denial of Service Vulnerability in curl Package

curl Updated 02 Oct 2025

Summary

14/03/2018
N/A
Yes i
High
7.5

ALPINE-CVE-2018-1000121: A NULL pointer dereference exists in curl 7.21.0 to and including curl 7.58.0 in the LDAP code that allows an attacker to cause a denial of service. Affects curl versions < 7.59.0-r0. Fixed in 7.59.0-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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

curl is a widely used command-line tool and library for transferring data with URLs. It supports various protocols including HTTP, HTTPS, FTP, and more. curl is essential for developers and system administrators for tasks such as downloading files, testing APIs, and automating web interactions. However, certain versions of curl are vulnerable to a NULL pointer dereference in the LDAP code, which can lead to a denial of service.

Vulnerability Detail

A NULL pointer dereference exists in curl versions 7.21.0 to 7.58.0 specifically in the LDAP code. This vulnerability allows an attacker to exploit the flaw, potentially causing the application to crash and resulting in a denial of service. The vulnerability is critical, with a CVSS score of 7.5, indicating that it poses a significant risk to systems using affected versions of curl.

How To Fix

Minimum fixed version

7.59.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade curl

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

Workaround

As a temporary workaround, you can disable LDAP support in curl if it is not needed for your application. This can be done by configuring curl without LDAP support during installation or by using a different version of curl that does not include LDAP functionality.

Conclusion

The curl package has a critical vulnerability that can lead to denial of service due to a NULL pointer dereference in its LDAP code. Users are strongly advised to update to the patched version to mitigate this risk. For those unable to update immediately, disabling LDAP support can serve as a temporary measure.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

The vulnerability can lead to a denial of service, causing the application to crash when LDAP functionality is invoked.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

curl versions from 7.21.0 to 7.58.0 are affected by this vulnerability.

Yes, the patch is available in curl version 7.59.0-r0 and later.

If an immediate update is not possible, consider disabling LDAP support in curl as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for curl.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

7.59.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade curl

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