Security Advisory

CVE-2023-6246: glibc syslog() Heap Buffer Overflow

Last updated:
  • CVE-2023-6246

CVE-2023-6246 is a heap-based buffer overflow in glibc's syslog() code that a local user can trigger with a program name longer than 1024 bytes, and Qualys used it to get root on Fedora 38. It reached glibc 2.37 and the 2.36 branch, NVD scores it 7.8, and Siemens lists it for S7-1500 MFP firmware V3.1.5.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

4.8%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
GNU C Library (glibc) syslog() / vsyslog() (__vsyslog_internal)cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*NVD: 2.36 up to (excluding) 2.39. GLIBC-SA-2024-0001: vulnerable 2.37 and branch commit 2.36-16; fixed 2.39, 2.38-42, 2.37-57, 2.36-126
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-6246 is in __vsyslog_internal(), the function behind syslog() and vsyslog(). The glibc advisory GLIBC-SA-2024-0001, public on 2024-01-30, says it "did not handle a case where printing a SYSLOG_HEADER containing a long program name failed to update the required buffer size, leading to the allocation and overflow of a too-small buffer on the heap". It lists two vulnerable commits, one in 2.37 and one at 2.36-16 on the 2.36 release branch, and Fix-Commits for 2.39, 2.38-42, 2.37-57 and 2.36-126.

Qualys found it. Its advisory says the bug entered glibc 2.37 in August 2022 and "was also backported to glibc 2.36" because that commit fixed an earlier minor syslog issue, CVE-2022-39046. Qualys confirmed Debian 12 and 13, Ubuntu 23.04 and 23.10, and Fedora 37 to 39 as vulnerable, and reached root from an unprivileged user on Fedora 38 through su. It also judges that the bug "cannot be triggered remotely in any likely scenario", because it needs an argv[0] or openlog() ident longer than 1024 bytes. NVD's Primary score is 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, CWE-787; Red Hat's score is 8.4 (NVD).

The version range needs care on devices. NVD's CPE range is 2.36 up to, but excluding, 2.39, but the advisory shows the bug reached 2.36 only through branch commit 2.36-16. A device built from the plain 2.36 tarball, without branch updates, does not contain the vulnerable code, while a build that tracks the 2.36 branch does until 2.36-126. Qualys disclosed two sibling bugs in the same function, CVE-2023-6779 and CVE-2023-6780, fixed by GLIBC-SA-2024-0002 and 2024-0003; apply all three fixes together.

Siemens ProductCERT SSA-082556, last updated 2026-10-13, lists CVE-2023-6246 and both siblings for the GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP firmware V3.1.5, including the SIPLUS variant. Siemens scores it 8.4, states that no fix is available for V3.1.5 and that this version is no longer maintained, and recommends limiting access to the subsystem's interactive shell. SSA-019113 for V3.1.6 does not list the CVE.

CVE-2023-6246 is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13); FIRST EPSS gives it 0.048, the 92.1st percentile, in the 2026-11-15 dataset (CISA KEV, FIRST EPSS). Our glibc, uClibc and musl guide walks through a worked example of this branch-only case, and CVE-2023-4911 is the KEV-listed glibc loader flaw on 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

  • SYSLOG_HEADER with a long program name fails to update buffer size, heap overflow; public 2024-01-30; vulnerable 2.37 and 2.36-16; fixed 2.39, 2.38-42, 2.37-57, 2.36-126. — glibc GLIBC-SA-2024-0001
  • Introduced in 2.37 (Aug 2022), backported to 2.36 as a fix for CVE-2022-39046; Debian 12/13, Ubuntu 23.04/23.10, Fedora 37-39 vulnerable; root on Fedora 38; not remotely triggerable in any likely scenario (argv[0]/ident > 1024 bytes). — 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; Red Hat 8.4; CPE glibc 2.36 to before 2.39. — NVD
  • S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.5 (incl. SIPLUS) lists CVE-2023-6246, -6779, -6780; Siemens score 8.4; no fix available; V3.1.5 no longer maintained; SSA updated 2026-10-13. — Siemens ProductCERT SSA-082556
  • SSA-019113 for V3.1.6 does not list CVE-2023-6246. — Siemens ProductCERT SSA-019113
  • Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.04794 (92.1st percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. glibc GLIBC-SA-2024-0001: syslog heap buffer overflow in __vsyslog_internal
  3. Qualys Security Advisory: CVE-2023-6246, heap-based buffer overflow in glibc syslog()
  4. Siemens ProductCERT SSA-082556: SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.5
  5. Siemens ProductCERT SSA-019113: SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.6
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Is a device on glibc 2.36 affected by CVE-2023-6246?

Only if its glibc includes branch commit 2.36-16 and not the fix 2.36-126. The advisory lists 2.37 and 2.36-16 as the vulnerable commits, so a build from the plain 2.36 tarball lacks the bug even though NVD's range starts at 2.36 (per GLIBC-SA-2024-0001 and NVD).

Can CVE-2023-6246 be triggered over the network?

Qualys judges that it cannot be triggered remotely in any likely scenario, because it needs an argv[0] or openlog() ident longer than 1024 bytes. The realistic path is a local user running a setuid program such as su with a long program name (per the Qualys advisory).

Which Siemens firmware is affected by CVE-2023-6246?

The GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP firmware V3.1.5, including the SIPLUS variant. Siemens lists no fix for V3.1.5, which it no longer maintains, and its advisory for V3.1.6 does not list the CVE (per Siemens SSA-082556 and SSA-019113).

Is CVE-2023-6246 exploited?

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