https://github.com/curl/curl: Loop with Unreachable Exit Condition
CVE-2022-27781 is a high-severity loop with unreachable exit condition vulnerability in https://github.com/curl/curl, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected https://github.com/curl/curl versions: Fixed in 7.83.1. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 2.9% chance of exploitation within 30 days, higher than 87% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update SIMATIC S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
- Update SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP to V3.1.5 or a later version.
- Update SIPLUS S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Https://github.com/curl/curl | https://github.com/curl/curl | Fixed in 7.83.1 | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Haxx | Curl | before 7.83.1 | 7.83.1 |
| Debian | Debian Linux | 10.0; 11.0 | Not stated |
| NetApp | Hci Bootstrap OS | Not specified in the record | Not stated |
| NetApp | Clustered Data Ontap | Not specified in the record | Not stated |
| NetApp | Solidfire, Enterprise Sds & Hci Storage Node | Not specified in the record | Not stated |
| NetApp | Solidfire & Hci Management Node | Not specified in the record | Not stated |
| NetApp | Hci Compute Node | Not specified in the record | Not stated |
| NetApp | H300s Firmware | Not specified in the record | Not stated |
| NetApp | H500s Firmware | Not specified in the record | Not stated |
| NetApp | H700s Firmware | Not specified in the record | Not stated |
| NetApp | H410s Firmware | Not specified in the record | Not stated |
| Splunk | Universal Forwarder | 8.2.0 up to, but not including, 8.2.12; 9.0.0 up to, but not including, 9.0.6; 9.1.0 | 8.2.12, 9.0.6 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 3.1 | 7.5 | High | CISA (ADP) |
| CVSS 2.0 | 5.0 | Medium | NVD |
Official description
libcurl provides the `CURLOPT_CERTINFO` option to allow applications torequest details to be returned about a server's certificate chain.Due to an erroneous function, a malicious server could make libcurl built withNSS get stuck in a never-ending busy-loop when trying to retrieve thatinformation.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Loop with Unreachable Exit Condition
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
More Loop with Unreachable Exit Condition vulnerabilities (CWE-835)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: poc, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Third-party and government advisories
- lists.debian.org/debian-lts-announce/2022/08/msg00017.htmlMailing List, Third Party Advisory
- security.gentoo.org/glsa/202212-01Third Party Advisory
- security.netapp.com/advisory/ntap-20220609-0009/Third Party Advisory
- debian.org/security/2022/dsa-5197Mailing List, Third Party Advisory
Technical write-ups (may include proof of concept)
- hackerone.com/reports/1555441Exploit, Third Party Advisory
Other references
Other vulnerabilities in https://github.com/curl/curl
- 7.5 High severity
- 8.8 High severity
- 8.8 High severity
- 9.1 Critical severity
- 7.5 High severity
- 9.8 Critical severity
Recent Loop with Unreachable Exit Condition vulnerabilities
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
Spotted an error? Tell us.