Skip to content
OpenAdvisories
Unscored CVE-2022-35260 EUVD-2022-38151GHSA-pv52-98qj-pq55

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 Dec 5, 2022 · Updated Oct 14, 2026 · 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.

Affected products

VendorProductAffectedFixed
— https://github.com/curl/curl Fixed in 7.86.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 7.86.0-1 —
Debian 13 curl 7.86.0-1 —
Debian 12 curl 7.86.0-1 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.86.0-1.1 openSUSE-SU-2024:12447-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 7.86.0-r0 —
Alpine v3.23 curl 7.86.0-r0 —
Alpine v3.22 curl 7.86.0-r0 —
Alpine v3.21 curl 7.86.0-r0 —
Alpine v3.20 curl 7.86.0-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 7.86.0-r0 —
Alpine v3.18 curl 7.86.0-r0 —
Alpine v3.17 curl 7.86.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 curl +4 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083
Amazon Linux 2 curl +2 7.79.1-7.amzn2.0.1 ALAS2-2022-1882

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 tensorflow 2.16.1-1 —

Advisories 14

References