CVE-2018-5392mingw-w64 version 5.0.4 by default produces executables that opt in to ASLR, but are not…
mingw-w64 version 5.0.4 by default produces executables that opt in to ASLR, but are not compatible with ASLR. ASLR is an exploit mitigation technique used by modern Windows platforms. For ASLR to function, Windows executables must contain a relocations table. Despite containing the "Dynamic base" PE header, which indicates ASLR compatibility, Windows executables produced by mingw-w64 have the relocations table stripped from them by default. This means that executables produced by mingw-w64 are vulnerable to return-oriented programming (ROP) attacks. Windows executables generated by mingw-w64 claim to be ASLR compatible, but are not. Vulnerabilities in such executables are more easily exploitable as a result.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | mingw-w64 | Fix pending | UBUNTU-CVE-2018-5392 | |
| Ubuntu 26.04 | mingw-w64 | Under investigation | UBUNTU-CVE-2018-5392 | |
| Ubuntu 25.10 | mingw-w64 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2018-5392 | |
| Ubuntu 24.04 | mingw-w64 | Under investigation | UBUNTU-CVE-2018-5392 | |
| Ubuntu 22.04 | mingw-w64 | Under investigation | UBUNTU-CVE-2018-5392 | |
| Ubuntu 20.04 | mingw-w64 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2018-5392 | |
| Ubuntu 18.04 | mingw-w64 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2018-5392 | |
| Ubuntu 16.04 | mingw-w64 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2018-5392 | |
| Ubuntu 14.04 | mingw-w64 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2018-5392 | |
| Debian 14 | mingw-w64 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-5392 | |
| Debian 13 | mingw-w64 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-5392 | |
| Debian 12 | mingw-w64 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2018-5392 |
What the vendor says
As published in the CVE record by certcc, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- mingw-w64: affected: 5.0.4
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.