C Driver: Heap overflow via 32-bit length wrap of the URI username in Windows Kerberos auth message wrapping
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
A 32-bit integer wraparound in the MongoDB C Driver's Windows-only Kerberos/SSPI authentication code can cause an undersized heap buffer to be allocated when an excessively long credential value is supplied in the client's connection configuration. A party able to control that client-side configuration, in conjunction with the affected authentication mechanism, can cause the driver to write outside the bounds of the allocated buffer. This may result in corruption of client process memory and denial of service of the client application. The issue affects only client builds compiled with the Windows-native authentication backend.
Text from CVE List
Affected versions 2
- C Driveraffected: 1.6.0 before 1.30.14CVE List
- C Driveraffected: 2.0.0 before 2.5.7CVE List