{
    "CVE_data_meta": {
        "ASSIGNER": "secalert@redhat.com",
        "ID": "CVE-2018-16840",
        "STATE": "PUBLIC"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "curl",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "from 7.59.0 to 7.61.1"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "The Curl Project"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "A heap use-after-free flaw was found in curl versions from 7.59.0 through 7.61.1 in the code related to closing an easy handle. When closing and cleaning up an 'easy' handle in the `Curl_close()` function, the library code first frees a struct (without nulling the pointer) and might then subsequently erroneously write to a struct field within that already freed struct."
            }
        ]
    },
    "impact": {
        "cvss": [
            [
                {
                    "vectorString": "4.3/CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
                    "version": "3.0"
                }
            ]
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-416"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "GLSA-201903-03",
                "refsource": "GENTOO",
                "url": "https://security.gentoo.org/glsa/201903-03"
            },
            {
                "name": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840",
                "refsource": "CONFIRM",
                "url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840"
            },
            {
                "name": "https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f",
                "refsource": "CONFIRM",
                "url": "https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f"
            },
            {
                "name": "1042013",
                "refsource": "SECTRACK",
                "url": "http://www.securitytracker.com/id/1042013"
            },
            {
                "name": "https://curl.haxx.se/docs/CVE-2018-16840.html",
                "refsource": "MISC",
                "url": "https://curl.haxx.se/docs/CVE-2018-16840.html"
            },
            {
                "name": "USN-3805-1",
                "refsource": "UBUNTU",
                "url": "https://usn.ubuntu.com/3805-1/"
            }
        ]
    }
}