CVE-2021-22926: libcurl - Misconfiguration
- Cve: CVE-2021-22926
- Name: libcurl - Misconfiguration
- Description: libcurl-using applications can ask for a specific client certificate to be used in a transfer. This is done with the `CURLOPT_SSLCERT` option (`--cert` with the command line tool).When libcurl is built to use the macOS native TLS library Secure Transport, an application can ask for the client certificate by name or with a file name - using the same option. If the name exists as a file, it will be used instead of by name.If the appliction runs with a current working directory that is writable by other users (like `/tmp`), a malicious user can create a file name with the same name as the app wants to use by name, and thereby trick the application to use the file based cert instead of the one referred to by name making libcurl send the wrong client certificate in the TLS connection handshake.
- Impact: Attackers can cause libcurl to send a malicious or unintended client certificate, potentially leading to impersonation or man-in-the-middle attacks.
- Remediation: Ensure the application's working directory is not writable by untrusted users or specify absolute paths for certificates to prevent filename-based substitution.
- Vulnerability type: misconfiguration
- Vulnerability impact: man_in_the_middle
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.1514
- Epss percentile: 0.96804
- Assignee: [email protected]
- Published at: 2021-08-05T21:15:11Z
- Age in days: 1937
- Modified at: 2026-10-14T12:17:07Z
- Patch available: yes
- Public exploits total: 1
- References total: 13
- Products total: 19
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22926
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-840 | — |
| CWE-295 | Improper Certificate Validation |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://hackerone.com/reports/1234760 | nvd | 2021-08-05 |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Sources: nvd
| Product | Affected | Platform bound | Url |
|---|---|---|---|
| haxx:curl | >= 7.33.0, < 7.78.0 | no | /v1/products/haxx/curl |
| netapp:oncommand_insight | all versions | no | /v1/products/netapp/oncommand_insight |
| netapp:active_iq_unified_manager | all versions | no | /v1/products/netapp/active_iq_unified_manager |
| netapp:oncommand_workflow_automation | all versions | no | /v1/products/netapp/oncommand_workflow_automation |
| netapp:snapcenter | all versions | no | /v1/products/netapp/snapcenter |
| oracle:peoplesoft_enterprise_peopletools | = 8.59, = 8.58, = 8.57 | no | /v1/products/oracle/peoplesoft_enterprise_peopletools |
| oracle:mysql_server | >= 8.0.0, <= 8.0.26; >= 5.7.0, <= 5.7.35 | no | /v1/products/oracle/mysql_server |
| netapp:h700s_firmware | all versions | yes | /v1/products/netapp/h700s_firmware |
| netapp:h300s_firmware | all versions | yes | /v1/products/netapp/h300s_firmware |
| netapp:h410s_firmware | all versions | yes | /v1/products/netapp/h410s_firmware |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| curl/curl | fix | yes | /v1/repositories/curl/curl |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-08-05
- Remote: yes
- Hackerone reports: 1
- Exposed hosts: 2557
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since