{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-12987","id":"CVE-2024-12987","title":"DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection","description":"A vulnerability, which was classified as critical, was found in DrayTek Vigor2960 and Vigor300B 1.5.1.4. Affected is an unknown function of the file /cgi-bin/mainfunction.cgi/apmcfgupload of the component Web Management Interface. The manipulation of the argument session leads to os command injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and ma","descriptionLong":"A vulnerability, which was classified as critical, was found in DrayTek Vigor2960 and Vigor300B 1.5.1.4. Affected is an unknown function of the file /cgi-bin/mainfunction.cgi/apmcfgupload of the component Web Management Interface. The manipulation of the argument session 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. Upgrading to version 1.5.1.5 is able to address this issue. It is recommended to upgrade the affected component.","published":"2024-12-27T16:00:13.600Z","updated":"2026-06-17T07:00:55.297Z","reserved":"2024-12-27T08:03:52.921Z","status":"Analyzed","rejected":false,"assigner":"VulDB","metric":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"medium","source":"VulDB"},"metrics":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"medium","source":"VulDB"},{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"vuldb.com"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"VulDB"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"vuldb.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.0","score":7.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"VulDB"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"VulDB"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"vuldb.com"}],"rating":"medium","products":["DrayTek Vigor2960","DrayTek Vigor300B"],"affectedProducts":[{"vendor":"DrayTek","product":"Vigor2960","defaultStatus":null,"versions":[{"version":"1.5.1.4","status":"affected"}],"platforms":[]},{"vendor":"DrayTek","product":"Vigor300B","defaultStatus":null,"versions":[{"version":"1.5.1.4","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-78","CWE-77"],"aliases":[],"references":[{"url":"https://vuldb.com/?id.289380","tags":["vdb-entry","technical-description","Third Party Advisory","VDB Entry"]},{"url":"https://vuldb.com/?ctiid.289380","tags":["signature","permissions-required","Permissions Required","VDB Entry"]},{"url":"https://vuldb.com/?submit.468795","tags":["third-party-advisory","Third Party Advisory","VDB Entry"]},{"url":"https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4","tags":["exploit","Exploit","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987","tags":["government-resource","US Government Resource"]},{"url":"https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf","tags":["Not Applicable"]},{"url":"https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf","tags":["Release Notes"]},{"url":"https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf","tags":["Release Notes"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":true,"kevAdded":"2025-05-15","kevDue":"2025-06-05","kevEntry":{"cveID":"CVE-2024-12987","vendorProject":"DrayTek","product":"Vigor Routers","vulnerabilityName":"DrayTek Vigor Routers OS Command Injection Vulnerability","dateAdded":"2025-05-15","shortDescription":"DrayTek Vigor2960, Vigor300B, and Vigor3900 routers contain an OS command injection vulnerability due to an unknown function of the file /cgi-bin/mainfunction.cgi/apmcfgupload of the component web management interface.","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","dueDate":"2025-06-05","knownRansomwareCampaignUse":"Unknown","notes":"https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf ; https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf ; https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf ; https://nvd.nist.gov/vuln/detail/CVE-2024-12987","cwes":["CWE-78"]},"ssvc":{"exploitation":"active","automatable":"yes","technicalImpact":"total"},"epss":0.98223,"epssPercentile":0.99916,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-12987","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12987","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-12987","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2025-05-15"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-12987","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)"],"attention":null}