The slap_modrdn2mods function in modrdn.c in OpenLDAP 2.4.22 does not check the return value of a call to the smr_normalize function, which allows remote attackers to cause a denial of service (segmentation fault) and possibly execute arbitrary code via a modrdn call with an RDN string containing invalid UTF-8 sequences, which triggers a free of an invalid, uninitialized pointer in the slap_mods_free function, as demonstrated using the Codenomicon LDAPv3 test suite.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HApple Mac Os X
OSApple10.6.0 – 10.6.5 (excl.)Apple Mac Os X Server
OSApple10.6.0 – 10.6.5 (excl.)Openldap
APPOpenldap2.4.22Opensuse
OSOpensuse11.0VMware ESXi
OSVmware4.04.1
Related vulnerabilities
VMware ESXi/Workstation: TOCTOU umożliwia ucieczkę z VM przez VMX process
Zdalne wykonanie kodu przez błąd logiczny w systemach Apple (RCE)
Zdalne wykonanie kodu (RCE) w Apple iOS, iPadOS i macOS
VMware ESXi OpenSLP — use-after-free umożliwiający RCE (CVE-2020-3992)
Krytyczny heap overwrite w OpenSLP dla VMware ESXi i Horizon DaaS