Name | CVE-2022-35260 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
curl (PTS) | jessie, jessie (lts) | 7.38.0-4+deb8u28 | fixed |
stretch (security) | 7.52.1-5+deb9u16 | fixed | |
stretch (lts), stretch | 7.52.1-5+deb9u22 | fixed | |
buster, buster (lts) | 7.64.0-4+deb10u10 | fixed | |
buster (security) | 7.64.0-4+deb10u9 | fixed | |
bullseye | 7.74.0-1.3+deb11u13 | fixed | |
bullseye (security) | 7.74.0-1.3+deb11u14 | fixed | |
bookworm | 7.88.1-10+deb12u8 | fixed | |
bookworm (security) | 7.88.1-10+deb12u5 | fixed | |
sid, trixie | 8.11.0-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
curl | source | jessie | (not affected) | |||
curl | source | stretch | (not affected) | |||
curl | source | buster | (not affected) | |||
curl | source | bullseye | (not affected) | |||
curl | source | (unstable) | 7.86.0-1 |
[bullseye] - curl <not-affected> (Vulnerable code not present)
[buster] - curl <not-affected> (Vulnerable code not present)
https://curl.se/docs/CVE-2022-35260.html
introduced by: https://github.com/curl/curl/commit/eeaae10c0fb27aa066fdc296074edeacfdeb6522 (curl-7_84_0)
Fixed by: https://github.com/curl/curl/commit/c97ec984fb2bc919a3aa863e0476dffa377b184c (curl-7_86_0)
[stretch] - curl <not-affected> (vulnerable code introduced later)
[jessie] - curl <not-affected> (vulnerable code introduced later)