CVE-2020-15862 lets anyone with SNMP write access to the Net-SNMP EXTEND MIB define and run arbitrary commands as root, in Net-SNMP through 5.8. NVD scores it 7.8. Net-SNMP 5.9 makes the MIB read-only by default. OpenWrt 19.07 and 21.02 built 5.8 with the extend module and a localhost read-write community.
Vulnerability summary
CVSS base score
7.8
High severity
EPSS score (FIRST)
0.4%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2020-15862 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Net-SNMP snmpd (NET-SNMP-EXTEND-MIB) | cpe:2.3:a:net-snmp:net-snmp:*:*:*:*:*:*:*:* | NVD: before 5.8.1; fix commit 77f6c60 is in v5.9 and not in v5.8 |
| OpenWrt net-snmp package (snmpd) | — | openwrt-21.02 and openwrt-19.07 build 5.8, openwrt-18.06 builds 5.7.3, all with agent/extend; master moved to 5.9 on 2021-03-17 (OpenWrt packages) |
| Debian net-snmp | — | buster fixed in 5.7.3+dfsg-5+deb10u1 (DSA-4746-1); stretch in 5.7.3+dfsg-1.7+deb9u2 (DLA-2299-1) |
What does this mean for affected devices?
CVE-2020-15862 is a privilege flaw in the Net-SNMP agent's EXTEND MIB. NVD's description reads: "Net-SNMP through 5.8 has Improper Privilege Management because SNMP WRITE access to the EXTEND MIB provides the ability to run arbitrary commands as root." NVD scores it 7.8 (high), vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, with CWE-269, and its configuration marks Net-SNMP versions before 5.8.1 as vulnerable (NVD).
How does SNMP write access become root?
The EXTEND MIB (NET-SNMP-EXTEND-MIB) lets snmpd run a configured program and return its output. Before the fix, its configuration table also accepted SET requests, so anyone with write access to that table could define a new command and have the agent run it. NVD and the Debian Security Tracker both reference Debian bug #965166 as the report behind the CVE.
The upstream fix commit 77f6c60, dated 2020-07-23 and titled "make the extend mib read-only by default", adds a compile-time switch, ENABLE_EXTEND_WRITE_ACCESS, set to 0. Its comment calls the MIB "potentially dangerous to turn on by default, since it allows arbitrary commands to be set by anyone with SNMP WRITE access to the MIB table." The commit is in the v5.9 tag of 2020-08-14 and not in v5.8. The Debian Security Tracker notes that upstream first disabled the EXTEND MIB by default, then reverted that change and made the MIB read-only instead. Debian fixed buster in 5.7.3+dfsg-5+deb10u1 (DSA-4746-1) and stretch in 5.7.3+dfsg-1.7+deb9u2 (DLA-2299-1), so a 5.7.3 version string alone does not prove a device is affected.
Why does it matter in router firmware?
OpenWrt shows how this reaches embedded devices. Its package tree enabled the agent/extend MIB in 2017, and the openwrt-21.02 net-snmp Makefile builds Net-SNMP 5.8 with agent/extend in its included MIB modules and no backported patch for this CVE; the 19.07 branch also builds 5.8, and 18.06 builds 5.7.3. The default snmpd configuration on that branch defines a private community from localhost whose access entry has write all over the whole tree from OID .1. On such a build, any local process that can send SNMP to the loopback address with that well-known string holds exactly the write access NVD describes. The branch's init script starts snmpd without a user-switch option. OpenWrt's master branch moved to Net-SNMP 5.9 on 2021-03-17, after the 21.02 branch had been created, and OpenWrt-derived vendor SDKs inherit whichever version their branch carried.
The local attack vector fits the router case. A low-privileged service on the device, such as a web or helper daemon an attacker has already compromised, can use the localhost community to run commands as the snmpd user. A device that also grants write access to remote managers turns that into remote command execution for anyone holding the write credential.
Is CVE-2020-15862 exploited?
CVE-2020-15862 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.0038, the 32.4th percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS).
How do you fix it?
Upgrade to Net-SNMP 5.9 or later, where the EXTEND MIB is read-only, or install a vendor build that carries the backport. Where that is impossible, remove every rwcommunity, rwuser and write view the product does not need, including a localhost private community, and build without the extend module if no feature uses it. A build configured without SET support removes the write path entirely. Our SNMP agent vulnerabilities guide lists this CVE under write-access abuse and shows how to read a firmware image's snmpd.conf for write views and extend lines. The command injection fix guide covers the wider class of features that run commands on a device, and CVE-2018-18065 is another Net-SNMP agent flaw that pre-5.8 firmware carries.
Evidence
- Net-SNMP through 5.8; SNMP WRITE access to the EXTEND MIB runs arbitrary commands as root; CVSS 3.1 7.8 Primary ([email protected]), AV:L/PR:L; CWE-269; CPE before 5.8.1. — NVD
- Commit dated 2020-07-23, "make the extend mib read-only by default"; ENABLE_EXTEND_WRITE_ACCESS 0; comment on arbitrary commands set by anyone with write access. In v5.9 (tag 2020-08-14), not in v5.8 (GitHub compare, checked 2026-11-17). — Net-SNMP commit 77f6c60
- Debian bug referenced by NVD and the Debian Security Tracker for this CVE. — Debian bug #965166
- Buster fixed 5.7.3+dfsg-5+deb10u1 (DSA-4746-1); stretch 5.7.3+dfsg-1.7+deb9u2 (DLA-2299-1); upstream first disabled the MIB by default (c2b96ee), reverted that (4097a31), then made it read-only (77f6c60). — Debian Security Tracker
- openwrt-21.02 Makefile: PKG_VERSION 5.8, agent/extend in SNMP_MIB_MODULES_INCLUDED, no CVE patch in patches/; openwrt-19.07 5.8; openwrt-18.06 5.7.3; master bump to 5.9 in commit 4cdbe79, authored 2020-09-26 and committed to master 2021-03-17. — OpenWrt packages net-snmp Makefile
- Default config: com2sec private, source localhost, community private; private_access write all, view all from .1. — OpenWrt packages default snmpd configuration (openwrt-21.02)
- OpenWrt commit "net-snmp: enable agent/extend MIB" (2017). — OpenWrt packages commit ec6712f
- Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.00379 (32.4th percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories
Sources
- NVD
- Net-SNMP commit 77f6c60: make the extend mib read-only by default
- OpenWrt packages: net-snmp Makefile (openwrt-21.02)
- OpenWrt packages: default snmpd configuration (openwrt-21.02)
- OpenWrt packages commit ec6712f: net-snmp: enable agent/extend MIB
- Debian bug #965166: snmpd privilege escalation
- Debian Security Tracker
- CISA KEV
- FIRST EPSS
Frequently asked questions
Which Net-SNMP version fixes CVE-2020-15862?
Net-SNMP 5.9. The fix commit 77f6c60 makes the EXTEND MIB read-only by default and is in the v5.9 tag, not in v5.8; NVD marks versions before 5.8.1 as vulnerable. Distributions such as Debian backported it into 5.7.3 packages (per NVD, the Net-SNMP commit and the Debian Security Tracker).
Does an attacker need credentials for CVE-2020-15862?
Yes, SNMP write access to the EXTEND MIB. NVD scores it as a local, low-privilege attack. A well-known write community such as a localhost private string, as in OpenWrt 21.02 defaults, puts that access within reach of any local process (per NVD and OpenWrt).
Is OpenWrt affected by CVE-2020-15862?
The openwrt-21.02 and openwrt-19.07 package branches build Net-SNMP 5.8 with the agent/extend module and no backport for this CVE; master moved to Net-SNMP 5.9 on 2021-03-17 (per the OpenWrt packages repository, checked 2026-11-17).
Is CVE-2020-15862 in the CISA KEV catalog?
No, not as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.0038, the 32.4th percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?