{"id":"UBUNTU-CVE-2025-59518","details":"In LemonLDAP::NG before 2.16.7 and 2.17 through 2.21 before 2.21.3, OS command injection can occur in the Safe jail. It does not Localize _ during rule evaluation. Thus, an administrator who can edit a rule evaluated by the Safe jail can execute commands on the server.","modified":"2026-05-20T16:23:38.859109327Z","published":"2025-09-17T04:16:00Z","upstream":["CVE-2025-59518"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-59518"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-59518"},{"type":"REPORT","url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/3462"},{"type":"REPORT","url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/3470"},{"type":"REPORT","url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/commit/6e86f70be5499d09dfaaff307632be8a10f7e58f"},{"type":"REPORT","url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/commit/0c1ae1644bbddad34da2644228953babf137f64c"},{"type":"REPORT","url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/commit/228d01945d48015f3f9ea8a8dc64d7e6a27750e9"},{"type":"REPORT","url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/commit/8b5ce4de7716f550d353f406b4867378c81aee7c"},{"type":"REPORT","url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/commit/228d01945d48015f3f9ea8a8dc64d7e6a27750e9"},{"type":"REPORT","url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/3462"}],"affected":[{"package":{"name":"lemonldap-ng","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.3-1","1.4.6-1","1.4.6-2","1.4.6-3"],"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_version":"1.4.6-3","binary_name":"liblemonldap-ng-conf-perl"},{"binary_name":"liblemonldap-ng-handler-perl","binary_version":"1.4.6-3"},{"binary_version":"1.4.6-3","binary_name":"liblemonldap-ng-manager-perl"},{"binary_name":"liblemonldap-ng-portal-perl","binary_version":"1.4.6-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59518.json"}},{"package":{"name":"lemonldap-ng","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.10-1","1.9.13-2","1.9.14-1","1.9.15-1","1.9.16-2"],"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_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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59518.json"}},{"package":{"name":"lemonldap-ng","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.5+ds-2","2.0.6+ds-2","2.0.7+ds-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.7+ds-2","binary_name":"lemonldap-ng"},{"binary_name":"lemonldap-ng-fastcgi-server","binary_version":"2.0.7+ds-2"},{"binary_version":"2.0.7+ds-2","binary_name":"lemonldap-ng-handler"},{"binary_name":"lemonldap-ng-uwsgi-app","binary_version":"2.0.7+ds-2"},{"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_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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59518.json"}},{"package":{"name":"lemonldap-ng","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.11+ds-4","2.0.13+ds-3","2.0.13+ds-3ubuntu1"],"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_version":"2.0.13+ds-3ubuntu1","binary_name":"liblemonldap-ng-portal-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59518.json"}},{"package":{"name":"lemonldap-ng","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_name":"lemonldap-ng","binary_version":"2.18.2+ds-1"},{"binary_version":"2.18.2+ds-1","binary_name":"lemonldap-ng-fastcgi-server"},{"binary_name":"lemonldap-ng-handler","binary_version":"2.18.2+ds-1"},{"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_name":"liblemonldap-ng-handler-perl","binary_version":"2.18.2+ds-1"},{"binary_version":"2.18.2+ds-1","binary_name":"liblemonldap-ng-manager-perl"},{"binary_name":"liblemonldap-ng-portal-perl","binary_version":"2.18.2+ds-1"},{"binary_version":"2.18.2+ds-1","binary_name":"liblemonldap-ng-ssoaas-apache-client-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59518.json"}},{"package":{"name":"lemonldap-ng","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.20.2+ds-1build1","2.21.0+ds-3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.21.0+ds-3","binary_name":"lemonldap-ng"},{"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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59518.json"}},{"package":{"name":"lemonldap-ng","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/lemonldap-ng?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.21.0+ds-3","2.22.0+ds-2","2.22.1+ds-1","2.22.2+ds-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.22.2+ds-1","binary_name":"lemonldap-ng"},{"binary_version":"2.22.2+ds-1","binary_name":"lemonldap-ng-fastcgi-server"},{"binary_name":"lemonldap-ng-handler","binary_version":"2.22.2+ds-1"},{"binary_version":"2.22.2+ds-1","binary_name":"lemonldap-ng-uwsgi-app"},{"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_version":"2.22.2+ds-1","binary_name":"liblemonldap-ng-manager-perl"},{"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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59518.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}