Critical Security Update for mingw-expat: Mitigating Memory Allocation Vulnerability

mingw32-expat Updated 02 Dec 2025

Summary

24/11/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:21974: Important: mingw-expat security update. Affects mingw32-expat versions < 2.5.0-1.el8_10. Fixed in 2.5.0-1.el8_10. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Expat is a widely used C library designed for parsing XML documents efficiently. The mingw-expat packages provide a MinGW-compatible version of this library, enabling developers to utilize Expat's capabilities in Windows environments. However, the library has recently been identified as vulnerable to a security issue that allows attackers to exploit memory allocation processes, potentially leading to denial of service or other malicious activities.

Vulnerability Detail

The vulnerability, identified as CVE-2025-59375, stems from the libexpat component of the Expat library. It allows attackers to trigger large dynamic memory allocations by submitting a small XML document for parsing. This can lead to excessive memory consumption, resulting in application crashes or denial of service. The issue is particularly concerning as it can be exploited with minimal input, making it a low-barrier attack vector for malicious actors.

How To Fix

Minimum fixed version

2.5.0-1.el8_10

This is the first release that contains the fix.

sudo dnf update mingw32-expat

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid processing untrusted XML documents or limit the size of XML inputs to mitigate the risk of exploitation until the package is updated.

Conclusion

The mingw-expat library has a critical vulnerability that can be exploited through memory allocation issues. It is crucial for users to update to the latest patched version to ensure the security and stability of their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for mingw32-expat →

Share this vulnerability

FAQ

CVE-2025-59375 is a vulnerability in the Expat library that allows attackers to exploit memory allocation processes through small XML documents.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to excessive memory consumption, application crashes, or denial of service, affecting the stability of applications using the Expat library.

Yes, a patch is available in version 2.5.0-1.el8_10 of the mingw32-expat and mingw64-expat packages.

If immediate updates are not possible, avoid processing untrusted XML documents or limit the size of XML inputs as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for mingw32-expat.

How To Fix

Minimum fixed version

2.5.0-1.el8_10

This is the first release that contains the fix.

sudo dnf update mingw32-expat

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback