Critical Vulnerability in Curl: Dangling Pointer Issue Leading to Potential Data Misrouting

curl Updated 02 Oct 2025

Summary

14/12/2020
N/A
Yes i
High
7.5

ALPINE-CVE-2020-8231: Due to use of a dangling pointer, libcurl 7.29.0 through 7.71.1 can use the wrong connection when sending data. Affects curl versions < 7.66.0-r2. Fixed in 7.66.0-r2. 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

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 integral to many applications and systems for data retrieval and manipulation. However, it has been found to have a critical vulnerability that can lead to unintended data exposure due to improper handling of pointers.

Vulnerability Detail

The vulnerability identified as CVE-2020-8231 affects libcurl versions 7.29.0 through 7.71.1. It originates from the use of a dangling pointer, which can cause libcurl to use the wrong connection when sending data. This flaw can lead to sensitive data being sent to unintended recipients, posing a significant risk to data integrity and confidentiality. The CVSS score for this vulnerability is 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

7.66.0-r2

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

If immediate patching is not feasible, consider implementing network-level controls to restrict data transmission until the vulnerability can be addressed. This may include firewall rules or application-level checks to validate data before transmission.

Conclusion

The CVE-2020-8231 vulnerability in Curl poses a significant risk due to a dangling pointer issue that can lead to data being sent to the wrong connection. It is crucial to update to the patched versions of Curl to mitigate this risk. Users should also consider using tools like Vulert to monitor and alert for open-source vulnerabilities in their software.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

CVE-2020-8231 is a vulnerability in Curl that arises from a dangling pointer issue, potentially leading to data being sent to the wrong connection.

Libcurl versions 7.29.0 through 7.71.1 are affected by this vulnerability.

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

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

If you cannot update Curl immediately, consider implementing network-level controls to restrict data transmission until the vulnerability can be addressed.

Related vulnerabilities

Recent vulnerabilities recorded for curl.

How To Fix

Minimum fixed version

7.66.0-r2

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