curl might dereference a near-NULL address when getting an LDAP URL.
The function ldap_get_attribute_ber()
is called to get attributes, but it
turns out that it can return LDAP_SUCCESS
and still return a NULL
pointer
in the result pointer when getting a particularly crafted response. This was a
surprise to us and to the code.
libcurl-using applications that allow LDAP URLs, or that allow redirects to LDAP URLs could be made to crash by a malicious server.
{ "CWE": { "id": "CWE-476", "desc": "NULL Pointer Dereference" }, "package": "curl", "URL": "https://curl.se/docs/CVE-2018-1000121.json", "severity": "Low", "www": "https://curl.se/docs/CVE-2018-1000121.html", "last_affected": "7.58.0" }