Bug 2567151
| Summary: | RCE on core Fedora infrastructure - Critical Security Vulnerability | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Robert DiNapoli <contact> |
| Component: | mirrorlist-server | Assignee: | Rust SIG <rust-sig> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 45 | CC: | adrian, decathorpe, ljavorsk, rust-sig |
| Target Milestone: | --- | Keywords: | Security, SecurityTracking |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-11-05 07:08:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Robert DiNapoli
2026-11-04 18:51:22 UTC
Thank you for the report. The finding is correct: run_rsync() in mirrormanager2/lib/sync.py builds the rsync command line by string concatenation and runs it with shell=True, and the crawler passes the host category URL, which a site administrator can set freely, into it. The form validators do not reject shell metacharacters. Two corrections to the impact assessment, and one to the filing: 1. The crawler does not run as root in either production deployment we know of. Fedora runs it as an OpenShift CronJob under a non-root UID (https://forge.fedoraproject.org/infra/ansible, roles/openshift-apps/mirrormanager/). RPM Fusion runs it in a container as a non-root user. utility/mirrormanager.cron in the upstream repository is an outdated example file and should be corrected as well. Code execution as the crawler user remains a real problem and needs to be fixed. 2. mirrormanager2 is not a Fedora package any more; it was retired. The component this bug is filed against, mirrorlist-server, is a separate Rust program that does not contain the affected code. There is no Fedora package to track; the fix belongs in the upstream repository at https://github.com/fedora-infra/mirrormanager2. Since you have already looked closely at the code, would you open a pull request against that repository? Replacing the shell=True call with an argument list (shlex.split() for the configured extra rsync parameters), adding a regression test, and changing the user in utility/mirrormanager.cron would cover it. Closing as this it the wrong component. Hi Robert, Lukas from Red Hat Product Security here, I've double checked all of our queues and I didn't find any email from you to secalert Can you please forward the email directly to me at ljavorsk so I can investigate why we didn't received the email? |