Critical Credentials Leak in Curl Package: CVE-2022-27776

curl Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2022-27776: A insufficiently protected credentials vulnerability in fixed in curl 7.83.0 might leak authentication or cookie header data on HTTP redirects to the same host but another port number. 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 widely used command-line tool and library for transferring data with URLs. It supports various protocols including HTTP, HTTPS, FTP, and more. Curl is known for its versatility and is often utilized in scripts and applications for data transfer. However, it has been identified that certain versions of Curl are vulnerable to a credentials leak, which can expose sensitive authentication data during HTTP redirects.

Vulnerability Detail

The vulnerability identified as CVE-2022-27776 arises from insufficient protection of credentials in Curl versions prior to 7.83.0. When a redirect occurs to the same host but on a different port, Curl may inadvertently leak authentication or cookie header data. This could lead to unauthorized access or exposure of sensitive information, posing a significant risk to users and applications relying on Curl for secure data transfers.

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 temporary workaround, users can avoid using Curl for requests that involve redirects to different ports until they can update to the patched version. Alternatively, consider using other tools that do not exhibit this vulnerability.

Conclusion

CVE-2022-27776 represents a significant risk for users of Curl, particularly in scenarios involving HTTP redirects. It is crucial to update to the latest version to mitigate the risk of credential leakage. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

CVE-2022-27776 is a vulnerability in Curl that can lead to the leakage of authentication or cookie header data during HTTP redirects.

Curl versions prior to 7.83.0 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 of CVE-2022-27776 is 6.5, indicating a medium severity level.

If immediate updates are not possible, avoid using Curl for requests that involve redirects to different ports as a temporary measure.

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