Security Advisory

CVE-2012-2152: dhcpcd Stack Overflow in Advantech EKI

Last updated:
  • CVE-2012-2152

CVE-2012-2152 is a stack-based buffer overflow in the dhcpcd 3.2.3 DHCP client: a long packet can crash dhcpcd and possibly run code on the host. NVD rates it 7.5 under CVSS v2. CISA lists it in Advantech EKI-132x devices, together with Shellshock and Heartbleed, and says to install the latest firmware.

Vulnerability summary

CVSS base score

7.5

High severity

EPSS score (FIRST)

4.0%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2012-2152 · Source: NVD

Affected components

ComponentCPEVersion range
dhcpcdcpe:2.3:a:roy_marples:dhcpcd:3.2.3:*:*:*:*:*:*:*3.2.3 (NVD CPE); Debian fixed 1:3.2.3-5+squeeze1 (DSA-2498-1) and 1:3.2.3-11 in unstable
Advantech EKI-132x platform devices—All versions listed as known affected in CISA ICSA-15-344-01B (CSAF revision 2025-06-09); fix: update to the latest firmware

What does this mean for affected devices?

The CVE description reads: "Stack-based buffer overflow in the get_packet method in socket.c in dhcpcd 3.2.3 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a long packet." Red Hat assigned the record, which was published on 2012-07-25 after a CVE request on oss-security on 2012-05-02 (NVD, CVE record). dhcpcd is the DHCP client that gets an IP address for the device; it parses packets from the local network before any authentication.

Which devices are affected?

CISA's ICSA-15-344-01B, "Advantech EKI Vulnerabilities (Update B)", published as CSAF revision 2 of 2025-06-09, lists "Advantech EKI-132x platform devices" in all versions as known affected by four flaws in their firmware: this dhcpcd overflow, Shellshock in the bundled Bash (CVE-2014-6271), Heartbleed in the bundled OpenSSL (CVE-2014-0160) and an authentication bypass (CVE-2015-7938). On the software side, NVD's CPE names dhcpcd 3.2.3 only. Debian fixed it in 1:3.2.3-5+squeeze1 through DSA-2498-1 and in 1:3.2.3-11 for unstable, per the Debian security tracker.

How severe is CVE-2012-2152?

NVD's Primary score is CVSS v2 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P); NVD never added a CVSS v3 score to this 2012 record. CISA scores the EKI-132x instance at CVSS v3.0 7.3 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L). DHCP traffic stays on the local segment, so in practice the attacker needs a foothold on the same network as the gateway, or control of the DHCP server it talks to.

How do you fix CVE-2012-2152?

For EKI-132x devices, CISA's mitigation for all four flaws is the same: update to the latest firmware version from Advantech's support site (ICSA-15-344-01B CSAF). Where an update is not possible, keep the device off the internet and on a control network behind a firewall, isolated from business networks, as CISA's recommended practices say. On Linux systems that still ship dhcpcd 3.2.3, install the distribution's patched package.

The Advantech guide collects the EKI and other Advantech CVEs, and the memory corruption fix guide covers this class.

Is CVE-2012-2152 exploited?

It is not in the CISA KEV catalog as of 2026-11-22 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS gives it 0.03996, the 90.8th percentile, in the 2026-11-21 dataset (CISA KEV, FIRST EPSS). EPSS predicts exploitation activity for the CVE across all systems, not for EKI-132x devices in particular.

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 (read 2026-11-22): status Modified; published 2012-07-25; NVD Primary CVSS v2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P; no CVSS v3 metric; CWE-119 (NVD Primary); CPE roy_marples:dhcpcd 3.2.3. — NVD
  • CISA ICSA-15-344-01B CSAF 'Advantech EKI Vulnerabilities (Update B)' (revision 2, CSAF conversion 2025-06-09, read 2026-11-22): product 'Advantech EKI-132x platform devices: vers:all/*' known affected by CVE-2014-6271 (10.0), CVE-2014-0160 (7.5), CVE-2012-2152 (CWE-119, CVSS v3.0 7.3 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L) and CVE-2015-7938 (9.8); mitigation for each: update to the latest version (Advantech EKI-132* firmware search). — CISA ICS (CSAF)
  • CVE record (read 2026-11-22): state PUBLISHED, CNA redhat, published 2012-07-25. — CVE.org
  • Debian security tracker (read 2026-11-22): dhcpcd fixed in squeeze 1:3.2.3-5+squeeze1 (DSA-2498-1) and unstable 1:3.2.3-11 (Debian bug 671265); note links the oss-security post of 2012-05-02. — Debian
  • oss-security 2012-05-02: 'CVE Request: dhcpcd 3.2.3 remote stack overflow / denial of service'. — oss-security
  • Not in the CISA KEV catalog, version 2026.11.20 (1,790 entries, released 2026-11-20), checked 2026-11-22. — CISA KEV
  • EPSS 0.03996, percentile 0.90775, dataset 2026-11-21, read 2026-11-22. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CISA ICS Advisory ICSA-15-344-01B: Advantech EKI Vulnerabilities (Update B)
  3. CISA CSAF file icsa-15-344-01b.json
  4. Debian security tracker: CVE-2012-2152
  5. Debian DSA-2498-1: dhcpcd
  6. oss-security: CVE request for dhcpcd 3.2.3
  7. CVE.org record CVE-2012-2152 (CNA: Red Hat)
  8. CISA KEV
  9. FIRST EPSS

Frequently asked questions

Which Advantech devices does CVE-2012-2152 affect?

CISA advisory ICSA-15-344-01B lists Advantech EKI-132x platform devices, all versions, as known affected. The same advisory lists Shellshock, Heartbleed and the authentication bypass CVE-2015-7938 for those devices.

How do I fix CVE-2012-2152 on an EKI-132x?

CISA's mitigation is to update to the latest firmware from Advantech's support site. Until then, CISA's recommended practices apply: keep the device off the internet, behind a firewall and isolated from business networks.

Why does NVD show only a CVSS v2 score?

The record dates from 2012, before CVSS v3, and NVD never re-scored it. NVD's Primary score is v2 7.5; CISA scores the EKI-132x instance at CVSS v3.0 7.3.

Is CVE-2012-2152 known to be exploited?

It is not in the CISA KEV catalog as of 2026-11-22 (version 2026.11.20). EPSS was 0.03996, the 90.8th percentile, in the 2026-11-21 dataset.