CVE-2019-18224

Source
https://nvd.nist.gov/vuln/detail/CVE-2019-18224
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-18224.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2019-18224
Downstream
Related
Published
2019-10-21T17:15:09Z
Modified
2025-10-15T10:34:26.872025Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

idn2toascii_4i in lib/lookup.c in GNU libidn2 before 2.1.1 has a heap-based buffer overflow via a long domain string.

References

Affected packages

Git / github.com/libidn/libidn2

Affected ranges

Type
GIT
Repo
https://github.com/libidn/libidn2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

libidn2-0.*

libidn2-0.10
libidn2-0.11
libidn2-0.12
libidn2-0.13
libidn2-0.14
libidn2-0.15
libidn2-0.16
libidn2-0.3
libidn2-0.4
libidn2-0.5
libidn2-0.6
libidn2-0.7
libidn2-0.8
libidn2-0.9

libidn2-2.*

libidn2-2.0.0
libidn2-2.0.1
libidn2-2.0.2
libidn2-2.0.3
libidn2-2.0.4
libidn2-2.0.5
libidn2-2.1.0

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2019-18224-d1b63e78",
            "signature_type": "Function",
            "digest": {
                "function_hash": "214985951242038317322025943762415417586",
                "length": 701.0
            },
            "source": "https://github.com/libidn/libidn2/commit/e4d1558aa2c1c04a05066ee8600f37603890ba8c",
            "target": {
                "file": "lib/lookup.c",
                "function": "idn2_to_ascii_4i"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "id": "CVE-2019-18224-e627a1e0",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "218593188083772802622278516276379885292",
                    "75544740509718557889899472802812714157",
                    "88559900838356515207564908305722819563",
                    "162592913917631513379925092713417473222",
                    "97451075533321452369957433137531049196",
                    "287318457797403020141752624756010271903"
                ]
            },
            "source": "https://github.com/libidn/libidn2/commit/e4d1558aa2c1c04a05066ee8600f37603890ba8c",
            "target": {
                "file": "lib/lookup.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        }
    ]
}