REDHAT-BUG-2567426: High severity Fedora dnf5daemon-server vulnerability
A flaw was found in dnf5daemon-server. Multiple unauthenticated D-Bus methods (Rpm.list, Rpm.listfd, and Rpm.install/upgrade/downgrade/reinstall followed by Goal.resolve) pass caller-controlled patterns into libdnf5 addcmdlinepackages(). URL patterns (file://, http(s)://, ftp://) are downloaded as root into the world-readable /var/cache/dnf5daemon-server directory before RPM validation and without a download size quota. Non-URL patterns ending in .rpm are opened directly as root from attacker-controlled paths (for example symlinks or FIFOs under an attacker-owned directory). A local unprivileged user can disclose arbitrary content the root daemon can open, obtain capability-gated /proc data such as real /proc/kallsyms addresses, fetch remote URLs as root into a world-readable cache, and exhaust disk space via unbounded downloads.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
A local unprivileged user can exploit the affected unauthenticated D-Bus methods. Exploitation requires access to the local D-Bus interface exposed by dnf5daemon-server; no authentication is required for the listed methods.
What can an attacker do with this flaw?
An attacker can cause the root daemon to open attacker-selected local .rpm paths, including symlinks or FIFOs, potentially disclosing content readable by root. They can also make the daemon download file://, HTTP(S), or FTP URLs as root into a world-readable cache and can consume disk space through downloads with no size quota.
Which D-Bus operations are involved?
The affected methods are Rpm.list, Rpm.list_fd, and Rpm.install, Rpm.upgrade, Rpm.downgrade, or Rpm.reinstall when followed by Goal.resolve. URL handling occurs through caller-controlled patterns passed to libdnf5 add_cmdline_packages().
How could an administrator identify evidence of exploitation?
Inspect /var/cache/dnf5daemon-server for unexpected downloaded files, especially files corresponding to URL-based package patterns. Also investigate unusual disk consumption and D-Bus activity invoking the listed Rpm methods with URL inputs or local paths ending in .rpm.