CVE-2023-38056
High · 7.2CVSS
7.2
EPSS
0.9%
Published
Jul 24, 2023
CISA due date
—
Cloudanix analysis
Admins in the OTRS system could run any commands they wanted on the server because checks in certain configuration settings were missing.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper neutralization of commands in OTRS System Configuration modules such as SchedulerCronTaskModule allows authenticated administrators to inject and execute arbitrary code via UnitTests module handling.
Why it matters to the business
Compromised admin accounts can lead to full server control, data exfiltration, or disruption of critical ticketing and customer service operations in affected OTRS deployments.
How an attack unfolds
An authenticated administrator accesses the system configuration interface, injects malicious commands into fields like SchedulerCronTaskModule using UnitTests modules, and triggers execution to achieve local code execution on the server.
How to fix it
Upgrade OTRS to version 7.0.45 or later for 7.0.x releases and 8.0.35 or later for 8.0.x releases; upgrade ((OTRS)) Community Edition to 6.0.35 or later. Review and sanitize all custom system configuration entries post-upgrade.
How to confirm the fix worked
Verify installed OTRS version against fixed releases; audit System Configuration for any non-standard SchedulerCronTaskModule or UnitTests entries; test that injected commands are rejected in configuration interfaces.
Typical attack path
- Obtain valid administrator credentials
- Navigate to System Configuration settings
- Modify SchedulerCronTaskModule or related entries with injected commands via UnitTests
- Trigger module execution
- Execute arbitrary code on the host
How to detect it
Examine system configuration change logs and audit trails for modifications to SchedulerCronTaskModule or UnitTests entries; search for unexpected cron task definitions or test module activations in application logs.
What your security team should do
- Apply the specified version upgrades immediately across all instances
- Restrict and audit administrator privileges to the minimum required
- Implement monitoring for configuration changes involving cron or test modules
- Review logs for any prior suspicious configuration activity
The record
Improper Neutralization of commands allowed to be executed via OTRS System Configuration e.g. SchedulerCronTaskModule using UnitTests modules allows any authenticated attacker with admin privileges local execution of Code.This issue affects OTRS: from 7.0.X before 7.0.45, from 8.0.X before 8.0.35; ((OTRS)) Community Edition: from 6.0.1 through 6.0.34.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:18.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:20.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:22.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:24.04:LTS | znuny | 0 | No fix |
| Ubuntu:24.10 | znuny | 0 | No fix |
| Ubuntu:25.04 | znuny | 0 | No fix |
| Ubuntu:25.10 | znuny | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | otrs2 | 0 | No fix |
Related vulnerabilities
- CVE-2024-23790 Improper Input Validation vulnerability in the upload functionality for user avatars… Also affects otrs2
- CVE-2024-23791 Insertion of debug information into log file during building the elastic search index… Also affects otrs2
- CVE-2024-23792 When adding attachments to ticket comments, another user can add attachments as well… Also affects otrs2
- CVE-2023-6254 A Vulnerability in OTRS AgentInterface and ExternalInterface allows the reading of plain… Also affects otrs2
- CVE-2023-5422 The functions to fetch e-mail via POP3 or IMAP as well as sending e-mail via SMTP use… Also affects otrs2
- CVE-2023-5421 An attacker who is logged into OTRS as an user with privileges to create and change… Also affects otrs2
- CVE-2023-38059 The loading of external images is not blocked, even if configured, if the attacker uses… Also affects otrs2
- CVE-2023-38060 Improper Input Validation vulnerability in the ContentType parameter for attachments on… Also affects otrs2