Vulnerabilities in pkg:golang/github.com/go-ldap/ldap
PACKAGECVE-2017-14623 is a HIGH (CVSS 8.1) access restriction bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/go ldap/ldap libraries in the Go ecosystem. The issue involves access restriction bypass in go-ldap. Remediation is available by upgrading affected packages to version 2.5.0.
pkg:golang/github.com/go-ldap/ldap
Vulnerability advisories affecting package pkg:golang/github.com/go-ldap/ldap. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-x27w-qxhg-343v | CVE-2017-14623 | HIGH | Access Restriction Bypass in go-ldap |
CVE-2017-14623 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2017-14623
To remediate this vulnerability, upgrade all affected Github.com/go ldap/ldap dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/go-ldap/ldap to 2.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/go-ldap/ldap
How to Check if You Are Affected
To determine whether your application is affected by CVE-2017-14623, inspect your project dependencies for Github.com/go ldap/ldap:
inspect dependencies for github.com/go-ldap/ldap
Analyze the terminal output to locate any version of Github.com/go ldap/ldap in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/go ldap/ldap, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2017-14623 Affected Github.com/go ldap/ldap Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/go-ldap/ldap
|
Go |
< 2.5.0
|
2.5.0
|
References
Frequently Asked Questions
What is CVE-2017-14623?
Which Github.com/go ldap/ldap versions are affected?
What version fixes CVE-2017-14623?
Is github.com/go-ldap/ldap affected?
What is the CVSS score of CVE-2017-14623?
What CWE is associated with CVE-2017-14623?
How can I check Go dependencies for CVE-2017-14623?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x27w-qxhg-343v",
"modified" : "2024-04-22T19:05:51Z",
"published" : "2022-02-15T01:57:18Z",
"aliases" : [ "CVE-2017-14623" ],
"summary" : "Access Restriction Bypass in go-ldap",
"details" : "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. This issue affects an application using this package if these conditions are met: (1) it relies only on the return error of the Bind function call to determine whether a user is authorized (i.e., a nil return value is interpreted as successful authorization) and (2) it is used with an LDAP server allowing unauthenticated bind.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/go-ldap/ldap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-14623"
}, {
"type" : "WEB",
"url" : "https://github.com/go-ldap/ldap/pull/126"
}, {
"type" : "WEB",
"url" : "https://github.com/go-ldap/ldap/commit/95ede1266b237bf8e9aa5dce0b3250e51bfefe66"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-20T17:02:56Z",
"nvd_published_at" : "2017-09-20T23:29:00Z"
}
}