{"schemaVersion":4,"id":"CVE-2026-138287","aliases":[],"status":"published","duplicateOf":null,"title":"D-Link DSL-2640B Endpoint portmapcfg.cmd cgiPortMapQrySwitch os command injection","description":"A flaw has been found in D-Link DSL-2640B 3.0.6.0.41. The impacted element is the function cgiPortMapQrySwitch of the file portmapcfg.cmd of the component Endpoint. This manipulation of the argument pmapCfgName causes os command injection. The attack can be initiated remotely. The exploit has been published and may be used.","dates":{"published":"2026-11-29T16:30:18.639Z","modified":"2026-11-30T20:11:27.894Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"critical","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":10,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":10,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"CVE.org","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C/E:POC/RL:ND/RC:C","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03032,"percentile":0.87919,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-30T00:00:00.000Z","score":0.03032,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.03032,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.03032,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.03032,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.03032,"percentile":0.87919}],"last30":[{"date":"2026-11-30T00:00:00.000Z","score":0.03032,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.03032,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.03032,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.03032,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.03032,"percentile":0.87919}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_DUJIAODE_DSL2640B","name":"Dsl2640B","source":"github","url":"https://github.com/dujiaode/DSL2640B/tree/main/01-portmapcfg-pmapcfgname-cmd-injection","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command","description":"The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"d-link","product":"dsl-2640b","name":"DSL-2640B","label":"dsl-2640b","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.0.6.0.41","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.0.6.0.41","startInclusive":true,"end":"3.0.6.0.41","endInclusive":true}}],"versionsText":"3.0.6.0.41","eol":null,"hubHref":"/vendor/d-link/dsl-2640b"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://vuldb.com/vuln/445112","label":"vuldb.com/vuln/445112","hostname":"vuldb.com","tags":["VDB Entry","Technical Description"]},{"url":"https://vuldb.com/vuln/445112/cti","label":"vuldb.com/vuln/445112/cti","hostname":"vuldb.com","tags":["Signature","Permissions Required"]},{"url":"https://vuldb.com/cve/CVE-2026-138287","label":"vuldb.com/cve/CVE-2026-138287","hostname":"vuldb.com","tags":["Third Party Advisory"]},{"url":"https://vuldb.com/submit/1074577","label":"vuldb.com/submit/1074577","hostname":"vuldb.com","tags":["Third Party Advisory"]},{"url":"https://github.com/dujiaode/DSL2640B/tree/main/01-portmapcfg-pmapcfgname-cmd-injection","label":"github.com/dujiaode/DSL2640B/tree/main/01-portmapcfg-pmapcfgname-cmd-injection","hostname":"github.com","tags":["Exploit"]},{"url":"https://www.dlink.com/","label":"www.dlink.com","hostname":"www.dlink.com","tags":["Product"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-29T16:30:18.639Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-30T20:11:27.894Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"public-exploit","reason":"Public exploit (GitHub, Date unknown)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,1,3,100],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.03032,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-30T20:11:27.894Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":10,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-11-30T20:11:27.894Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C","version":"3.1"},{"type":"cvss","source":"cve.org","date":"2026-11-30T20:11:27.894Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":10,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C","version":"3.0"},{"type":"cvss","source":"cve.org","date":"2026-11-30T20:11:27.894Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C/E:POC/RL:ND/RC:C","version":"2.0"},{"type":"cvss","source":"nvd","date":"2026-11-30T20:11:27.894Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/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","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-11-30T20:11:27.894Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-11-30T20:11:27.894Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","version":"2.0"},{"type":"adp","source":"cisa-adp","date":"2026-11-30T20:11:18.322Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"},{"type":"exploit","source":"github","date":null,"status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"poc","verified":false}],"epss":{"value":0.03032,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T09:13:46.814Z","stale":false,"partial":false}}