VDB

CVE-2022-35260

CVE-2022-35260 PUBLISHED

Reported by hackerone · Published December 5, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
libcurl-develAmazon Linux7.79.1-7.amzn2.0.1
curlAmazon Linux7.79.1-7.amzn2.0.1
curlAlpine7.86.0-r0
libcurlAmazon Linux7.87.0-2.amzn2023.0.2, 7.79.1-7.amzn2.0.1
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
curlhaxx7.86.0
macosapple12.6.3
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPSiemens3.1.5
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5

Affected products

VendorProductVersions
n/ahttps://github.com/curl/curlFixed in 7.86.0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2libcurl-devel0
amazon:2curl0
alpinecurl0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
amazon:2023libcurl0
amazon:2libcurl0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
n/ahttps://github.com/curl/curl7.86.0
amazon:2023libcurl-devel0
amazon:2023libcurl-minimal0
amazon:2023curl0
amazon:2023curl-minimal0

Timeline

  • Oct 27, 2022 PoC Published (3 in total, the first dated here)
  • Dec 5, 2022 CVE Published
  • Dec 6, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 21, 2026 Security Advisory (11 in total, the first dated here)
  • Jun 21, 2026 Coalition ESS Score
  • Jul 2, 2026 Distribution Patch (8 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-35260
vulnetix vdb fixes CVE-2022-35260

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-35260/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›