# CVE-2022-35260: .netrc parser out-of-bounds access

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.72%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-26T08:00:00.000Z
- Modified: 2026-10-25T01:05:05.858Z
- Also known as: CURL-CVE-2022-35260
- Weaknesses: CWE-125, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- https://github.com/curl/curl: Fixed in 7.86.0
- https://github.com/curl/curl.git: from 7.84.0 before 7.86.0; from eeaae10c0fb27aa066fdc296074edeacfdeb6522 before c97ec984fb2bc919a3aa863e0476dffa377b184c
- haxx curl: from 7.84.0 before 7.86.0
- netapp clustered_data_ontap: no versions given
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h410s_firmware: no versions given
- apple macos: before 12.6.3
- splunk universal_forwarder: from 8.2.0 before 8.2.12; from 9.0.0 before 9.0.6; 9.1.0

## Every score

- curl: rating Low
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://hackerone.com/reports/1721098> (exploit, patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202212-01> (third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20230110-0006/> (third-party-advisory)
- <https://support.apple.com/kb/HT213604> (third-party-advisory)
- <https://support.apple.com/kb/HT213605> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2023/Jan/20> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2023/Jan/19> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-892048.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2022-35260](https://www.cve.org/CVERecord?id=CVE-2022-35260), CVE Terms of Use, modified 2026-10-14
- curl: [CURL-CVE-2022-35260](https://osv.dev/vulnerability/CURL-CVE-2022-35260), MIT, modified 2026-10-25
- NVD: [CVE-2022-35260](https://nvd.nist.gov/vuln/detail/CVE-2022-35260), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2022-35260 · Whole record: https://cve.day/CVE-2022-35260.json · Rebuilt by cve.day 2026-11-25T22:58:17.237Z
