CVE-2022-35260 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 b...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- Debian
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.
Upgrade path
22 packages: 17 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp clustered data ontap | All versions | No fix listed | No fix yet |
| netapp h300s firmware | All versions | No fix listed | No fix yet |
| netapp h410s firmware | All versions | No fix listed | No fix yet |
| netapp h500s firmware | All versions | No fix listed | No fix yet |
| netapp h700s firmware | All versions | No fix listed | No fix yet |
| alpine/curl(Alpine v3.17) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.18) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.19) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.20) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.21) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.22) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.23) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.24) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| apple macos | < 12.6.3 | 12.6.3 | Fixed |
| debian/curl(Debian 12) | < 7.86.0-1 | 7.86.0-1 | Fixed |
| debian/curl(Debian 13) | < 7.86.0-1 | 7.86.0-1 | Fixed |
| debian/curl(Debian 14) | < 7.86.0-1 | 7.86.0-1 | Fixed |
| haxx curl | >= 7.84.0, < 7.86.0 | 7.86.0 | Fixed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 | Fixed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 | Fixed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 | Fixed |
| Splunk Universal Forwarder | = 9.1.0; >= 8.2.0, < 8.2.12; >= 9.0.0, < 9.0.6 | 8.2.12, 9.0.6 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| haxx curl | >= 7.84.0, < 7.86.0 | 7.86.0 |
| netapp clustered data ontap | All versions | No fix listed |
| netapp h300s firmware | All versions | No fix listed |
| netapp h500s firmware | All versions | No fix listed |
| netapp h700s firmware | All versions | No fix listed |
| netapp h410s firmware | All versions | No fix listed |
| apple macos | < 12.6.3 | 12.6.3 |
| Splunk Universal Forwarder | >= 8.2.0, < 8.2.12 | 8.2.12 |
| Splunk Universal Forwarder | >= 9.0.0, < 9.0.6 | 9.0.6 |
| Splunk Universal Forwarder | = 9.1.0 | No fix listed |
| debian/curl(Debian:12) | < 7.86.0-1 | 7.86.0-1 |
| debian/curl(Debian:14) | < 7.86.0-1 | 7.86.0-1 |
| debian/curl(Debian:13) | < 7.86.0-1 | 7.86.0-1 |
| alpine/curl(Alpine:v3.17) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.18) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.19) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.20) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.21) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.22) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.23) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.24) | >= 7.84.0, < 7.86.0-r0 | 7.86.0-r0 |
References
- Debian Security Tracker CVE-2022-35260 vendor-advisory
- hackerone.com exploit patch third-party-advisory
- GLSA-202212-01 third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- 20230123 APPLE-SA-2023-01-23-5 macOS Monterey 12.6.3 mailing-list third-party-advisory
- 20230123 APPLE-SA-2023-01-23-4 macOS Ventura 13.2 mailing-list third-party-advisory
- cert-portal.siemens.com
- cert-portal.siemens.com
- security.alpinelinux.org vendor-advisory