Improper Authentication Vulnerability in curl Package: CVE-2022-22576

curl Updated 02 Oct 2025

Summary

26/05/2022
N/A
Yes i
High
8.1

ALPINE-CVE-2022-22576: An improper authentication vulnerability exists in curl 7.33.0 to and including 7.82.0 which might allow reuse OAUTH2-authenticated connections without properly making sure that the connection was authenticated with the... 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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. The package is essential for developers and system administrators for tasks such as downloading files, interacting with APIs, and managing network requests. However, certain versions of curl are vulnerable to an improper authentication issue that could compromise the security of connections using SASL-enabled protocols.

Vulnerability Detail

An improper authentication vulnerability exists in curl versions 7.33.0 to 7.82.0, which may allow the reuse of OAUTH2-authenticated connections without ensuring that the connection was authenticated with the same credentials as set for the transfer. This vulnerability affects SASL-enabled protocols such as SMTP(S), IMAP(S), POP3(S), and LDAP(S) (openldap only). If exploited, it could lead to unauthorized access to sensitive data and services.

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, avoid using OAUTH2 authentication with SASL-enabled protocols until the package is updated. Ensure that connections are authenticated with the correct credentials before proceeding with any sensitive operations.

Conclusion

The improper authentication vulnerability in curl (CVE-2022-22576) poses significant risks to users relying on SASL-enabled protocols. It is crucial to update to the patched versions of curl to mitigate these risks and ensure secure data transmission.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

CVE-2022-22576 is a vulnerability in the curl package that allows improper authentication, potentially leading to unauthorized access.

curl versions from 7.33.0 to 7.82.0 are affected by this vulnerability.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

The risks include unauthorized access to sensitive data and services, especially when using SASL-enabled protocols.

You can update curl using the command 'apk add curl=<fixed_version>' where <fixed_version> is the version that addresses the vulnerability.

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