Skip to main content
EPSS 1.2%top 35%

CVE-2025-59518: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in lemonldap-ng LemonLDAP::NG

0
High
VulnerabilityCVE-2025-59518cvecve-2025-59518cwe-78
Published: 09/17/2025 (09/17/2025, 00:00:00 UTC)
Source: CVE Database V5
Vendor/Project: lemonldap-ng
Product: LemonLDAP::NG

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.

CVSS v3.1

Score 8.0high

Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

Affected software

Affected versions
=0=2.17.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/12/2026, 05:54:42 UTC

Technical Analysis

LemonLDAP::NG versions prior to 2.16.7 and from 2.17 up to but not including 2.21.3 contain an OS command injection vulnerability (CWE-78) in the Safe jail feature. The issue arises because the Safe jail does not properly localize the underscore character during rule evaluation, enabling an administrator who can modify rules to execute arbitrary OS commands on the server. This vulnerability requires high privileges (administrator access) and does not involve user interaction. The CVSS 3.1 vector indicates network attack vector, high attack complexity, high privileges required, no user interaction, and complete impact on confidentiality, integrity, and availability.

Potential Impact

Successful exploitation allows an administrator with rule editing privileges to execute arbitrary OS commands on the server hosting LemonLDAP::NG. This can lead to full compromise of the affected system, including unauthorized access to sensitive data, modification or destruction of data, and disruption of service. The vulnerability affects confidentiality, integrity, and availability at a high level.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict rule editing privileges to trusted administrators only and monitor for suspicious rule changes. Avoid running LemonLDAP::NG with unnecessary elevated privileges to limit potential impact.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2025-09-17T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68ca2bd1571b2840ff02c442

Added to database: 09/17/2025, 03:32:33 UTC

Last enriched: 05/12/2026, 05:54:42 UTC

Last updated: 09/10/2026, 19:36:51 UTC

Views: 176

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses