SecurityContext

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

IdName
CWE-840—
CWE-295Improper Certificate Validation

Hackerone

  • Reports: 1
  • Rank: 5211

Public exploits

UrlSourceAdded date
https://hackerone.com/reports/1234760nvd2021-08-05

References

Same in every row:

  • Source: nvd
UrlTags
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.htmlPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmlPatch, Third Party Advisory
https://hackerone.com/reports/1234760Exploit, Third Party Advisory
https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cdev.kafka.apache.org%3EMailing List, Third Party Advisory
https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cusers.kafka.apache.org%3EMailing List, Third Party Advisory
https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cdev.kafka.apache.org%3EMailing List, Third Party Advisory
https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cusers.kafka.apache.org%3EMailing List, Third Party Advisory
https://security.gentoo.org/glsa/202212-01Third Party Advisory
https://security.netapp.com/advisory/ntap-20210902-0003/Third Party Advisory

Products

Same in every row:

  • Sources: nvd
ProductAffectedPlatform boundUrl
haxx:curl>= 7.33.0, < 7.78.0no/v1/products/haxx/curl
netapp:oncommand_insightall versionsno/v1/products/netapp/oncommand_insight
netapp:active_iq_unified_managerall versionsno/v1/products/netapp/active_iq_unified_manager
netapp:oncommand_workflow_automationall versionsno/v1/products/netapp/oncommand_workflow_automation
netapp:snapcenterall versionsno/v1/products/netapp/snapcenter
oracle:peoplesoft_enterprise_peopletools= 8.59, = 8.58, = 8.57no/v1/products/oracle/peoplesoft_enterprise_peopletools
oracle:mysql_server>= 8.0.0, <= 8.0.26; >= 5.7.0, <= 5.7.35no/v1/products/oracle/mysql_server
netapp:h700s_firmwareall versionsyes/v1/products/netapp/h700s_firmware
netapp:h300s_firmwareall versionsyes/v1/products/netapp/h300s_firmware
netapp:h410s_firmwareall versionsyes/v1/products/netapp/h410s_firmware

Projects

RepositoryLink kindsIndexedUrl
curl/curlfixyes/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