Skip to content
Heist/ feed
Back to feed
Low

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-22898

curl 7.7 through 7.76.1 suffers from an information disclosure when the `-t` command line option, known as `CURLOPT_TELNETOPTIONS` in libcurl, is used to send variable=content pairs to TELNET servers. Due to a flaw in the option parser for sending NEW_ENV variables, libcurl could be made to pass on uninitialized data from a stack based buffer to the server, resulting in potentially revealing sensitive internal information to the server using a clear-text network protocol.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-22898
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:27 UTC · Revision 1

Source evidence

CVE-2021-22898

core-osv · Original source

Published 11 Jun 2021, 16:15 UTC

curl 7.7 through 7.76.1 suffers from an information disclosure when the `-t` command line option, known as `CURLOPT_TELNETOPTIONS` in libcurl, is used to send variable=content pairs to TELNET servers. Due to a flaw in the option parser for sending NEW_ENV variables, libcurl could be made to pass on uninitialized data from a stack based buffer to the server, resulting in potentially revealing sensitive internal information to the server using a clear-text network protocol.

osv:CVE-2021-22898
Complete source record
{
  "id": "0730f2bab1483e8e632307d19d4eeae996d4b8401a7331056e1332c5cae47b8a",
  "url": "https://osv.dev/vulnerability/CVE-2021-22898",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-22898",
    "summary": "curl 7.7 through 7.76.1 suffers from an information disclosure when the `-t` command line option, known as `CURLOPT_TELNETOPTIONS` in libcurl, is used to send variable=content pairs to TELNET servers. Due to a flaw in the option parser for sending NEW_ENV variables, libcurl could be made to pass on uninitialized data from a stack based buffer to the server, resulting in potentially revealing sensitive internal information to the server using a clear-text network protocol.",
    "evidence": "osv:CVE-2021-22898",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2021-22898",
      "aliases": [
        "CURL-CVE-2021-22898",
        "CVE-2021-22898"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/curl/curl",
              "type": "GIT",
              "events": [
                {
                  "introduced": "546572da0457f37c698c02d0a08d90fdfcbeedec"
                },
                {
                  "last_affected": "566b74a0e19b9aa610f4931e5bfd339bcf8e9147"
                },
                {
                  "fixed": "39ce47f219b09c380b81f89fe54ac586c8db6bde"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.7"
                      },
                      {
                        "last_affected": "7.76.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "39ce47f219b09c380b81f89fe54ac586c8db6bde"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "curl-7_76_1",
            "curl-7_76_0",
            "curl-7_75_0",
            "curl-7_74_0",
            "curl-7_73_0",
            "curl-7_72_0",
            "curl-7_71_1",
            "curl-7_71_0",
            "curl-7_70_0",
            "curl-7_69_1",
            "curl-7_69_0",
            "curl-7_68_0",
            "curl-7_67_0",
            "curl-7_66_0",
            "curl-7_65_3",
            "curl-7_65_2",
            "curl-7_65_1",
            "curl-7_65_0",
            "curl-7_64_1",
            "curl-7_64_0",
            "curl-7_63_0",
            "curl-7_62_0",
            "curl-7_61_1",
            "curl-7_61_0",
            "curl-7_60_0",
            "curl-7_59_0",
            "curl-7_58_0",
            "curl-7_57_0",
            "curl-7_56_1",
            "curl-7_56_0",
            "curl-7_55_1",
            "curl-7_55_0",
            "curl-7_54_1",
            "curl-7_54_0",
            "curl-7_53_1",
            "curl-7_53_0",
            "curl-7_52_1",
            "curl-7_52_0",
            "curl-7_51_0",
            "curl-7_50_3",
            "curl-7_50_2",
            "curl-7_50_1",
            "curl-7_50_0",
            "curl-7_49_1",
            "curl-7_49_0",
            "curl-7_48_0",
            "curl-7_47_1",
            "curl-7_47_0",
            "curl-7_46_0",
            "curl-7_45_0",
            "curl-7_44_0",
            "curl-7_43_0",
            "curl-7_42_0",
            "curl-7_41_0",
            "curl-7_40_0",
            "curl-7_39_0",
            "curl-7_38_0",
            "curl-7_37_1",
            "curl-7_37_0",
            "curl-7_36_0",
            "curl-7_35_0",
            "curl-7_34_0",
            "curl-7_33_0",
            "curl-7_32_0",
            "curl-7_31_0",
            "curl-7_30_0",
            "curl-7_29_0",
            "curl-7_28_1",
            "curl-7_28_0",
            "curl-7_27_0",
            "curl-7_26_0",
            "curl-7_25_0",
            "curl-7_23_1",
            "curl-7_23_0",
            "curl-7_22_0",
            "curl-7_21_7",
            "curl-7_21_6",
            "curl-7_21_5",
            "curl-7_21_4",
            "curl-7_21_3",
            "curl-7_21_2",
            "curl-7_21_1",
            "curl-7_21_0",
            "curl-7_20_1",
            "curl-7_20_0",
            "curl-7_19_7",
            "curl-7_19_6",
            "curl-7_19_5",
            "curl-7_19_4",
            "curl-7_19_3",
            "curl-7_19_2",
            "curl-7_19_1",
            "curl-7_19_0",
            "curl-7_18_2",
            "curl-7_18_1",
            "curl-7_18_0",
            "curl-7_17_1",
            "curl-7_17_0",
            "curl-7_17_0-preldapfix",
            "curl-7_16_4",
            "curl-7_16_3",
            "curl-7_16_2",
            "curl-7_16_1",
            "curl-7_16_0",
            "curl-7_15_6-prepipeline",
            "curl-7_15_5",
            "curl-7_15_4",
            "curl-7_15_3",
            "curl-7_15_2",
            "curl-7_15_1",
            "curl-7_15_0",
            "curl-7_14_1",
            "curl-7_14_0",
            "curl-7_13_2",
            "curl-7_13_1",
            "before_ftp_statemachine",
            "curl-7_13_0",
            "curl-7_12_3",
            "curl-7_12_2",
            "curl-7_12_1",
            "curl-7_12_0",
            "curl-7_11_2",
            "curl-7_11_1",
            "curl-7_11_0",
            "curl-7_10_8",
            "curl-7_10_7",
            "curl-7_10_6",
            "curl-7_10_5",
            "curl-7_10_4",
            "curl-7_10_3",
            "curl-7_10_2",
            "curl-7_10_1",
            "curl-7_10",
            "curl-7_9_8",
            "curl-7_9_7",
            "curl-7_9_7-pre2",
            "curl-7_9_6",
            "curl-7_9_5",
            "curl-7_9_5-pre4",
            "curl-7_9_5-pre2",
            "curl-7_9_4",
            "curl-7_9_3",
            "curl-7_9_3-pre3",
            "curl-7_9_3-pre2",
            "curl-7_9_3-pre1",
            "curl-7_9_2",
            "curl-7_9_1",
            "curl-7_9",
            "before_urldata_rename",
            "curl-7_8_1",
            "curl-7_8_1-pre3",
            "curl-7_8",
            "curl-7_8-pre2",
            "curl-7_7_3",
            "curl-7_7_2",
            "curl-7_7_1",
            "curl-7_7"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22898.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-22898-462dbdfc",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "61856253574400304251431398167931381325",
                    "240827579168948696521027871241596897491",
                    "110949695118154885913644981527849872064",
                    "233170882117233154983717156358912138949"
                  ]
                },
                "source": "https://github.com/curl/curl/commit/39ce47f219b09c380b81f89fe54ac586c8db6bde",
                "target": {
                  "file": "lib/telnet.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-22898-efb2e938",
                "digest": {
                  "length": 2157,
                  "function_hash": "278374588349917216130301655130053651655"
                },
                "source": "https://github.com/curl/curl/commit/39ce47f219b09c380b81f89fe54ac586c8db6bde",
                "target": {
                  "file": "lib/telnet.c",
                  "function": "suboption"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:25:07Z"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/mysql/mysql-server",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "a9b0c712de3509d8d08d3ba385d41a4df6348775"
                },
                {
                  "introduced": "ca94b993454c86be248fbe180db94647488114e9"
                },
                {
                  "fixed": "98b2ccb470de120d36bc4a623c814cdfded958ec"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.7.34"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.0.15"
                      },
                      {
                        "fixed": "8.0.25"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "mysql-cluster-8.0.24",
            "mysql-8.0.24",
            "mysql-5.7.32",
            "mysql-5.7.31",
            "mysql-5.1.4",
            "mysql-4.0.4",
            "mysql-4.0.2",
            "mysql-3.23.36",
            "mysql-3.23.33",
            "mysql-3.23.32",
            "mysql-3.23.31",
            "mysql-3.23.30-gamma",
            "mysql-3.23.28-gamma",
            "mysql-3.23.22-beta"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22898.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-22898-3a3afa13",
                "digest": {
                  "length": 164,
                  "function_hash": "151132652176240636847836380669942588961"
                },
                "source": "https://github.com/mysql/mysql-server/commit/98b2ccb470de120d36bc4a623c814cdfded958ec",
                "target": {
                  "file": "sql/item_sum.cc",
                  "function": "Item_ntile::fix_fields"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-22898-b466ba2c",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "77377636987516944716339593611926856803",
                    "142305612386154007679493547611883749558",
                    "28963515312630878181069270734519432484",
                    "189136154787345778069113967453357263064",
                    "279825870249106404218276981844202046255",
                    "49834063100662448344239531338010457862",
                    "305324677266273514331621360994794102163",
                    "291539385034554585704690285934398658292",
                    "236290264454280366434563539014838479614",
                    "141317470226054596320765560831766974514",
                    "293246036016278744162797714460506529443",
                    "122395028490668685882586271524119445319",
                    "284458543644346001938693822336726309792",
                    "235525345452044799367912843591411764217",
                    "165750678219403994129886011648698991884"
                  ]
                },
                "source": "https://github.com/mysql/mysql-server/commit/98b2ccb470de120d36bc4a623c814cdfded958ec",
                "target": {
                  "file": "sql/item_sum.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-22898-c1e56b4a",
                "digest": {
                  "length": 2099,
                  "function_hash": "289288981748901423130195206259685444645"
                },
                "source": "https://github.com/mysql/mysql-server/commit/98b2ccb470de120d36bc4a623c814cdfded958ec",
                "target": {
                  "file": "sql/item_sum.cc",
                  "function": "Item_func_group_concat::fix_fields"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-22898-e0665040",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "128532828239806081815173253903495399937",
                    "185178342391912730906413602950301399845",
                    "97073121848381340882801958057414112130",
                    "21787205664934285124213972897648826910",
                    "210360094889580693759307439820673316785",
                    "91968359554667373632799823213263885280",
                    "204786958800992693528587719972879106019",
                    "336835840659383473680709084941686065983",
                    "231712879563153787737540134928862224841",
                    "323967078698100139790231535302074881119",
                    "60799587189103250276527900071006429076",
                    "141679927460555707293407627171615006659",
                    "319137299000429162692642899254402106810"
                  ]
                },
                "source": "https://github.com/mysql/mysql-server/commit/98b2ccb470de120d36bc4a623c814cdfded958ec",
                "target": {
                  "file": "sql/item_sum.cc"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:25:07Z"
          }
        }
      ],
      "modified": "2026-10-24T14:25:07.618258883Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://lists.apache.org/thread.html/rc713534b10f9daeee2e0990239fa407e2118e4aa9e88a7041177497c%40%3Cissues.guacamole.apache.org%3E",
        "https://lists.debian.org/debian-lts-announce/2021/08/msg00017.html",
        "https://lists.debian.org/debian-lts-announce/2022/08/msg00017.html",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FRUCW2UVNYUDZF72DQLFQR4PJEC6CF7V/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/POOC3UV7V6L4CJ5KA2PTWTNUV5Y72T3Q/",
        "https://www.debian.org/security/2022/dsa-5197",
        "https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf",
        "https://curl.se/docs/CVE-2021-22898.html",
        "https://github.com/curl/curl/commit/39ce47f219b09c380b81f89fe54ac586c8db6bde",
        "https://hackerone.com/reports/1176461",
        "https://www.oracle.com//security-alerts/cpujul2021.html",
        "https://www.oracle.com/security-alerts/cpuapr2022.html",
        "https://www.oracle.com/security-alerts/cpujan2022.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:oracle:essbase:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:essbase",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "11.1.2.4.047"
                  },
                  {
                    "introduced": "21.0"
                  },
                  {
                    "fixed": "21.3"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "siemens:sinec_infrastructure_network_services",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.0.1.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "splunk:universal_forwarder",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.2.0"
                  },
                  {
                    "fixed": "8.2.12"
                  },
                  {
                    "introduced": "9.0.0"
                  },
                  {
                    "fixed": "9.0.6"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:communications_cloud_native_core_binding_support_function:1.11.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:communications_cloud_native_core_binding_support_function",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.11.0"
                  },
                  {
                    "last_affected": "1.11.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:1.10.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:communications_cloud_native_core_network_function_cloud_native_environment",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.10.0"
                  },
                  {
                    "last_affected": "1.10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:communications_cloud_native_core_network_repository_function:1.15.0:*:*:*:*:*:*:*",
              "cpe:2.3:a:oracle:communications_cloud_native_core_network_repository_function:1.15.1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:communications_cloud_native_core_network_repository_function",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.15.0"
                  },
                  {
                    "last_affected": "1.15.0"
                  },
                  {
                    "introduced": "1.15.1"
                  },
                  {
                    "last_affected": "1.15.1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:communications_cloud_native_core_network_slice_selection_function:1.8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:communications_cloud_native_core_network_slice_selection_function",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.8.0"
                  },
                  {
                    "last_affected": "1.8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:communications_cloud_native_core_service_communication_proxy:1.15.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:communications_cloud_native_core_service_communication_proxy",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.15.0"
                  },
                  {
                    "last_affected": "1.15.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:splunk:universal_forwarder:9.1.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "splunk:universal_forwarder",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.1.0"
                  },
                  {
                    "last_affected": "9.1.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-22898",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443729,
  "published_at": "2021-06-11T16:15:11.043+00:00"
}