# CVE-2022-35260: curl: curl can be told to parse a `.netrc` file for credentials

CVE-2022-35260 is fixed in 10 products on 1 platform, first by DEBIAN-CVE-2022-35260, released December 5, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-35260
- Priority: Routine
- CVSS: 6.5 (medium)
- EPSS: 0.0270
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 5, 2022

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | curl Debian 12.15 (bookworm) | 7.86.0-1 | [DEBIAN-CVE-2022-35260](https://patchblox.com/security/data/fix/linux/debian-cve-2022-35260.md) | Dec 5, 2022 |
| Linux | curl Debian 13.5 (trixie) | 7.86.0-1 | [DEBIAN-CVE-2022-35260](https://patchblox.com/security/data/fix/linux/debian-cve-2022-35260.md) | Dec 5, 2022 |
| Linux | curl Debian 14 | 7.86.0-1 | [DEBIAN-CVE-2022-35260](https://patchblox.com/security/data/fix/linux/debian-cve-2022-35260.md) | Dec 5, 2022 |
| Linux | curl amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | curl-debuginfo amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | curl-debugsource amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | curl-minimal amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | curl-minimal-debuginfo amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl-debuginfo amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl-devel amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl-minimal amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |
| Linux | libcurl-minimal-debuginfo amzn 2023 | 7.87.0-2.amzn2023.0.2 | [ALAS2023-2023-083](https://patchblox.com/security/data/fix/linux/alas2023-2023-083.md) | Feb 17, 2023 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
