cve.bz

CVE-2025-59518 lemonldap-ng lemonldap ng: OS Command Injection

8.0 highEPSS 1.1%

High (8.0) in lemonldap-ng lemonldap ng. EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.0 high
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 68th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-09-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-59518 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-59518?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-59518?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-59518 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
lemonldap-ng LemonLDAP::NGbefore 2.16.7
lemonldap-ng LemonLDAP::NGfrom 2.17.0 before 2.21.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11lemonldap-ng2.0.11+ds-4+deb11u8DLA-4602-1
Debian12lemonldap-ng2.16.1+ds-deb12u7DEBIAN-CVE-2025-59518
Debian13lemonldap-ng2.21.2+ds-1+deb13u1DEBIAN-CVE-2025-59518
Debian14lemonldap-ng2.21.3+ds-1DEBIAN-CVE-2025-59518
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morelemonldap-ngno fix listedUBUNTU-CVE-2025-59518

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is a Important vulnerability because it breaks the Safe jail’s sandboxing by allowing OS command injection via the Perl _ variable. An admin can exploit this to execute arbitrary commands on the server, leading to full system compromise—far beyond a typical configuration flaw.

Red Hat's mitigation

As a temporary mitigation strictly limit access to the admin interface, enforce strong authentication, and audit existing rules for suspicious code. Avoid using dynamic or complex expressions in rules until the system is fully patched.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-59518.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON