lemonldap-ng — security advisory
An issue was discovered in LemonLDAP::NG (aka lemonldap-ng) 2.0.13. When using the RESTServer plug-in to operate a REST password validation service (for another LemonLDAP::NG instance, for example) and using the Kerberos authentication method combined with another method with the Combination authentication plug-in, any password will be recognized as valid for an existing user.
- Products
- lemonldap-ng
- Affected versions
- 1.3.3-1, 1.4.6-1, 1.4.6-2, 1.4.6-3, 1.9.10-1, 1.9.13-2, 1.9.14-1, 1.9.15-1, 1.9.16-2, 2.0.11+ds-4, 2.0.13+ds-3, 2.0.13+ds-3ubuntu1, 2.0.5+ds-2, 2.0.6+ds-2, 2.0.7+ds-2, 2.16.2+ds-1, 2.17.1+ds-1, 2.17.2+ds-1, 2.17.2+ds-2, 2.18.1+ds-1, 2.18.2+ds-1, 2.20.2+ds-1build1, 2.21.0+ds-3, 2.22.0+ds-2, 2.22.1+ds-1, 2.22.2+ds-1, 2.22.3+ds-1, 2.23.0+ds-3, 2.23.0+ds-4, 2.23.2+ds-1, 2.23.2+ds-2, 2.23.3+ds-1
- Fixed versions
- Not specified
- CVEs
- CVE-2021-40874
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:00 UTC · Revision 1
Source evidence
An issue was discovered in LemonLDAP::NG (aka lemonldap-ng) 2.0.13. When using the RESTServer plug-in to operate a REST password validation service (for another LemonLDAP::NG instance, for example) and using the Kerberos authentication method combined with another method with the Combination authentication plug-in, any password will be recognized as valid for an existing user.
osv:UBUNTU-CVE-2021-40874
lemonldap-ng
Fixed versions: Not specified
lemonldap-ng
Fixed versions: Not specified
lemonldap-ng
Fixed versions: Not specified
lemonldap-ng
Fixed versions: Not specified
lemonldap-ng
Fixed versions: Not specified
lemonldap-ng
Fixed versions: Not specified
lemonldap-ng
Fixed versions: Not specified
lemonldap-ng
Fixed versions: Not specified
Complete source record
{
"id": "8682b60f9f597c91f7b239d2f7bccc323b3443b4263c800f009b0709d96cd5c6",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-40874",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-40874",
"summary": "An issue was discovered in LemonLDAP::NG (aka lemonldap-ng) 2.0.13. When using the RESTServer plug-in to operate a REST password validation service (for another LemonLDAP::NG instance, for example) and using the Kerberos authentication method combined with another method with the Combination authentication plug-in, any password will be recognized as valid for an existing user.",
"evidence": "osv:UBUNTU-CVE-2021-40874",
"products": [
{
"name": {
"value": "lemonldap-ng",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.3.3-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.4.6-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.4.6-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.4.6-3",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "lemonldap-ng",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.9.10-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.9.13-2",
"evidence": "/affected/1/versions"
},
{
"value": "1.9.14-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.9.15-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.9.16-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "lemonldap-ng",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.5+ds-2",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.6+ds-2",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.7+ds-2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "lemonldap-ng",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.11+ds-4",
"evidence": "/affected/3/versions"
},
{
"value": "2.0.13+ds-3",
"evidence": "/affected/3/versions"
},
{
"value": "2.0.13+ds-3ubuntu1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "lemonldap-ng",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.16.2+ds-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.17.1+ds-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.17.2+ds-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.17.2+ds-2",
"evidence": "/affected/4/versions"
},
{
"value": "2.18.1+ds-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.18.2+ds-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "lemonldap-ng",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.20.2+ds-1build1",
"evidence": "/affected/5/versions"
},
{
"value": "2.21.0+ds-3",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "lemonldap-ng",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.22.2+ds-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.22.3+ds-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.23.0+ds-3",
"evidence": "/affected/6/versions"
},
{
"value": "2.23.0+ds-4",
"evidence": "/affected/6/versions"
},
{
"value": "2.23.2+ds-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.23.2+ds-2",
"evidence": "/affected/6/versions"
},
{
"value": "2.23.3+ds-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "lemonldap-ng",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.21.0+ds-3",
"evidence": "/affected/7/versions"
},
{
"value": "2.22.0+ds-2",
"evidence": "/affected/7/versions"
},
{
"value": "2.22.1+ds-1",
"evidence": "/affected/7/versions"
},
{
"value": "2.22.2+ds-1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2021-40874",
"aliases": [
"UBUNTU-CVE-2021-40874"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lemonldap-ng",
"purl": "pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.3.3-1",
"1.4.6-1",
"1.4.6-2",
"1.4.6-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40874.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "lemonldap-ng",
"binary_version": "1.4.6-3"
},
{
"binary_name": "liblemonldap-ng-common-perl",
"binary_version": "1.4.6-3"
},
{
"binary_name": "liblemonldap-ng-conf-perl",
"binary_version": "1.4.6-3"
},
{
"binary_name": "liblemonldap-ng-handler-perl",
"binary_version": "1.4.6-3"
},
{
"binary_name": "liblemonldap-ng-manager-perl",
"binary_version": "1.4.6-3"
},
{
"binary_name": "liblemonldap-ng-portal-perl",
"binary_version": "1.4.6-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lemonldap-ng",
"purl": "pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.9.10-1",
"1.9.13-2",
"1.9.14-1",
"1.9.15-1",
"1.9.16-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40874.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "lemonldap-ng",
"binary_version": "1.9.16-2"
},
{
"binary_name": "lemonldap-ng-fastcgi-server",
"binary_version": "1.9.16-2"
},
{
"binary_name": "lemonldap-ng-handler",
"binary_version": "1.9.16-2"
},
{
"binary_name": "liblemonldap-ng-common-perl",
"binary_version": "1.9.16-2"
},
{
"binary_name": "liblemonldap-ng-handler-perl",
"binary_version": "1.9.16-2"
},
{
"binary_name": "liblemonldap-ng-manager-perl",
"binary_version": "1.9.16-2"
},
{
"binary_name": "liblemonldap-ng-portal-perl",
"binary_version": "1.9.16-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lemonldap-ng",
"purl": "pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.0.5+ds-2",
"2.0.6+ds-2",
"2.0.7+ds-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40874.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "lemonldap-ng",
"binary_version": "2.0.7+ds-2"
},
{
"binary_name": "lemonldap-ng-fastcgi-server",
"binary_version": "2.0.7+ds-2"
},
{
"binary_name": "lemonldap-ng-handler",
"binary_version": "2.0.7+ds-2"
},
{
"binary_name": "lemonldap-ng-uwsgi-app",
"binary_version": "2.0.7+ds-2"
},
{
"binary_name": "liblemonldap-ng-common-perl",
"binary_version": "2.0.7+ds-2"
},
{
"binary_name": "liblemonldap-ng-handler-perl",
"binary_version": "2.0.7+ds-2"
},
{
"binary_name": "liblemonldap-ng-manager-perl",
"binary_version": "2.0.7+ds-2"
},
{
"binary_name": "liblemonldap-ng-portal-perl",
"binary_version": "2.0.7+ds-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lemonldap-ng",
"purl": "pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.0.11+ds-4",
"2.0.13+ds-3",
"2.0.13+ds-3ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40874.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "lemonldap-ng",
"binary_version": "2.0.13+ds-3ubuntu1"
},
{
"binary_name": "lemonldap-ng-fastcgi-server",
"binary_version": "2.0.13+ds-3ubuntu1"
},
{
"binary_name": "lemonldap-ng-handler",
"binary_version": "2.0.13+ds-3ubuntu1"
},
{
"binary_name": "lemonldap-ng-uwsgi-app",
"binary_version": "2.0.13+ds-3ubuntu1"
},
{
"binary_name": "liblemonldap-ng-common-perl",
"binary_version": "2.0.13+ds-3ubuntu1"
},
{
"binary_name": "liblemonldap-ng-handler-perl",
"binary_version": "2.0.13+ds-3ubuntu1"
},
{
"binary_name": "liblemonldap-ng-manager-perl",
"binary_version": "2.0.13+ds-3ubuntu1"
},
{
"binary_name": "liblemonldap-ng-portal-perl",
"binary_version": "2.0.13+ds-3ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lemonldap-ng",
"purl": "pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.16.2+ds-1",
"2.17.1+ds-1",
"2.17.2+ds-1",
"2.17.2+ds-2",
"2.18.1+ds-1",
"2.18.2+ds-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40874.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "lemonldap-ng",
"binary_version": "2.18.2+ds-1"
},
{
"binary_name": "lemonldap-ng-fastcgi-server",
"binary_version": "2.18.2+ds-1"
},
{
"binary_name": "lemonldap-ng-handler",
"binary_version": "2.18.2+ds-1"
},
{
"binary_name": "lemonldap-ng-uwsgi-app",
"binary_version": "2.18.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-common-perl",
"binary_version": "2.18.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-handler-perl",
"binary_version": "2.18.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-manager-perl",
"binary_version": "2.18.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-portal-perl",
"binary_version": "2.18.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-ssoaas-apache-client-perl",
"binary_version": "2.18.2+ds-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lemonldap-ng",
"purl": "pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.20.2+ds-1build1",
"2.21.0+ds-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40874.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "lemonldap-ng",
"binary_version": "2.21.0+ds-3"
},
{
"binary_name": "lemonldap-ng-fastcgi-server",
"binary_version": "2.21.0+ds-3"
},
{
"binary_name": "lemonldap-ng-handler",
"binary_version": "2.21.0+ds-3"
},
{
"binary_name": "lemonldap-ng-uwsgi-app",
"binary_version": "2.21.0+ds-3"
},
{
"binary_name": "liblemonldap-ng-common-perl",
"binary_version": "2.21.0+ds-3"
},
{
"binary_name": "liblemonldap-ng-handler-perl",
"binary_version": "2.21.0+ds-3"
},
{
"binary_name": "liblemonldap-ng-manager-perl",
"binary_version": "2.21.0+ds-3"
},
{
"binary_name": "liblemonldap-ng-portal-perl",
"binary_version": "2.21.0+ds-3"
},
{
"binary_name": "liblemonldap-ng-ssoaas-apache-client-perl",
"binary_version": "2.21.0+ds-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lemonldap-ng",
"purl": "pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.22.2+ds-1",
"2.22.3+ds-1",
"2.23.0+ds-3",
"2.23.0+ds-4",
"2.23.2+ds-1",
"2.23.2+ds-2",
"2.23.3+ds-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40874.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "lemonldap-ng",
"binary_version": "2.23.3+ds-1"
},
{
"binary_name": "lemonldap-ng-fastcgi-server",
"binary_version": "2.23.3+ds-1"
},
{
"binary_name": "lemonldap-ng-handler",
"binary_version": "2.23.3+ds-1"
},
{
"binary_name": "lemonldap-ng-uwsgi-app",
"binary_version": "2.23.3+ds-1"
},
{
"binary_name": "liblemonldap-ng-common-perl",
"binary_version": "2.23.3+ds-1"
},
{
"binary_name": "liblemonldap-ng-handler-perl",
"binary_version": "2.23.3+ds-1"
},
{
"binary_name": "liblemonldap-ng-manager-perl",
"binary_version": "2.23.3+ds-1"
},
{
"binary_name": "liblemonldap-ng-portal-perl",
"binary_version": "2.23.3+ds-1"
},
{
"binary_name": "liblemonldap-ng-ssoaas-apache-client-perl",
"binary_version": "2.23.3+ds-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lemonldap-ng",
"purl": "pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.21.0+ds-3",
"2.22.0+ds-2",
"2.22.1+ds-1",
"2.22.2+ds-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40874.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "lemonldap-ng",
"binary_version": "2.22.2+ds-1"
},
{
"binary_name": "lemonldap-ng-fastcgi-server",
"binary_version": "2.22.2+ds-1"
},
{
"binary_name": "lemonldap-ng-handler",
"binary_version": "2.22.2+ds-1"
},
{
"binary_name": "lemonldap-ng-uwsgi-app",
"binary_version": "2.22.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-common-perl",
"binary_version": "2.22.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-handler-perl",
"binary_version": "2.22.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-manager-perl",
"binary_version": "2.22.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-portal-perl",
"binary_version": "2.22.2+ds-1"
},
{
"binary_name": "liblemonldap-ng-ssoaas-apache-client-perl",
"binary_version": "2.22.2+ds-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:20.781283944Z",
"provider": "osv",
"upstream": [
"CVE-2021-40874"
],
"references": [
"https://ubuntu.com/security/CVE-2021-40874",
"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2612",
"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/commit/66946e8f754812b375768c2124937137c856fe0c",
"https://www.cve.org/CVERecord?id=CVE-2021-40874"
]
},
"related_cves": [
{
"value": "CVE-2021-40874",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355355,
"published_at": "2022-07-18T00:15:00+00:00"
}