Security Advisory

CVE-2022-24805: Net-SNMP VACM INDEX Buffer Overflow

Last updated:
  • CVE-2022-24805

CVE-2022-24805 is a buffer overflow in Net-SNMP's snmpd, in the code that handles the INDEX of the NET-SNMP-VACM-MIB table: a user with only read-only SNMP credentials can trigger an out-of-bounds memory access. It affects Net-SNMP before 5.9.2, and because 5.9.2 was skipped, the fix ships in 5.9.3. NVD scores it 8.8 (High); GitHub, the CNA, scores it 6.5.

Vulnerability summary

CVSS base score

8.8

High severity

EPSS score (FIRST)

1.3%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2022-24805 · Source: NVD

Affected components

ComponentCPEVersion range
Net-SNMP snmpd (NET-SNMP-VACM-MIB)cpe:2.3:a:net-snmp:net-snmp:*:*:*:*:*:*:*:*before 5.9.2 (NVD); 5.9.2 was skipped, first fixed release 5.9.3 (Net-SNMP NEWS)
Debian net-snmp packagepkg:deb/debian/net-snmpbuster fixed in 5.7.3+dfsg-5+deb10u3 (DLA-3088-1); bullseye in 5.9+dfsg-4+deb11u1 (DSA-5209-1); unstable in 5.9.3+dfsg-1 (Debian security tracker)
Buildroot package/netsnmp—Bumped from 5.9 to 5.9.3 on 2022-11-25 (commit 83b43373); 2022.11, 2022.08.3 and 2022.02.8 carry 5.9.3; 2022.08.2 and 2022.02.7 carry 5.9
OpenWrt packages net-snmp—openwrt-22.03 and openwrt-23.05 build 5.9.1 with no backport of the 5.9.3 fixes; openwrt-24.10 builds 5.9.4; master moved to 5.9.4 on 2024-02-10 (as of 2026-11-19)
Juniper Junos OS and Junos OS Evolved—Listed in Juniper JSA107822 (2026-04 Security Bulletin, CVE-2022-24805 resolved in net-SNMP); fixed releases in the bulletin

What does this mean for affected devices?

CVE-2022-24805 is a buffer overflow in snmpd, the Net-SNMP agent. The CVE record says that before version 5.9.2 "a buffer overflow in the handling of the INDEX of NET-SNMP-VACM-MIB can cause an out-of-bounds memory access" and that "a user with read-only credentials can exploit the issue." NVD gives a Primary score of 8.8, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, with CWE-120 (classic buffer overflow). GitHub, the CNA, scores it 6.5 with CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N and the same CWE. The ID was reserved on 2022-02-10, the fix was released in 2022, and the record was only published on 2024-04-16 (NVD, CVE record).

Who can trigger CVE-2022-24805 on a device?

Anyone who holds a read-only credential for the agent: an SNMPv1 or SNMPv2c read community, or an SNMPv3 user with read access to the Net-SNMP VACM table. That is a lower bar than it sounds on embedded products, where a read community is often a factory default, printed in a manual or shared with every monitoring system on the network. The Net-SNMP NEWS file groups it with CVE-2022-24809 (a NULL pointer dereference via GET-NEXT to nsVacmAccessTable) as the two 2022 bugs reachable with read-only credentials; the other four, CVE-2022-24806, -24807, -24808 and -24810, need read-write credentials. NEWS credits Yu Zhang and Nanyu Zhong of VARAS@IIE for the reports and Arista Networks for the fixes. The fix, commit 67ebb43e of 2021-06-30, adds bounds checks in nsVacmAccessTable.c, vacm_vars.c, nsLogging.c and usmUser.c.

Which Net-SNMP versions, firmware builds and devices are affected?

NVD marks Net-SNMP before 5.9.2 as vulnerable, and also lists Fedora 36, Debian 10 and 11 and Red Hat Enterprise Linux 9 builds. In practice the first release with the fix is 5.9.3: NEWS lists the six CVEs under 5.9.3 and says 5.9.2 was "skipped due to a last minute library versioning found bug -- use 5.9.3 instead."

  • Debian fixed buster in 5.7.3+dfsg-5+deb10u3 (DLA-3088-1), bullseye in 5.9+dfsg-4+deb11u1 (DSA-5209-1) and unstable in 5.9.3+dfsg-1; bookworm and trixie ship fixed packages (Debian security tracker). These backports keep the old version number, so a version string alone does not settle it.
  • Buildroot moved package/netsnmp from 5.9 to 5.9.3 in a "security bump" committed on 2022-11-25 that names all six CVEs (Buildroot commit 83b43373). Release 2022.11 ships 5.9.3, as do 2022.08.3 and 2022.02.8; 2022.08.2 and 2022.02.7 still carry 5.9.
  • OpenWrt went from net-snmp 5.9.1 straight to 5.9.4 on 2024-02-10 (OpenWrt packages commit 13a237d9). As of 2026-11-19 the openwrt-24.10 feed builds 5.9.4 (Makefile), while the openwrt-23.05 Makefile still builds 5.9.1 (release 7) and openwrt-22.03 also builds 5.9.1; none of the patches in either of those branches is a backport of the 5.9.3 fixes. Routers built from those feeds with the snmpd package need a check.
  • Juniper published the 2026-04 bulletin JSA107822, "Junos OS and Junos OS Evolved: CVE-2022-24805 resolved in net-SNMP" (Juniper). HKCERT listed CVE-2022-24805 in its Juniper Junos OS bulletin of 2026-04-10 for Junos OS and Junos OS Evolved. The fixed Junos releases are in the Juniper bulletin, which needs a support portal login.

How do you fix CVE-2022-24805?

Update snmpd to Net-SNMP 5.9.3 or later, or to a distribution package with the backport (for example Debian bullseye 5.9+dfsg-4+deb11u1). On Buildroot that means 2022.11 or later, 2022.08.3, or 2022.02.8 on the LTS line; on OpenWrt, 24.10 or later. For Junos devices, apply the release named in JSA107822. Moving to 5.9.3 also clears the five sibling CVEs. Where an update has to wait, NEWS gives the vendor mitigation: "use strong SNMPv3 credentials and do not share them. If you must use SNMPv1 or SNMPv2c, use a complex community string and enhance the protection by restricting access to a given IP address range." On a product, also remove default read communities and keep UDP 161 off untrusted networks. Our Net-SNMP and SNMP agent guide shows how to find the agent and its version in a firmware image; older images often also need the fixes for CVE-2020-15862 (EXTEND MIB root commands) and CVE-2018-18065 (an snmpd NULL pointer crash). For vendor SNMP stacks, compare CVE-2025-20352 in Cisco IOS and IOS XE.

Is CVE-2022-24805 exploited?

It is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18, 1,786 entries). CISA's SSVC entry of 2024-04-23 records exploitation as "none", automatable as "no" and technical impact as "partial". FIRST EPSS gives it 0.013, the 71.0th percentile, in the 2026-11-18 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD: before 5.9.2, buffer overflow in handling of the INDEX of NET-SNMP-VACM-MIB causes out-of-bounds memory access, exploitable with read-only credentials. NVD Primary CVSS v3.1 8.8 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; GitHub secondary 6.5 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N; CWE-120 (both); CPE net-snmp before 5.9.2 plus Fedora 36, Debian 10 and 11, RHEL 9.x; status Analyzed; published 2024-04-16. — NVD
  • CVE.org: CNA GitHub_M, state PUBLISHED, reserved 2022-02-10, published 2024-04-16; CVSS 3.1 6.5, CWE-120; CISA ADP SSVC (2024-04-23) exploitation none, automatable no, technical impact partial. — CVE.org
  • Net-SNMP NEWS, 5.9.3: CVE-2022-24805 and CVE-2022-24809 exploitable with read-only credentials; CVE-2022-24806, -24807, -24808, -24810 need read-write credentials; mitigation text on SNMPv3 credentials and community strings; credit Yu Zhang and Nanyu Zhong of VARAS@IIE, fixes by Arista Networks. 5.9.2 skipped due to a library versioning bug, use 5.9.3. — Net-SNMP
  • Net-SNMP commit 67ebb43e (2021-06-30, Bill Fenner): fix bounds checking in NET-SNMP-AGENT-MIB, NET-SNMP-VACM-MIB, SNMP-VIEW-BASED-ACM-MIB, SNMP-USER-BASED-SM-MIB; files nsLogging.c, nsVacmAccessTable.c, vacm_vars.c, usmUser.c. — Net-SNMP
  • Debian: buster fixed 5.7.3+dfsg-5+deb10u3 (DLA-3088-1), bullseye 5.9+dfsg-4+deb11u1 (DSA-5209-1), unstable 5.9.3+dfsg-1 (bug 1016139); bookworm 5.9.3+dfsg-2+deb12u1 and trixie 5.9.4+dfsg-2+deb13u1 fixed. — Debian security tracker
  • Buildroot commit 83b43373 (2022-11-25) 'package/netsnmp: security bump to version 5.9.3' fixes CVE-2022-24805, -24806, -24807, -24808, -24809, -24810; netsnmp.mk NETSNMP_VERSION 5.9.3 in 2022.11, 2022.08.3, 2022.02.8; 5.9 in 2022.08.2 and 2022.02.7. — Buildroot
  • OpenWrt packages: net-snmp updated from 5.9.1 to 5.9.4 on 2024-02-10 (commit 13a237d9); as of 2026-11-19 openwrt-23.05 and openwrt-22.03 Makefiles set PKG_VERSION 5.9.1 with build/Debian/musl/pcre2 patches only; openwrt-24.10 sets 5.9.4; master 5.9.5.2. — OpenWrt
  • Juniper JSA107822 resolves to '2026-04 Security Bulletin: Junos OS and Junos OS Evolved: CVE-2022-24805 resolved in net-SNMP'; bulletin body requires a support portal login. — Juniper
  • HKCERT bulletin 'Juniper Junos OS Multiple Vulnerabilities' (2026-04-10) lists CVE-2022-24805 for Junos OS and Junos OS Evolved and links the Juniper net-SNMP bulletin. — HKCERT
  • CVE-2022-24805 is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18, 1,786 entries). — CISA KEV
  • FIRST EPSS 0.01299 (0.013), percentile 0.7101, dataset 2026-11-18. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CVE.org record CVE-2022-24805 (CNA: GitHub)
  3. Net-SNMP NEWS (5.9.3 security fixes)
  4. Net-SNMP commit 67ebb43e: bounds checking fixes in snmpd MIB handlers
  5. Debian security tracker: CVE-2022-24805
  6. Buildroot commit 83b43373: netsnmp security bump to 5.9.3
  7. OpenWrt packages commit 13a237d9: net-snmp update to 5.9.4
  8. OpenWrt packages openwrt-23.05 net-snmp Makefile
  9. OpenWrt packages openwrt-24.10 net-snmp Makefile
  10. Juniper JSA107822: Junos OS and Junos OS Evolved: CVE-2022-24805 resolved in net-SNMP
  11. HKCERT: Juniper Junos OS Multiple Vulnerabilities (2026-04-10)
  12. CISA KEV
  13. FIRST EPSS

Frequently asked questions

Does an attacker need write access to exploit CVE-2022-24805?

No. Read-only credentials are enough: an SNMPv1 or SNMPv2c read community, or an SNMPv3 user with read access. Net-SNMP groups it with CVE-2022-24809 as the two 2022 bugs reachable with read-only credentials, while CVE-2022-24806, -24807, -24808 and -24810 need read-write credentials (per the Net-SNMP NEWS file and the CVE record).

Which Net-SNMP version fixes CVE-2022-24805, 5.9.2 or 5.9.3?

5.9.3. The CVE record says 5.9.2 contains the patch, but Net-SNMP skipped 5.9.2 because of a last-minute library versioning bug and lists the fix under 5.9.3. Distributions also backported it, for example Debian bullseye 5.9+dfsg-4+deb11u1 and buster 5.7.3+dfsg-5+deb10u3 (per Net-SNMP NEWS, NVD and the Debian security tracker).

Which embedded build systems and devices ship the fix or list CVE-2022-24805?

Buildroot moved to Net-SNMP 5.9.3 on 2022-11-25, shipped in 2022.11, 2022.08.3 and 2022.02.8. OpenWrt 24.10 builds 5.9.4, while the 22.03 and 23.05 feeds still build 5.9.1 as of 2026-11-19. Juniper covers Junos OS and Junos OS Evolved in JSA107822 (per the Buildroot and OpenWrt package repositories, Juniper and HKCERT).

Why do NVD and GitHub give CVE-2022-24805 different scores?

NVD scores it 8.8 with high confidentiality, integrity and availability impact. GitHub, the CNA, scores it 6.5 with integrity impact only (C:N/I:H/A:N). Both use network access, low complexity and low privileges, which reflects the read-only credential, and both assign CWE-120 (per NVD and the CVE record).

Is CVE-2022-24805 exploited in the wild?

It is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18). CISA's SSVC entry records exploitation as none and automatable as no. FIRST EPSS gives it 0.013, the 71.0th percentile, in the 2026-11-18 dataset (per CISA KEV, CVE.org and FIRST EPSS).