CVE-2025-7519
polkit: XML policy file with a large number of nested elements may lead to out-of-bounds write
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · July 11, 2025
Updated · September 1, 2026
Description
A flaw was found in polkit. When processing an XML policy with 32 or more nested elements in depth, an out-of-bounds write can be triggered. This issue can lead to a crash or other unexpected behavior, and arbitrary code execution is not discarded. To exploit this flaw, a high-privilege account is needed as it's required to place the malicious policy file properly.
Statement
This vulnerability was rated with a Moderate severity by the Red Hat Product Security team. Although it may eventually lead to code execution, for an attacker to exploit this vulnerability by using a malicious XML policy file, they must have a high-privileged account on the system. This happens because the directories that hold Polkit's policy files are owned by the root user, drastically reducing the attack surface for this vulnerability.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
There's no known mitigation to this vulnerability other than avoiding the implementation of unknown or untrusted polkit policy files to the system.
CVSS / CWE
CVSS 3.1 · 6.7CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CWE-787 · Out-of-bounds Write