Integer overflow in trivy - CVE-2026-107891

 

Integer overflow in trivy - CVE-2026-107891

Published: December 1, 2026


Vulnerability identifier: #VU171573
CSH Severity: High
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-107891
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

trivy
openEuler
musl-libc-static
musl-libc
musl-gcc
musl-devel
musl-debugsource
musl-debuginfo
musl

How to mitigate CVE-2026-107891

Install security update from vendor's website.

trivy - update to 0.76.2
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

External References

Related Security Bulletins