CVE-2021-22925
Reported by hackerone · Published August 5, 2021
curl supports the `-t` command line option, known as `CURLOPT_TELNETOPTIONS`in libcurl. This rarely used option is used to send variable=content pairs toTELNET servers.Due to flaw in the option parser for sending `NEW_ENV` variables, libcurlcould be made to pass on uninitialized data from a stack based buffer to theserver. Therefore potentially revealing sensitive internal information to theserver using a clear-text network protocol.This could happen because curl did not call and use sscanf() correctly whenparsing the string provided by the application.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libcurl-devel | Amazon Linux | 7.76.1-7.amzn2.0.2 |
| lib32-libcurl-gnutls | Arch Linux | 7.78.0-1 |
| lib32-libcurl-compat | Arch Linux | 7.78.0-1 |
| lib32-curl | Arch Linux | 7.78.0-1 |
| libcurl | Amazon Linux | 7.76.1-7.amzn2.0.2 |
| curl | Arch Linux | 7.78.0-1 |
| libcurl-compat | Arch Linux | 7.78.0-1 |
| curl | Alpine | 7.78.0-r0, 7.67.0-r5 |
| sinema_remote_connect_server | siemens | 3.1 |
| sinec_infrastructure_network_services | siemens | 1.0.1.1 |
| mysql_server | oracle | 8.0.26, 5.7.35 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | curl 7.7 to and including 7.77.0 |
| amazon:2 | libcurl-devel | 0 |
| arch | lib32-libcurl-gnutls | 0 |
| arch | lib32-libcurl-compat | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| arch | lib32-curl | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libcurl | 0 |
| arch | curl | 0 |
| arch | libcurl-compat | 0 |
| alpine | curl | 0, 0 |
| n/a | https://github.com/curl/curl | 7.7 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| arch | libcurl-gnutls | 0 |
| amazon:2 | curl | 0 |
Timeline
- Jul 21, 2021 PoC Published (2 in total, the first dated here)
- Aug 5, 2021 CVE Published
- Aug 6, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (30 in total, the first dated here)
- Mar 7, 2026 Security Advisory (36 in total, the first dated here)
- Aug 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-22925
vulnetix vdb fixes CVE-2021-22925
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-22925/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-5d21b90a30 vendor-advisory
- 20210921 APPLE-SA-2021-09-20-8 Additional information for APPLE-SA-2021-09-13-4 Security Update 2021-005 Catalina mailing-list
- 20210921 APPLE-SA-2021-09-20-7 Additional information for APPLE-SA-2021-09-13-3 macOS Big Sur 11.6 mailing-list
- GLSA-202212-01 vendor-advisory
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html url
- https://cert-portal.siemens.com/productcert/html/ssa-484086.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url