Empty Password Login Vulnerability in golang-github-go-ldap-ldap

golang-github-go-ldap-ldap Updated 02 Oct 2025

Summary

20/09/2017
N/A
Yes i
High
8.1

CVE-2017-14623: In the ldap.v2 (aka go-ldap) package through 2.5.0 for Go, an attacker may be able to login with an empty password. Affects golang-github-go-ldap-ldap across 2 version ranges.

< 2.5.1-1 < 95ede1266b237bf8e9aa5dce0b3250e51bfefe66

Fixed in 2.5.1-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The golang-github-go-ldap-ldap package is a Go library that provides functionality for interacting with LDAP servers. It is commonly used in applications that require LDAP authentication. This vulnerability allows an attacker to login with an empty password, bypassing authentication.

Vulnerability Detail

The vulnerability exists in the ldap.v2 package through version 2.5.0. If an application relies solely on the return error of the Bind function call to determine user authorization and is used with an LDAP server allowing unauthenticated bind, an attacker can exploit this by providing an empty password. This can lead to unauthorized access and potential security breaches.

How To Fix

Minimum fixed version

2.5.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade golang-github-go-ldap-ldap

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If updating the package is not immediately feasible, a temporary workaround is to modify the application's authentication logic to explicitly check for empty passwords and reject them. This can be done by adding a condition to the code that handles the Bind function response, ensuring that a nil return value is not interpreted as successful authorization if the password is empty.

Conclusion

The empty password login vulnerability in the golang-github-go-ldap-ldap package allows attackers to bypass authentication and gain unauthorized access. It is crucial to update the package to version 2.5.1-1 or later to fix this issue. If immediate update is not possible, implementing the provided workaround can help mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for golang-github-go-ldap-ldap →

Share this vulnerability

FAQ

The impact of this vulnerability is that an attacker can bypass authentication and gain unauthorized access to the application. This can lead to data breaches, privilege escalation, and other security risks.

Versions up to and including 2.5.0 are affected by this vulnerability. It is recommended to update to version 2.5.1-1 or later.

At the time of this report, there are no known public exploits for this vulnerability. However, it is important to apply the recommended fix as soon as possible to mitigate the risk.

Yes, this vulnerability can be exploited remotely if the application using the golang-github-go-ldap-ldap package is accessible over the network and the LDAP server allows unauthenticated bind.

Yes, the CVSS score for this vulnerability is 8.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for golang-github-go-ldap-ldap.

How To Fix

Minimum fixed version

2.5.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade golang-github-go-ldap-ldap

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback