SB2021050419 - Multiple vulnerabilities in Exim 



SB2021050419 - Multiple vulnerabilities in Exim

Published: May 4, 2021 Updated: May 4, 2021

Security Bulletin ID SB2021050419
Severity
Critical
Patch available
YES
Number of vulnerabilities 21
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Critical 5% High 19% Medium 24% Low 52%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 21 secuirty vulnerabilities.


1) UNIX symbolic link following (CVE-ID: CVE-2020-28007)

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a symlink following issue in Exim log directory. A local user can create a specially crafted symbolic link to a critical file on the system and overwrite it with privileges of the application.

Successful exploitation of this vulnerability may result in privilege escalation.


2) Integer overflow (CVE-ID: CVE-2020-28020)

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to integer overflow in receive_msg() function. A remote non-authenticated attacker can send specially crafted data to the mail server, trigger integer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


3) Input validation error (CVE-ID: CVE-2020-28026)

The vulnerability allows a remote attacker to bypass implemented security restrictions

The vulnerability exists due to insufficient validation of user-supplied input in the spool_read_header() function. A remote attacker can inject lines and manipulate mail queue.


4) Out-of-bounds write (CVE-ID: CVE-2020-28022)

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input within the extract_option() function. A remote attacker can create a specially crafted message to the mail server, trigger and out-of-bounds write or read error and execute arbitrary code on the target system.


5) Input validation error (CVE-ID: CVE-2020-28021)

The vulnerability allows a remote attacker to bypass implemented security restrictions

The vulnerability exists due to insufficient validation of user-supplied input when processing new line characters. A remote attacker can inject a new line character into the spool header file and modify the mail queue.


6) Out-of-bounds read (CVE-ID: CVE-2020-28023)

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition in smtp_setup_msg() function. A remote attacker can send specially crafted message to the system, trigger out-of-bounds read error and read contents of memory on the system.


7) Integer overflow (CVE-ID: CVE-2020-28017)

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to integer overflow within the receive_add_recipient() function. A remote attacker can pass specially crafted data to the application, trigger integer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


8) Security restrictions bypass (CVE-ID: CVE-2020-28008)

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to application does not properly impose security restrictions on the spool directory. A local user can escalate privileges on the system.


9) Integer overflow (CVE-ID: CVE-2020-28009)

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to integer overflow in get_stdinput() function. A local user can execute arbitrary code with elevated privileges.


10) Security features bypass (CVE-ID: CVE-2020-28012)

The vulnerability allows a local user to bypass implemented security restrictions.

The vulnerability exists due to missing close-on-exec flag for privileged pipe. A local user can escalate privileges on the system.


11) Input validation error (CVE-ID: CVE-2020-28015)

The vulnerability allows a local user to bypass implemented security restrictions

The vulnerability exists due to insufficient validation of user-supplied input when processing new line characters. A local user can inject a new line character into spool header file and execute arbitrary commands.


12) Out-of-bounds write (CVE-ID: CVE-2020-28016)

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error within the parse_fix_phrase() function. A local user can trigger an out-of-bounds write and execute arbitrary code on the target system with elevated privileges.


13) Heap-based buffer overflow (CVE-ID: CVE-2020-28013)

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error in parse_fix_phrase() function. A local user can trigger heap-based buffer overflow and execute arbitrary code with elevated privileges.



14) Out-of-bounds write (CVE-ID: CVE-2020-28010)

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error within the main() function. A local user can trigger an out-of-bounds write and execute arbitrary code on the target system with elevated privileges.


15) Heap-based buffer overflow (CVE-ID: CVE-2020-28011)

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error in queue_run() function. A local user can trigger heap-based buffer overflow and execute arbitrary code with elevated privileges.



16) Security restrictins bypass (CVE-ID: CVE-2020-28014)

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to application uses PID files in an insecure manner. A local user can predict the name of the PID file and use it to escalate privileges on the system.


17) Resource management error (CVE-ID: CVE-2020-28019)

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to improper management of internal resources within the application. The mail server fails to reset function pointer after BDAT error. A remote attacker can pass specially crafted data to the application and perform a denial of service (DoS) attack.


18) Integer underflow (CVE-ID: CVE-2020-28024)

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to integer underflow in smtp_ungetc() function. A remote attacker can send a specially crafted data to the application, trigger integer underflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


19) Use-after-free (CVE-ID: CVE-2020-28018)

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in tls-openssl.c. A remote non-authenticated attacker can send specially crafted data to the mail server, trigger a use-after-free error and execute arbitrary code on the system with root privileges.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


20) Out-of-bounds read (CVE-ID: CVE-2020-28025)

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition in pdkim_finish_bodyhash() function. A remote attacker can trigger out-of-bounds read error and read contents of memory on the system.


21) Permissions, Privileges, and Access Controls (CVE-ID: CVE-2021-27216)

The vulnerability allows a local user to delete arbitrary files on the system.

The vulnerability exists due to application does not properly impose security restrictions. A local user can delete arbitrary files on the system.


Remediation

Install update from vendor's website.