curl — security advisory
In curl before 7.86.0, the HSTS check could be bypassed to trick it into staying with HTTP. Using its HSTS support, curl can be instructed to use HTTPS directly (instead of using an insecure cleartext HTTP step) even when HTTP is provided in the URL. This mechanism could be bypassed if the host name in the given URL uses IDN characters that get replaced with ASCII counterparts as part of the IDN conversion, e.g., using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop of U+002E (.). The earliest affected version is 7.77.0 2021-05-26.
- Products
- curl
- Affected versions
- Not specified
- Fixed versions
- 7.80.0-r4, 7.83.1-r4, 7.86.0-r0
- CVEs
- CVE-2022-42916
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 14:18 UTC · Revision 1
Source evidence
In curl before 7.86.0, the HSTS check could be bypassed to trick it into staying with HTTP. Using its HSTS support, curl can be instructed to use HTTPS directly (instead of using an insecure cleartext HTTP step) even when HTTP is provided in the URL. This mechanism could be bypassed if the host name in the given URL uses IDN characters that get replaced with ASCII counterparts as part of the IDN conversion, e.g., using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop of U+002E (.). The earliest affected version is 7.77.0 2021-05-26.
osv:ALPINE-CVE-2022-42916
curl
Fixed versions: 7.80.0-r4
curl
Fixed versions: 7.83.1-r4
curl
Fixed versions: 7.86.0-r0
curl
Fixed versions: 7.86.0-r0
curl
Fixed versions: 7.86.0-r0
curl
Fixed versions: 7.86.0-r0
curl
Fixed versions: 7.86.0-r0
curl
Fixed versions: 7.86.0-r0
curl
Fixed versions: 7.86.0-r0
curl
Fixed versions: 7.86.0-r0
Complete source record
{
"id": "204ce61226c025b51f1531a20f3e299a79194caa7c9b0950d0d0f72fe3e38e50",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2022-42916",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-CVE-2022-42916",
"summary": "In curl before 7.86.0, the HSTS check could be bypassed to trick it into staying with HTTP. Using its HSTS support, curl can be instructed to use HTTPS directly (instead of using an insecure cleartext HTTP step) even when HTTP is provided in the URL. This mechanism could be bypassed if the host name in the given URL uses IDN characters that get replaced with ASCII counterparts as part of the IDN conversion, e.g., using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop of U+002E (.). The earliest affected version is 7.77.0 2021-05-26.",
"evidence": "osv:ALPINE-CVE-2022-42916",
"products": [
{
"name": {
"value": "curl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.80.0-r4",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "curl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.83.1-r4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "curl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.86.0-r0",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "curl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.86.0-r0",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "curl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.86.0-r0",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "curl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.86.0-r0",
"evidence": "/affected/5/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "curl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.86.0-r0",
"evidence": "/affected/6/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "curl",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.86.0-r0",
"evidence": "/affected/7/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "curl",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.86.0-r0",
"evidence": "/affected/8/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "curl",
"evidence": "/affected/9/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.86.0-r0",
"evidence": "/affected/9/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "ALPINE-CVE-2022-42916",
"aliases": [
"ALPINE-CVE-2022-42916"
],
"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.80.0-r4"
}
]
}
],
"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-42916.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.77.0"
},
{
"fixed": "7.83.1-r4"
}
]
}
],
"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-42916.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.77.0"
},
{
"fixed": "7.86.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-42916.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.77.0"
},
{
"fixed": "7.86.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-42916.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.77.0"
},
{
"fixed": "7.86.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-42916.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.77.0"
},
{
"fixed": "7.86.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-42916.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.77.0"
},
{
"fixed": "7.86.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-42916.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.77.0"
},
{
"fixed": "7.86.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-42916.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.77.0"
},
{
"fixed": "7.86.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-42916.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.77.0"
},
{
"fixed": "7.86.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-42916.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-15T07:17:54.268011274Z",
"provider": "osv",
"upstream": [
"CVE-2022-42916"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2022-42916"
]
},
"related_cves": [
{
"value": "CVE-2022-42916",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 322017,
"published_at": "2022-10-29T02:15:09.047+00:00"
}