Security Advisory

CVE-2023-4911: glibc Looney Tunables ld.so Overflow

Last updated:
  • CVE-2023-4911

CVE-2023-4911, called Looney Tunables, is a buffer overflow in the glibc dynamic loader's handling of the GLIBC_TUNABLES environment variable that lets a local user become root through any setuid program. It was introduced in glibc 2.34, NVD scores it 7.8, CISA lists it as exploited, and Siemens names affected SIMATIC S7-1500 MFP firmware.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

63.8%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2023-4911 · Source: NVD

Affected components

ComponentCPEVersion range
GNU C Library (glibc) dynamic loader ld.socpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*NVD: 2.34 up to (excluding) 2.39; branch fixes 2.34-423, 2.35-274, 2.36-118, 2.37-45 and 2.38-27 (GLIBC-SA-2023-0004)
Siemens SIMATIC S7-1500 TM MFP, GNU/Linux subsystem—before V1.1; fixed in V1.1 (Siemens ProductCERT SSA-794697)
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP and SIPLUS S7-1500 CPU 1518-4 PN/DP MFP, GNU/Linux subsystem—firmware V3.1.5; no fix for V3.1.5, which Siemens no longer maintains; V3.1.6 is covered by SSA-019113, which does not list this CVE (Siemens ProductCERT SSA-082556)

What does this mean for affected devices?

CVE-2023-4911 sits in ld.so, the dynamic loader that starts every dynamically linked program. The glibc advisory GLIBC-SA-2023-0004 states that "if a tunable of the form NAME=NAME=VAL is passed in the environment of a setuid program and NAME is valid, it may result in a buffer overflow, which could be exploited to achieve escalated privileges", and that the flaw "was introduced in glibc 2.34". It lists Fix-Commits for 2.39 and for each maintained branch: 2.34-423, 2.35-274, 2.36-118, 2.37-45 and 2.38-27. A branch tag such as 2.36-118 is a commit on the release branch, so a device built from the plain 2.36 tarball stays vulnerable unless its build tracks the branch or carries that commit.

Qualys found the bug and named it. Its advisory traces it to commit 2ed18c of April 2021, reports "full root privileges on the default installations of Fedora 37 and 38, Ubuntu 22.04 and 23.04, Debian 12 and 13", names musl-based Alpine Linux as a notable exception, and calls the overflow "easily exploitable". NVD scores it 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, CWE-787, and its CPE range is glibc 2.34 up to, but excluding, 2.39 (NVD).

The device angle comes from Siemens ProductCERT. SSA-794697 lists CVE-2023-4911 for the GNU/Linux subsystem of the SIMATIC S7-1500 TM MFP before V1.1, fixed in V1.1, with the mitigation to only build and run applications from trusted sources. SSA-082556, first published 2025-06-10 and last updated 2026-10-13, lists it for the GNU/Linux subsystem of firmware V3.1.5 of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP, including the SIPLUS variant. For V3.1.5 Siemens states that no fix is available and that the version is no longer maintained, and it recommends limiting the interactive shell of the subsystem to trusted personnel. V3.1.6 is covered by SSA-019113, which does not list CVE-2023-4911.

CISA added CVE-2023-4911 to the KEV catalog on 2023-11-21 with a due date of 2023-12-12, and it is listed as of 2026-11-16 (catalog version 2026.11.13); it is the only GNU C Library entry in that catalog. FIRST EPSS gives it 0.638, the 99.2nd percentile, in the 2026-11-15 dataset (CISA KEV, FIRST EPSS).

On a device, the attack needs two things: a local foothold and a setuid binary. List every setuid file in the image and every way to get a shell, including a web command injection, and fix any glibc 2.34 to 2.38 build that has both. Our glibc, uClibc and musl guide shows how to read the libc version from an image and check a branch Fix-Commit, and the related syslog flaw CVE-2023-6246 hits the same Siemens firmware.

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

  • NAME=NAME=VAL tunable in a setuid program's environment may overflow a buffer and escalate privileges; introduced in 2.34; Fix-Commits 2.39, 2.34-423, 2.35-274, 2.36-118, 2.37-45, 2.38-27. — glibc GLIBC-SA-2023-0004
  • Introduced by commit 2ed18c (April 2021); full root on default Fedora 37/38, Ubuntu 22.04/23.04, Debian 12/13; Alpine (musl) an exception; easily exploitable. — Qualys Security Advisory
  • NVD Primary CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), CWE-787; CPE glibc 2.34 to before 2.39. — NVD
  • SIMATIC S7-1500 TM MFP GNU/Linux subsystem before V1.1 affected, fixed in V1.1. — Siemens ProductCERT SSA-794697
  • S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.5 (incl. SIPLUS) affected, no fix available, V3.1.5 no longer maintained; mitigation: limit the subsystem shell to trusted personnel. SSA dated 2025-06-10, updated 2026-10-13. — Siemens ProductCERT SSA-082556
  • SSA-019113 for V3.1.6 does not list CVE-2023-4911. — Siemens ProductCERT SSA-019113
  • In KEV since 2023-11-21 (due 2023-12-12); listed as of 2026-11-16, catalog 2026.11.13; only GNU C Library entry. — CISA KEV
  • EPSS 0.63769 (99.2nd percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. glibc GLIBC-SA-2023-0004: tunables local privilege escalation
  3. Qualys Security Advisory: Looney Tunables (CVE-2023-4911)
  4. Siemens ProductCERT SSA-794697: SIMATIC S7-1500 TM MFP GNU/Linux subsystem
  5. Siemens ProductCERT SSA-082556: SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.5
  6. Siemens ProductCERT SSA-019113: SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.6
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

Can CVE-2023-4911 be exploited remotely?

Not on its own. The attacker must already run commands on the device and then start a setuid program with a crafted GLIBC_TUNABLES variable; NVD's vector is local with low privileges. A remote bug that gives a shell, such as a command injection in the web interface, supplies that foothold (per GLIBC-SA-2023-0004 and NVD).

Which glibc versions does CVE-2023-4911 affect?

Releases 2.34 to 2.38; 2.39 is fixed. Each maintained branch also has its own fix commit: 2.34-423, 2.35-274, 2.36-118, 2.37-45 and 2.38-27. A build from a release tarball needs that commit or a later release (per GLIBC-SA-2023-0004).

Which Siemens devices are affected by CVE-2023-4911?

The GNU/Linux subsystem of the SIMATIC S7-1500 TM MFP before V1.1, fixed in V1.1, and of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP firmware V3.1.5, including the SIPLUS variant, for which Siemens lists no fix and recommends moving off the unmaintained V3.1.5 (per Siemens SSA-794697 and SSA-082556).

Is CVE-2023-4911 exploited?

Yes. CISA added it to the KEV catalog on 2023-11-21, and it is listed as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.638, the 99.2nd percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).

Are musl-based devices affected by CVE-2023-4911?

No. The bug is in glibc's own loader, and Qualys names musl-based Alpine Linux as a notable exception. A device that ships musl or uClibc-ng has its own C library CVEs instead (per the Qualys advisory).