CVE-2025-59518 Command injection in LemonLDAP::NG

High 8.0 Published Updated

Administrators can execute arbitrary OS commands on the server via the Safe jail due to improper localization of underscores during rule evaluation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-59518?

CVE-2025-59518 is a high-severity command injection vulnerability in lemonldap-ng LemonLDAP::NG, published on 17 Sep 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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.

Weakness: CWE-78

Which versions are affected by CVE-2025-59518?

How do I fix CVE-2025-59518?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-59518 being exploited?

There is no known exploitation of CVE-2025-59518 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-59518, GHSA-fxqv-qm7m-363x, UBUNTU-CVE-2025-59518.

Is CVE-2025-59518 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free