CVE-2024-4582
Faraday GM8181/GM828x NTP Service os command injection
Check your servers for CVE-2024-4582
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-4582 affects gm8181, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
A vulnerability classified as critical has been found in Faraday GM8181 and GM828x up to 20240429. Affected is an unknown function of the component NTP Service. The manipulation of the argument ntp_srv leads to os command injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-263304.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- 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
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- 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
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
AV:N/AC:L/Au:N/C:P/I:P/A:P
- Attack vector
- network: an attacker can reach the vulnerable part over the network
- Attack complexity
- low
- Authentication
- none: the attacker does not need to log in
- Impact
- confidentiality partial, integrity partial, availability partial
Exploitation
EPSS 2.61%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 86.1% of all scored CVEs. Scores of 29 Nov 2026.
The assessment of CISA (SSVC, 7 May 2024):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of gm8181 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 gm8181
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-4582 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-4582RHEL, Rocky, Alma, Fedora
rpm -q gm8181
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-4582Alpine
apk list --installed | grep -i gm8181With 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-4582
trivy image --scanners vuln IMAGE | grep CVE-2024-4582
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
- Submit #324393 | Faraday Technology DVR GM828x, GM8181 OS Command Injection vuldb.com · third party advisory
Exploits and proof of concept
- https://file.notion.so/f/f/3f67e7ef-2ba8-446a-9721-f87d0baa1695/fa61d774-823d-4516-8ff3-73c310ff7801/command_injection_submit.py?id=6d18aced-daaa-4e52-a0e8-9d1c5e00acee&table=block&spaceId=3f67e7ef-2ba8-446a-9721-f87d0baa1695&expirationTimestamp=171514800 file.notion.so · broken link, exploit
Other references
- VDB-263304 | Faraday GM8181/GM828x NTP Service os command injection vuldb.com · vdb entry, technical description
- VDB-263304 | CTI Indicators (IOB, IOC, TTP, IOA) vuldb.com · signature, permissions required
- https://netsecfish.notion.site/Command-Injection-in-Faraday-Technology-GM828x-GM8181-DVR-1bc02d17ee5540a08273da2850e809c4?pvs=4 netsecfish.notion.site · related
Source: the record CVE-2024-4582 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