CVE-2024-47179
RSSHub's `docker-test-cont.yml` workflow is vulnerable to Artifact Poisoning which may lead to a full repository takeover.
Check your servers for CVE-2024-47179
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-47179 affects rsshub, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
RSSHub is an RSS network. Prior to commit 64e00e7, RSSHub's `docker-test-cont.yml` workflow is vulnerable to Artifact Poisoning, which could have lead to a full repository takeover. Downstream users of RSSHub are not vulnerable to this issue, and commit 64e00e7 fixed the underlying issue and made the repository no longer vulnerable. The `docker-test-cont.yml` workflow gets triggered when the `PR - Docker build test` workflow completes successfully. It then collects some information about the Pull Request that triggered the triggering workflow and set some labels depending on the PR body and sender. If the PR also contains a `routes` markdown block, it will set the `TEST_CONTINUE` environment variable to `true`. The workflow then downloads and extracts an artifact uploaded by the triggering workflow which is expected to contain a single `rsshub.tar.zst` file. However, prior to commit 64e00e7, it did not validate and the contents were extracted in the root of the workspace overriding any existing files. Since the contents of the artifact were not validated, it is possible for a malicious actor to send a Pull Request which uploads, not just the `rsshub.tar.zst` compressed docker image, but also a malicious `package.json` file with a script to run arbitrary code in the context of the privileged workflow. As of commit 64e00e7, this scenario has been addressed and the RSSHub repository is no longer vulnerable.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.74%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 55.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 26 Sep 2024):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-20 Improper Input Validation
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of rsshub and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i rsshub
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-47179 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-47179RHEL, Rocky, Alma, Fedora
rpm -q rsshub
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-47179Alpine
apk list --installed | grep -i rsshubWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-47179
trivy image --scanners vuln IMAGE | grep CVE-2024-47179
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/DIYgod/RSSHub/commit/64e00e743aba2a239508fea97825994e3d687ecc github.com
- https://codeql.github.com/codeql-query-help/javascript/js-actions-command-injection codeql.github.com
- https://github.com/DIYgod/RSSHub/actions/runs/10141104413/job/28037643579#step:1:17 github.com
- https://github.com/DIYgod/RSSHub/blob/e08733f94c81440d19ee6a5fd5e915e9a65395f5/.github/workflows/docker-test-cont.yml github.com
- https://securitylab.github.com/advisories/GHSL-2024-178_RSSHub securitylab.github.com
- https://securitylab.github.com/research/github-actions-preventing-pwn-requests securitylab.github.com
- https://securitylab.github.com/research/github-actions-untrusted-input securitylab.github.com
Source: the record CVE-2024-47179 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse