Insufficiently Protected Credentials Vulnerability in curl

curl Updated 02 Oct 2025

Summary

02/06/2022
N/A
Yes i
Medium
5.7

CVE-2022-27774: An insufficiently protected credentials vulnerability exists in curl 4.9 to and include curl 7.82.0 are affected that could allow an attacker to extract credentials when follows HTTP(S) redirects is used with authenticat... Affects curl versions < 7.79.1-r1. Fixed in 7.79.1-r1. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Curl is a command-line tool and library for transferring data with URLs. It supports various protocols, including HTTP, HTTPS, FTP, and more. The vulnerability affects versions 4.9 to 7.82.0 of curl. This vulnerability allows an attacker to extract credentials when following HTTP(S) redirects with authentication. As a result, credentials can be leaked to other services on different protocols or port numbers.

Vulnerability Detail

The insufficiently protected credentials vulnerability in curl arises due to a flaw in the handling of HTTP(S) redirects with authentication. When a redirect occurs, the credentials used for authentication are not adequately protected, allowing an attacker to intercept and extract them. This vulnerability can have severe consequences as it enables unauthorized access to sensitive information, potentially leading to unauthorized account access or data breaches.

How To Fix

Minimum fixed version

7.79.1-r1

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 workaround, users can avoid using HTTP(S) redirects with authentication until the curl package is updated. This can be achieved by disabling or modifying the affected functionality in the application or script that utilizes curl. However, this workaround may not be feasible in all scenarios and should be considered temporary until the package is updated.

Conclusion

The insufficiently protected credentials vulnerability in curl can result in the leakage of authentication credentials, potentially leading to unauthorized access and data breaches. It is crucial to update the curl package to version 7.79.1-r1 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

Curl is a command-line tool and library for transferring data with URLs. It supports various protocols, including HTTP, HTTPS, FTP, and more.

Versions 4.9 to 7.82.0 of curl are affected by this vulnerability.

This vulnerability can lead to the leakage of credentials used for authentication, potentially enabling unauthorized access to sensitive information and unauthorized account access.

To fix this vulnerability, it is recommended to upgrade curl to version 7.79.1-r1 or later.

A temporary workaround is to avoid using HTTP(S) redirects with authentication until the curl package is updated.

Related vulnerabilities

Recent vulnerabilities recorded for curl.

How To Fix

Minimum fixed version

7.79.1-r1

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