Integer overflow in trivy - CVE-2026-107891
Published: December 1, 2026
Vulnerability details
The vulnerability allows a remote attacker to potentially corrupt heap memory in an application that compiles untrusted regular expressions.
The vulnerability exists due to multiple integer overflows in musl libc's regcomp function when compiling an untrusted regular expression. A remote attacker can supply a regular expression that may cause incorrect allocation sizes and lead to out-of-bounds heap writes.
Affected software
openEuler
musl-libc-static
musl-libc
musl-gcc
musl-devel
musl-debugsource
musl-debuginfo
musl
How to mitigate CVE-2026-107891
musl-libc-static - addressed in versions 1.2.3-5, 1.2.4-7
musl-libc - addressed in versions 1.2.3-5, 1.2.4-7
musl-gcc - addressed in versions 1.2.3-5, 1.2.4-7
musl-devel - addressed in versions 1.2.3-5, 1.2.4-7
musl-debugsource - addressed in versions 1.2.3-5, 1.2.4-7
musl-debuginfo - addressed in versions 1.2.3-5, 1.2.4-7
musl - addressed in versions 1.2.3-5, 1.2.4-7