CVE-2025-59518: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in lemonldap-ng LemonLDAP::NG
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.
AI Analysis
Technical Summary
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.
CVE-2025-59518: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in lemonldap-ng 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
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.