CVE-2022-27776
Description
Curl 7.83.0 fixes a flaw where HTTP redirects to the same host on a different port leak credentials or cookies due to insufficient credential protection.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Curl 7.83.0 fixes a flaw where HTTP redirects to the same host on a different port leak credentials or cookies due to insufficient credential protection.
Vulnerability
CVE-2022-27776 is an insufficiently protected credentials vulnerability in curl versions prior to 7.83.0. When curl follows an HTTP redirect to the same hostname but a different port number, it may leak authentication or cookie header data that were intended only for the original port. This occurs because the credential scope is tied to the hostname alone, not the combination of hostname and port. The issue affects all curl versions before 7.83.0 [3].
Exploitation
An attacker can exploit this flaw by setting up a malicious or compromised server that redirects a client request to another service on the same host but on a different port (e.g., from port 443 to port 8080). If the client application uses curl to handle the redirect with credential forwarding enabled, curl will automatically send the original authentication headers or cookies to the new destination, regardless of the port change. No special privileges or user interaction beyond making a request to the malicious server is required.
Impact
Successful exploitation allows the attacker to obtain sensitive credentials (such as HTTP Basic auth tokens or cookies) that were originally intended for a specific service on one port. These credentials can then be used to impersonate the victim or access protected resources on the different port, leading to unauthorized information disclosure or privilege escalation on that service.
Mitigation
The vulnerability is fixed in curl version 7.83.0 [3]. All users should upgrade to this release or later (the Gentoo advisory recommends version 7.86.0 [3]). No known workarounds are documented for versions that remain unpatched; disabling automatic redirect following or manually verifying redirect targets could mitigate exploitation in specific scenarios.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
14- osv-coords12 versionspkg:rpm/almalinux/curlpkg:rpm/almalinux/libcurlpkg:rpm/almalinux/libcurl-develpkg:rpm/almalinux/libcurl-minimalpkg:rpm/opensuse/curl&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/curl&distro=openSUSE%20Tumbleweedpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5
< 7.61.1-22.el8_6.3+ 11 more
- (no CPE)range: < 7.61.1-22.el8_6.3
- (no CPE)range: < 7.61.1-22.el8_6.3
- (no CPE)range: < 7.61.1-22.el8_6.3
- (no CPE)range: < 7.61.1-22.el8_6.3
- (no CPE)range: < 7.66.0-150200.4.30.1
- (no CPE)range: < 7.83.0-1.1
- (no CPE)range: < 7.66.0-150200.4.30.1
- (no CPE)range: < 7.66.0-150200.4.30.1
- (no CPE)range: < 7.66.0-150200.4.30.1
- (no CPE)range: < 7.60.0-11.37.1
- (no CPE)range: < 7.60.0-11.37.1
- (no CPE)range: < 7.60.0-11.37.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
7- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7N5ZBWLNNPZKFK7Q4KEHGCJ2YELQEUJP/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKKOQXPYLMBSEVDHFS32BPBR3ZQJKY5B/mitrevendor-advisory
- security.gentoo.org/glsa/202212-01mitrevendor-advisory
- www.debian.org/security/2022/dsa-5197mitrevendor-advisory
- lists.debian.org/debian-lts-announce/2022/08/msg00017.htmlmitremailing-list
- hackerone.com/reports/1547048mitre
- security.netapp.com/advisory/ntap-20220609-0008/mitre
News mentions
0No linked articles in our index yet.