CVE-2023-5422
Critical · 9.1CVSS
9.1
EPSS
0.3%
Published
Oct 16, 2023
CISA due date
—
Cloudanix analysis
Email connections in this system skip security checks on server certificates, allowing attackers to potentially read or change messages without being noticed.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The POP3, IMAP, and SMTP email functions invoke OpenSSL for TLS but omit SSL_get_verify_result(), causing every certificate to be accepted regardless of validity, expiration, or hostname mismatch.
Why it matters to the business
Email content and credentials exchanged with mail servers can be read or altered by an attacker positioned on the network path, exposing customer and internal communications.
How an attack unfolds
An attacker places a rogue mail server presenting an invalid or self-signed certificate on the network; when OTRS initiates an unauthenticated TLS connection for sending or fetching mail the missing verification allows the handshake to succeed, enabling interception or injection of messages.
How to fix it
Upgrade OTRS to 7.0.47 or newer, 8.0.37 or newer; Community Edition users should migrate to a supported release that performs proper certificate validation.
How to confirm the fix worked
Confirm the installed version is at or above the fixed releases; test by configuring a mail server with an invalid certificate and verifying the connection is rejected.
Typical attack path
- Deploy a MITM or rogue mail server reachable by the OTRS instance
- Present an expired, self-signed, or name-mismatched TLS certificate
- Trigger or wait for OTRS to perform POP3/IMAP/SMTP operations
- Decrypt or modify email traffic in transit
How to detect it
Review application and mail logs for connections to unexpected mail servers or repeated TLS handshakes that would have been rejected under normal validation.
What your security team should do
- Apply the listed version upgrades within the next maintenance window
- Audit all mail server connection profiles for the use of TLS
- Enable certificate pinning or strict hostname verification where supported
The record
The functions to fetch e-mail via POP3 or IMAP as well as sending e-mail via SMTP use OpenSSL for static SSL or TLS based communication. As the SSL_get_verify_result() function is not used the certificated is trusted always and it can not be ensured that the certificate satisfies all necessary security requirements. This could allow an attacker to use an invalid certificate to claim to be a trusted host, use expired certificates, or conduct other attacks that could be detected if the certificate is properly validated. This issue affects OTRS: from 7.0.X before 7.0.47, from 8.0.X before 8.0.37; ((OTRS)) Community Edition: from 6.0.X 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-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
- CVE-2023-38058 An improper privilege check in the OTRS ticket move action in the agent interface allows… Also affects otrs2