CVE-2022-35260
Reported by hackerone · Published December 5, 2022
curl can be told to parse a `.netrc` file for credentials. If that file endsin a line with 4095 consecutive non-white space letters and no newline, curlwould first read past the end of the stack-based buffer, and if the readworks, write a zero byte beyond its boundary.This will in most cases cause a segfault or similar, but circumstances might also cause different outcomes.If a malicious user can provide a custom netrc file to an application or otherwise affect its contents, this flaw could be used as denial-of-service.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libcurl-devel | Amazon Linux | 7.79.1-7.amzn2.0.1 |
| curl | Amazon Linux | 7.79.1-7.amzn2.0.1 |
| curl | Alpine | 7.86.0-r0 |
| libcurl | Amazon Linux | 7.87.0-2.amzn2023.0.2, 7.79.1-7.amzn2.0.1 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| curl | haxx | 7.86.0 |
| macos | apple | 12.6.3 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | Fixed in 7.86.0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libcurl-devel | 0 |
| amazon:2 | curl | 0 |
| alpine | curl | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | libcurl | 0 |
| amazon:2 | libcurl | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| n/a | https://github.com/curl/curl | 7.86.0 |
| amazon:2023 | libcurl-devel | 0 |
| amazon:2023 | libcurl-minimal | 0 |
| amazon:2023 | curl | 0 |
| amazon:2023 | curl-minimal | 0 |
Timeline
- Oct 27, 2022 PoC Published (3 in total, the first dated here)
- Dec 5, 2022 CVE Published
- Dec 6, 2022 EPSS Score (30 in total, the first dated here)
- Mar 21, 2026 Security Advisory (11 in total, the first dated here)
- Jun 21, 2026 Coalition ESS Score
- Jul 2, 2026 Distribution Patch (8 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-35260
vulnetix vdb fixes CVE-2022-35260
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-35260/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart