https://github.com/curl/curl: Incorrect Default Permissions
CVE-2022-32207 is a critical-severity incorrect default permissions vulnerability in https://github.com/curl/curl, with a CVSS 3.1 base score of 9.8 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.84.0. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 12.3% chance of exploitation within 30 days, which is in the top 3.74% of all scored CVEs.
Critical severity: a successful attack would have severe impact.
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.84.0 | 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 | SINAMICS PERFECT HARMONY GH180 | all versions | Not stated |
| 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 | 7.69.0 up to, but not including, 7.84.0 | 7.84.0 |
| Fedora Project | Fedora | 35 | Not stated |
| Debian | Debian Linux | 11.0 | Not stated |
| NetApp | Clustered Data Ontap | Not specified in the record | Not stated |
| NetApp | Element Software | Not specified in the record | Not stated |
| NetApp | Hci Management Node | Not specified in the record | Not stated |
| NetApp | Solidfire | Not specified in the record | Not stated |
| NetApp | Bootstrap OS | 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 |
| Apple | macOS | before 13.0 | 13.0 |
| 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
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.8 | Critical | NVD |
| CVSS 3.1 | 9.8 | Critical | CISA (ADP) |
| CVSS 2.0 | 7.5 | High | NVD |
Official description
When curl < 7.84.0 saves cookies, alt-svc and hsts data to local files, it makes the operation atomic by finalizing the operation with a rename from a temporary name to the final target file name.In that rename operation, it might accidentally *widen* the permissions for the target file, leaving the updated file accessible to more users than intended.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Incorrect Default Permissions
During installation, installed file permissions are set to allow anyone to modify those files.
How developers prevent this class of flaw
- The architecture needs to access and modification attributes for files to only those users who actually require those actions.
- Compartmentalize the system to have safe areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
More Incorrect Default Permissions vulnerabilities (CWE-276)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: poc, automatable: yes, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Third-party and government advisories
- seclists.org/fulldisclosure/2022/Oct/28Mailing List, Third Party Advisory
- seclists.org/fulldisclosure/2022/Oct/41Mailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEV6BR4MTI3CEWK2YU2H…Mailing List, Third Party Advisory
- security.gentoo.org/glsa/202212-01Third Party Advisory
- security.netapp.com/advisory/ntap-20220915-0003/Third Party Advisory
- support.apple.com/kb/HT213488Third Party Advisory
- debian.org/security/2022/dsa-5197Third Party Advisory
Technical write-ups (may include proof of concept)
- hackerone.com/reports/1573634Exploit, 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 Incorrect Default Permissions vulnerabilities
- 8.8 High severity
- 8.8 High severity
- 7.8 High severity
- 7.8 High severity
- 8.8 High severity
- 8.8 High severity
Spotted an error? Tell us.