CVE-2022-35260
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…
- Published
- Updated
- Reserved
- Assigned by
- hackerone
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 2.7% · top 14% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.5.
Weakness
Affected products
https://github.com/curl/curl
- affected Fixed in 7.86.0
References (9)
- https://hackerone.com/reports/1721098 (opens in a new tab)x_transferred
- GLSA-202212-01 (opens in a new tab)vendor-advisoryx_transferred
- https://security.netapp.com/advisory/ntap-20230110-0006/ (opens in a new tab)x_transferred
- https://support.apple.com/kb/HT213604 (opens in a new tab)x_transferred
- https://support.apple.com/kb/HT213605 (opens in a new tab)x_transferred
- 20230123 APPLE-SA-2023-01-23-5 macOS Monterey 12.6.3 (opens in a new tab)mailing-listx_transferred
- 20230123 APPLE-SA-2023-01-23-4 macOS Ventura 13.2 (opens in a new tab)mailing-listx_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-892048.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-35260)Record last updated .