CVE-2025-12385
Description
A flaw was found in the Qt Quick Text component of Qt. Due to missing validation of the width and height attributes in image tags, an attacker can trigger excessive resource allocation by supplying specially crafted content. This flaw allows an application to freeze or become unresponsive, resulting in a Denial of Service (DoS).
Statement
This vulnerability is rated as Important severity because an attacker can trigger an application hang or crash remotely without privileges, causing a complete loss of process availability. In typical Red Hat Enterprise Linux deployments, Qt Quick libraries are not used by default system daemons, restricting exposure to desktop environments or custom software processing external rich text. Applications are only vulnerable if they directly parse and render untrusted rich text or HTML-formatted inputs via the Qt Quick Text element.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
--- CME Mitigation Guidance (2026-10-20) ---
Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.
The highest-value action is to enforce strict upper bounds on parsed width and height attributes in rich text image tags before allocating memory in the Qt Quick Text component: upgrade to the fixed Qt5 Qtdeclarative/Mingw Qt5 Qtdeclarative/Qt6 Qtdeclarative/Mingw Qt6 Qtdeclarative builds, which validate and limit width and height attributes parsed from <img> tags in rich text, closing crafted rich text containing <img> tags with oversized width or height attributes. Until patched, this is a concern on applications rendering untrusted rich text using the Qt Quick Text component, so sanitize or reject untrusted rich text containing <img> tags before passing it to the Qt Quick Text component for rendering. As a compensating measure, monitor cgroup memory pressure metrics and out-of-memory events using memory.events and PSI to detect excessive resource allocations, impose process address space limits using ulimit or prlimit RLIMIT_AS to cap total memory allocation and prevent system-wide exhaustion, configure service watchdogs and automatic restart policies using systemd WatchdogSec and Restart to recover responsive operation, and restrict maximum memory consumption using cgroups v2 resource limits to isolate allocation spikes within the container or slice. These controls limit blast radius and contain exploitation, but they do not fix the underlying missing image dimension validation defect — apply the upstream patch to fully remediate.
Highest-impact CME: CME-1311 Input Size and Quantity Bounds Enforcement (high)
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.5 | N/A | N/A |
| Attack Vector | Network | N/A | N/A |
| Attack Complexity | Low | N/A | N/A |
| Privileges Required | None | N/A | N/A |
| User Interaction | None | N/A | N/A |
| Scope | Unchanged | N/A | N/A |
| Confidentiality | None | N/A | N/A |
| Integrity Impact | None | N/A | N/A |
| Availability Impact | High | N/A | N/A |
Vector
Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Understanding the Weakness (CWE)
Availability
Technical Impact: DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Resource Consumption (Other)
When allocating resources without limits, an attacker could prevent other systems, applications, or processes from accessing the same type of resource. It can be easy for an attacker to consume many resources by rapidly making many requests or causing larger resources to be used than is needed.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.