Skip to content
Heist/ feed
Back to feed
HighFix available

curl — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2022-43551

A vulnerability exists in curl <7.87.0 HSTS check that could be bypassed to trick it to keep using HTTP. Using its HSTS support, curl can be instructed to use HTTPS instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. However, the HSTS mechanism could be bypassed if the host name in the given URL first uses IDN characters that get replaced to ASCII counterparts as part of the IDN conversion. Like using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop (U+002E) `.`. Then in a subsequent request, it does not detect the HSTS state and makes a clear text transfer. Because it would store the info IDN encoded but look for it IDN decoded.

Products
curl
Affected versions
Not specified
Fixed versions
7.79.1-r4, 7.80.0-r5, 7.83.1-r5, 7.87.0-r0
CVEs
CVE-2022-43551
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:19 UTC · Revision 1

Source evidence

ALPINE-CVE-2022-43551

core-osv · Original source

Published 23 Dec 2022, 15:15 UTC

A vulnerability exists in curl <7.87.0 HSTS check that could be bypassed to trick it to keep using HTTP. Using its HSTS support, curl can be instructed to use HTTPS instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. However, the HSTS mechanism could be bypassed if the host name in the given URL first uses IDN characters that get replaced to ASCII counterparts as part of the IDN conversion. Like using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop (U+002E) `.`. Then in a subsequent request, it does not detect the HSTS state and makes a clear text transfer. Because it would store the info IDN encoded but look for it IDN decoded.

osv:ALPINE-CVE-2022-43551

curl

Fixed versions: 7.79.1-r4

curl

Fixed versions: 7.80.0-r5

curl

Fixed versions: 7.83.1-r5

curl

Fixed versions: 7.87.0-r0

curl

Fixed versions: 7.87.0-r0

curl

Fixed versions: 7.87.0-r0

curl

Fixed versions: 7.87.0-r0

curl

Fixed versions: 7.87.0-r0

curl

Fixed versions: 7.87.0-r0

curl

Fixed versions: 7.87.0-r0

curl

Fixed versions: 7.87.0-r0

Complete source record
{
  "id": "7770430d1fd732fd79edab4764d9893588d443ecbbb0a22981f4b39e74209cae",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2022-43551",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2022-43551",
    "summary": "A vulnerability exists in curl <7.87.0 HSTS check that could be bypassed to trick it to keep using HTTP. Using its HSTS support, curl can be instructed to use HTTPS instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. However, the HSTS mechanism could be bypassed if the host name in the given URL first uses IDN characters that get replaced to ASCII counterparts as part of the IDN conversion. Like using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop (U+002E) `.`. Then in a subsequent request, it does not detect the HSTS state and makes a clear text transfer. Because it would store the info IDN encoded but look for it IDN decoded.",
    "evidence": "osv:ALPINE-CVE-2022-43551",
    "products": [
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.79.1-r4",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.80.0-r5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r5",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.87.0-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.87.0-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.87.0-r0",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.87.0-r0",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.87.0-r0",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.87.0-r0",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.87.0-r0",
            "evidence": "/affected/9/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.87.0-r0",
            "evidence": "/affected/10/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2022-43551",
      "aliases": [
        "ALPINE-CVE-2022-43551"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.79.1-r4"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.80.0-r5"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.83.1-r5"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.87.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.87.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.87.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.87.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.20"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.87.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.87.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.87.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.77.0"
                },
                {
                  "fixed": "7.87.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "curl",
            "purl": "pkg:apk/alpine/curl?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-43551.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-15T07:17:54.272273636Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-43551"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2022-43551"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-43551",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 322039,
  "published_at": "2022-12-23T15:15:15.777+00:00"
}