CVE-2018-8970

Source
https://cve.org/CVERecord?id=CVE-2018-8970
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-8970.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-8970
Downstream
Related
Published
2018-03-24T21:29:00.227Z
Modified
2026-04-11T09:39:41.578167Z
Severity
  • 7.4 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
[none]
Details

The intx509paramsethosts function in lib/libcrypto/x509/x509_vpm.c in LibreSSL 2.7.0 before 2.7.1 does not support a certain special case of a zero name length, which causes silent omission of hostname verification, and consequently allows man-in-the-middle attackers to spoof servers and obtain sensitive information via a crafted certificate. NOTE: the LibreSSL documentation indicates that this special case is supported, but the BoringSSL documentation does not.

References

Affected packages

Git / github.com/libressl-portable/portable

Affected ranges

Type
GIT
Repo
https://github.com/libressl-portable/portable
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.7.0"
        }
    ]
}
Type
GIT
Repo
https://github.com/libressl/openbsd
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v2.*
v2.1.2
v2.1.3
v2.1.4
v2.2.0
v2.2.1
v2.2.2
v2.3.0
v2.3.1
v2.3.2
v2.4.0
v2.4.1
v2.5.0
v2.5.1
v2.5.2
v2.6.0
v2.6.1
v2.6.2
v2.7.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-8970.json"
vanir_signatures
[
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 675.0,
            "function_hash": "124066432240387748490862556255300495937"
        },
        "source": "https://github.com/libressl/openbsd/commit/0654414afcce51a16d35d05060190a3ec4618d42",
        "target": {
            "function": "int_x509_param_set_hosts",
            "file": "src/lib/libcrypto/x509/x509_vpm.c"
        },
        "id": "CVE-2018-8970-1fc07437"
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "70783060215513847624548349568642194857",
                "288999768788510714880779861120358134171",
                "197705374756881059557087188571414980896",
                "87837263733689742431856688096169499200"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/libressl/openbsd/commit/0654414afcce51a16d35d05060190a3ec4618d42",
        "target": {
            "file": "src/lib/libcrypto/x509/x509_vpm.c"
        },
        "id": "CVE-2018-8970-3ec5e240"
    }
]
vanir_signatures_modified
"2026-04-11T09:39:41Z"