Heap-based Buffer Overflow in Qt6-base Package: CVE-2025-3512

qt6-base Updated 02 Oct 2025

Summary

11/04/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-3512: There is a Heap-based Buffer Overflow vulnerability in QTextMarkdownImporter. Affects qt6-base versions < 6.8.2+dfsg-6. Fixed in 6.8.2+dfsg-6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Qt6-base package is a core component of the Qt framework, which is widely used for developing cross-platform applications. It provides essential functionalities for handling graphical user interfaces, multimedia, and networking. The package is known for its robustness and flexibility, making it a popular choice among developers. However, it is susceptible to a heap-based buffer overflow vulnerability that can be exploited through improperly formatted markdown files.

Vulnerability Detail

The vulnerability identified as CVE-2025-3512 is a heap-based buffer overflow in the QTextMarkdownImporter component of the Qt6-base package. This issue arises when an incorrectly formatted markdown file is processed, leading to potential memory corruption and application crashes. The vulnerability affects versions 6.8.0 to 6.8.4 of the package, while versions up to 6.6.0 are confirmed to be unaffected. Exploiting this vulnerability could allow attackers to execute arbitrary code or disrupt application functionality.

How To Fix

Minimum fixed version

6.8.2+dfsg-6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade qt6-base

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid processing markdown files that are not properly formatted. Implement input validation to ensure that only correctly formatted markdown files are passed to the QTextMarkdownImporter.

Conclusion

The CVE-2025-3512 vulnerability in the Qt6-base package poses a serious risk due to its potential for exploitation through malformed markdown files. Users are advised to update to the latest patched version to mitigate this risk and ensure the security of their applications.

See every vulnerability recorded for qt6-base →

Share this vulnerability

FAQ

CVE-2025-3512 is a vulnerability in the Qt6-base package that allows for a heap-based buffer overflow when processing incorrectly formatted markdown files.

Versions 6.8.0 to 6.8.4 of the Qt6-base package are affected by this vulnerability. Versions up to 6.6.0 are not affected.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploiting this vulnerability could lead to memory corruption, application crashes, or even arbitrary code execution, posing a significant security risk.

Regularly update your packages to the latest versions, validate input files, and monitor for vulnerabilities using tools like Vulert.

Related vulnerabilities

Recent vulnerabilities recorded for qt6-base.

How To Fix

Minimum fixed version

6.8.2+dfsg-6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade qt6-base

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback