Description
Mingw-w64 version 5.0.3 and earlier, 5.0.4, 6.0.0 and 7.0.0 contains an Improper Null Termination (CWE-170) vulnerability in mingw-w64-crt (libc)->(v)snprintf that can result in The bug may be used to corrupt subsequent string functions. This attack appear to be exploitable via Depending on the usage, worst case: network.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mingw-w64 | 8.0.0-1 | — |
| Debian 13 | mingw-w64 | 8.0.0-1 | — |
| Debian 12 | mingw-w64 | 8.0.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mingw-w64 | No fix yet | — |
| Ubuntu 26.04 LTS | mingw-w64 | No fix yet | — |
| Ubuntu 25.10 | mingw-w64 | No fix yet | — |
| Ubuntu 24.04 LTS | mingw-w64 | No fix yet | — |
| Ubuntu 22.04 LTS | mingw-w64 | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | mingw-w64 | No fix yet | — |
| Ubuntu 18.04 LTS | mingw-w64 | No fix yet | — |
| Ubuntu 16.04 LTS | mingw-w64 | No fix yet | — |
| Ubuntu 14.04 LTS | mingw-w64 | No fix yet | — |
References
- https://sourceforge.net/p/mingw-w64/bugs/709/?limit=25#1d38/fefc/39aa
- https://sourceforge.net/p/mingw-w64/mingw-w64/ci/v5.x/tree/mingw-w64-crt/stdio/snprintf.c#l15
- https://sourceforge.net/p/mingw-w64/mingw-w64/ci/v5.x/tree/mingw-w64-crt/stdio/vsnprintf.c#l12
- https://raw.githubusercontent.com/distributedweaknessfiling/cvelist/master/2018/1000xxx/CVE-2018-1000101.json
- https://sourceforge.net/p/mingw-w64/bugs/709/