Heap-based buffer overflow in Qt - CVE-2025-3512

 

Heap-based buffer overflow in Qt - CVE-2025-3512

Published: July 1, 2025


Vulnerability identifier: #VU112075
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-3512
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in QTextMarkdownImporter when processing an incorrectly formatted markdown file. A remote attacker can pass specially crafted data to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Qt
Gentoo Linux
dev-qt/qtgui
dev-qt/qtnetwork
dev-qt/qtbase

How to mitigate CVE-2025-3512

Install updates from vendor's website.

Qt - addressed in versions 6.8.4, 6.9.0
dev-qt/qtgui - update to 5.15.12-r2
dev-qt/qtnetwork - update to 5.15.14-r1
dev-qt/qtbase - update to 6.8.3-r1

External References

Related Security Bulletins