REDHAT-BUG-2445770: Path Traversal
Unauthenticated Local Denial of Service (DoS) in
dnf5daemon-server
via path traversal in the D-Bus locale
configuration. By passing an invalid or malicious string (e.g., ../../../../../tmp/PWNED
) to the locale
key during opensession
, an unprivileged user forces the underlying libdnf5
library to throw a libdnf5::SystemError
when newlocale()
fails. Because ThreadsManager::setthreadlocale
does not catch this exception, it escapes the thread boundary, invoking std::terminate()
and causing the root-privileged daemon to abort with a core dump. Requirements to exploit: The attacker requires a local, unprivileged user account on the target system and access to the System D-Bus. No special permissions or user interactions are required.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
A local unprivileged user with access to the system D-Bus can trigger the denial of service. No special permissions or user interaction are required.
What is the impact of successful exploitation?
The root-privileged dnf5daemon-server aborts and produces a core dump after an uncaught libdnf5::SystemError reaches the thread boundary. This is a local denial of service.
What input triggers the failure?
The issue is triggered by supplying an invalid or malicious path-like string to the locale key during open_session, such as a traversal-style value. The resulting newlocale() failure raises an exception that is not caught by ThreadsManager::set_thread_locale.