Security Advisory

CVE-2018-18065: Net-SNMP snmpd NULL Pointer Crash

Last updated:
  • CVE-2018-18065

CVE-2018-18065 is a NULL pointer dereference in the Net-SNMP agent: anyone who knows a community string can crash snmpd before 5.8 with one crafted UDP packet. NVD scores it 6.5, and Siemens lists 19 industrial products, including SCALANCE S-600 firewalls and SIMATIC CP communication processors, some of which have no fix.

Vulnerability summary

CVSS base score

6.5

Medium severity

EPSS score (FIRST)

17.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2018-18065 · Source: NVD

Affected components

ComponentCPEVersion range
Net-SNMP snmpdcpe:2.3:a:net-snmp:net-snmp:*:*:*:*:*:*:*:*NVD: before 5.8; the commit NVD references, 7ffb8e2, is in 5.8 and not in 5.7.3
Siemens SCALANCE S602, S612, S623 and S627-2M—before V4.1; V4.1 via Siemens support, or migrate to SCALANCE SC-600 (Siemens ProductCERT SSA-978220)
Siemens SIMATIC CP 443-1, CP 443-1 Advanced and SIPLUS NET variants—before V3.3; fixed in V3.3 (SSA-978220)
Siemens SIMATIC CP 343-1 Advanced, CP 443-1 OPC UA and SIPLUS NET CP 343-1 Advanced—all versions; Siemens lists no fix (SSA-978220)
Siemens IE/PB Link PN IO, TIM 1531 IRC, SIMATIC CP 1623, CP 1626 and CP 1628 (and SIPLUS variants)—IE/PB Link PN IO before V4.0.1; TIM 1531 IRC before V2.0; CP 1626 before V1.1.1; CP 1623/1628 fixed via SIMATIC NET PC Software (SSA-978220)

What does this mean for affected devices?

NVD describes CVE-2018-18065 as a NULL pointer bug in _set_key in agent/helpers/table_container.c of Net-SNMP before 5.8 that "can be used by an authenticated attacker to remotely cause the instance to crash via a crafted UDP packet". It scores it 6.5, vector CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, CWE-476 (NVD). The researcher's write-up, dated 2018-10-08, found it while testing Net-SNMP 5.7.3 and notes that it is remotely exploitable "only with knowledge of the community string (in this case "public")". In SNMPv1 and v2c the community string is the only credential, so a default public community makes this effectively unauthenticated.

The fix NVD references is commit 7ffb8e2, dated 2016-10-06 and titled "snmpd crashes when receiving a GetNext PDU with multiple Varbinds". It is in the v5.8 tag of July 2018 and not in v5.7.3, which matches NVD's "before 5.8" range. A device that still ships 5.7.3 or older therefore carries this bug unless the vendor backported the commit.

Siemens ProductCERT SSA-978220, first published 2020-02-11 and last updated to V9 on 2023-04-11, lists this CVE with CVE-2015-5621 for 19 industrial products, attacked through UDP port 161. Fixes: SCALANCE S602, S612, S623 and S627-2M firewalls before V4.1 (via Siemens support, or migration to SCALANCE SC-600), SIMATIC CP 443-1 and CP 443-1 Advanced before V3.3, IE/PB Link PN IO before V4.0.1, TIM 1531 IRC before V2.0, and CP 1626 before V1.1.1, plus the SIPLUS variants. For SIMATIC CP 343-1 Advanced, CP 443-1 OPC UA and SIPLUS NET CP 343-1 Advanced, Siemens lists no fix. Its mitigation is direct: "disabling SNMP fully mitigates the vulnerability"; otherwise protect access to port 161/udp. CISA republished it as ICSA-20-042-02 (CSAF).

CVE-2018-18065 is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13); FIRST EPSS gives it 0.175, the 97.2nd percentile, in the 2026-11-15 dataset (CISA KEV, FIRST EPSS).

Our SNMP agent vulnerabilities guide shows how to find the Net-SNMP version and community strings in a firmware image, and the memory corruption fix guide covers the parser bug class. CVE-2017-6736 is the Cisco IOS SNMP overflow that also needs only a read-only community.

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

  • NULL pointer in _set_key, agent/helpers/table_container.c, Net-SNMP before 5.8; authenticated attacker crashes snmpd with crafted UDP packet; NVD Primary CVSS 3.0 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), CWE-476; CPE before 5.8. — NVD
  • Found in Net-SNMP 5.7.3; remotely exploitable only with knowledge of the community string (public in the test). — dumpco.re researcher write-up, 2018-10-08
  • Commit 7ffb8e2 (2016-10-06) 'snmpd crashes when receiving a GetNext PDU with multiple Varbinds'; contained in tag v5.8 (2018-07-16), not in v5.7.3 (GitHub compare). — Net-SNMP commit 7ffb8e2
  • 19 Siemens products listed with CVE-2015-5621; fixes per product; no fix for CP 343-1 Advanced, CP 443-1 OPC UA, SIPLUS NET CP 343-1 Advanced; disabling SNMP fully mitigates; V9 2023-04-11. — Siemens ProductCERT SSA-978220
  • CISA republication of SSA-978220. — CISA ICSA-20-042-02 (CSAF)
  • Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.17504 (97.2nd percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Siemens ProductCERT SSA-978220: denial of service over SNMP in multiple industrial products
  3. CISA ICSA-20-042-02: Siemens industrial products SNMP (CSAF)
  4. dumpco.re: Net-SNMP 5.7.3 remote DoS
  5. Net-SNMP commit 7ffb8e2: snmpd crash on GetNext PDU with multiple varbinds
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Does CVE-2018-18065 need credentials?

It needs a valid community string, which NVD's vector records as low privileges. On a device that still answers to the default public community, that is no real barrier (per NVD and the researcher's write-up).

Which Net-SNMP version fixes CVE-2018-18065?

Version 5.8. NVD lists all versions before 5.8, and the commit NVD references, 7ffb8e2, is in the v5.8 tag but not in v5.7.3 (per NVD and the Net-SNMP repository).

Which Siemens products are affected by CVE-2018-18065?

Nineteen, including SCALANCE S602, S612, S623 and S627-2M firewalls before V4.1, SIMATIC CP 443-1 before V3.3, IE/PB Link PN IO before V4.0.1 and TIM 1531 IRC before V2.0. CP 343-1 Advanced and CP 443-1 OPC UA have no fix; Siemens says disabling SNMP fully mitigates (per Siemens SSA-978220).

Is CVE-2018-18065 exploited?

It is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.175, the 97.2nd percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).