// For flags

CVE-2024-35187

Stalwart Mail Server has privilege escalation by design

Severity Score

9.1
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Attend
*SSVC
Descriptions

Stalwart Mail Server is an open-source mail server. Prior to version 0.8.0, attackers who achieved Arbitrary Code Execution as the stalwart-mail user (including web interface admins) can gain complete root access to the system. Usually, system services are run as a separate user (not as root) to isolate an attacker with Arbitrary Code Execution to the current service. Therefore, other system services and the system itself remains protected in case of a successful attack. stalwart-mail runs as a separate user, but it can give itself full privileges again in a simple way, so this protection is practically ineffective. Server admins who handed out the admin credentials to the mail server, but didn't want to hand out complete root access to the system, as well as any attacked user when the attackers gained Arbitrary Code Execution using another vulnerability, may be vulnerable. Version 0.8.0 contains a patch for the issue.

Stalwart Mail Server es un servidor de correo de código abierto. Antes de la versión 0.8.0, los atacantes que lograban la ejecución de código arbitrario como usuarios incondicionales de correo (incluidos los administradores de la interfaz web) podían obtener acceso de root al sistema. Por lo general, los servicios del sistema se ejecutan como un usuario independiente (no como root) para aislar a un atacante con ejecución de código arbitrario en el servicio actual. Por lo tanto, otros servicios del sistema y el propio sistema permanecen protegidos en caso de un ataque exitoso. stalwart-mail se ejecuta como un usuario independiente, pero puede volver a otorgarse todos los privilegios de forma sencilla, por lo que esta protección es prácticamente ineficaz. Los administradores de servidores que entregaron las credenciales de administrador al servidor de correo, pero no quisieron otorgar acceso root al sistema, así como cualquier usuario atacado cuando los atacantes obtuvieron la ejecución de código arbitrario utilizando otra vulnerabilidad, pueden ser vulnerables. La versión 0.8.0 contiene un parche para el problema.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:Attend
Exploitation
Poc
Automatable
No
Tech. Impact
Total
* Organization's Worst-case Scenario
Timeline
  • 2024-05-10 CVE Reserved
  • 2024-05-16 CVE Published
  • 2024-05-17 EPSS Updated
  • 2024-08-02 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-863: Incorrect Authorization
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Stalwartlabs
Search vendor "Stalwartlabs"
Mail-server
Search vendor "Stalwartlabs" for product "Mail-server"
< 0.8.0
Search vendor "Stalwartlabs" for product "Mail-server" and version " < 0.8.0"
en
Affected