CVE-2022-37451
Exim vulnerability analysis and mitigation

Overview

CVE-2022-37451 affects Exim versions before 4.96, where an invalid free vulnerability exists in the pamconverse function within auths/callpam.c due to improper memory management - specifically, storefree is not used after storemalloc. The vulnerability was discovered in June 2022 and fixed with the release of Exim 4.96 (Exim Release, NVD).

Technical details

The vulnerability stems from a memory management mismatch in the PAM authentication code where the wrong deallocation function is used after memory allocation. Specifically, in auths/callpam.c, memory allocated using storemalloc is not properly freed using the corresponding store_free function. The issue has a CVSS v3.1 Base Score of 7.5 (HIGH) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The improper memory management can lead to memory corruption issues, potentially resulting in denial of service conditions through application crashes. The vulnerability affects the availability of the system but does not directly impact confidentiality or integrity (NVD).

Mitigation and workarounds

The primary mitigation is to upgrade to Exim version 4.96 or later, which fixes the vulnerability by correctly using the appropriate memory management functions. The fix was implemented through a code change that properly uses strdup instead of stringcopymalloc for memory allocation (Exim Patch).

Community reactions

The vulnerability was initially reported and silently fixed in Exim 4.96. The security community acknowledged the issue through various security advisories, including Fedora's security updates for their affected versions (Fedora Advisory).

Additional resources


SourceThis report was generated using AI

Related Exim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-26794CRITICAL9.8
  • EximExim
  • exim4
NoYesFeb 21, 2025
CVE-2023-42118HIGH8.8
  • EximExim
  • perl-Mail-SPF_XS-debuginfo
NoYesMay 03, 2024
CVE-2025-30232HIGH7.8
  • EximExim
  • exim-mon
NoYesMar 28, 2025
CVE-2024-39929MEDIUM5.4
  • EximExim
  • eximstats-html
NoYesJul 04, 2024
CVE-2023-42119LOW3.1
  • EximExim
  • eximon
NoYesMay 03, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management