Race Condition Affecting exim-mysql package, versions <0:4.92-1.33.amzn1


Severity

Recommended
critical

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.04% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN201803-EXIMMYSQL-2975180
  • published5 Aug 2022
  • disclosed6 May 2021

Introduced: 6 May 2021

CVE-2021-27216  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 exim-mysql to version 0:4.92-1.33.amzn1 or higher.
This issue was patched in ALAS-2022-1622.

NVD Description

Note: Versions mentioned in the description apply only to the upstream exim-mysql package and not the exim-mysql package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

Exim 4 before 4.94.2 has Execution with Unnecessary Privileges. By leveraging a delete_pid_file race condition, a local user can delete arbitrary files as root. This involves the -oP and -oPX options.

CVSS Scores

version 3.1