Skip to content
Heist/ feed
Back to feed
MediumFix available

curl — security advisory

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

Using its HSTS support, curl can be instructed to use HTTPS directly insteadof using an insecure clear-text HTTP step even when HTTP is provided in theURL. This mechanism could be bypassed if the host name in the given URL used atrailing dot while not using one when it built the HSTS cache. Or the otherway around - by having the trailing dot in the HSTS cache and *not* using thetrailing dot in the URL.

Products
curl
Affected versions
Not specified
Fixed versions
7.83.1-r0
CVEs
CVE-2022-30115
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:12 UTC · Revision 1

Source evidence

ALPINE-CVE-2022-30115

core-osv · Original source

Published 2 Jun 2022, 14:15 UTC

Using its HSTS support, curl can be instructed to use HTTPS directly insteadof using an insecure clear-text HTTP step even when HTTP is provided in theURL. This mechanism could be bypassed if the host name in the given URL used atrailing dot while not using one when it built the HSTS cache. Or the otherway around - by having the trailing dot in the HSTS cache and *not* using thetrailing dot in the URL.

osv:ALPINE-CVE-2022-30115

curl

Fixed versions: 7.83.1-r0

curl

Fixed versions: 7.83.1-r0

curl

Fixed versions: 7.83.1-r0

curl

Fixed versions: 7.83.1-r0

curl

Fixed versions: 7.83.1-r0

curl

Fixed versions: 7.83.1-r0

curl

Fixed versions: 7.83.1-r0

curl

Fixed versions: 7.83.1-r0

curl

Fixed versions: 7.83.1-r0

Complete source record
{
  "id": "400063488c3328f3e0b905d25482803aa02a27dd145cbc66f3296541a3fcb6a9",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2022-30115",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2022-30115",
    "summary": "Using its HSTS support, curl can be instructed to use HTTPS directly insteadof using an insecure clear-text HTTP step even when HTTP is provided in theURL. This mechanism could be bypassed if the host name in the given URL used atrailing dot while not using one when it built the HSTS cache. Or the otherway around - by having the trailing dot in the HSTS cache and *not* using thetrailing dot in the URL.",
    "evidence": "osv:ALPINE-CVE-2022-30115",
    "products": [
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r0",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r0",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r0",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "curl",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.83.1-r0",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "ALPINE-CVE-2022-30115",
      "aliases": [
        "ALPINE-CVE-2022-30115"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.82.0"
                },
                {
                  "fixed": "7.83.1-r0"
                }
              ]
            }
          ],
          "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-30115.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.82.0"
                },
                {
                  "fixed": "7.83.1-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-30115.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.82.0"
                },
                {
                  "fixed": "7.83.1-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-30115.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.82.0"
                },
                {
                  "fixed": "7.83.1-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-30115.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.82.0"
                },
                {
                  "fixed": "7.83.1-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-30115.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.82.0"
                },
                {
                  "fixed": "7.83.1-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-30115.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.82.0"
                },
                {
                  "fixed": "7.83.1-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-30115.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.82.0"
                },
                {
                  "fixed": "7.83.1-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-30115.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.82.0"
                },
                {
                  "fixed": "7.83.1-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-30115.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-15T07:17:54.210241599Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-30115"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2022-30115"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-30115",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 321843,
  "published_at": "2022-06-02T14:15:51.507+00:00"
}