CVE-2023-6246
JSON

8.4high

Glibc: heap-based buffer overflow in __vsyslog_internal()

Severity
8.4high CVSS:3.1 by redhat
Exploit likelihood
4.79% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

Description

A heap-based buffer overflow was found in the __vsyslog_internal function of the glibc library. This function is called by the syslog and vsyslog functions. This issue occurs when the openlog function was not called, or called with the ident argument set to NULL, and the program name (the basename of argv[0]) is bigger than 1024 bytes, resulting in an application crash or local privilege escalation. This issue affects glibc 2.36 and newer.

Affected

Product or packageVersionsReported by
glibcNot specified
Not affected: 2.39
CVE List
compat-glibcNot specifiedCVE List
gnu glibcfrom 2.36 before 2.39NVD
fedoraproject fedora38, 39NVD

All scores

redhat8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-122CWE-787

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

A heap-based buffer overflow was found in the __vsyslog_internal function of the glibc library. This function is called by the syslog and vsyslog functions. This issue occurs when the openlog function was not called, or called with the ident argument set to NULL, and the program name (the basename of argv[0]) is bigger than 1024 bytes, resulting in an application crash or local privilege escalation. This issue affects glibc 2.36 and newer.

NVD (es)

Se encontró un desbordamiento de búfer en la región Heap de la memoria en la función __vsyslog_internal de la librería glibc. Esta función es llamada por las funciones syslog y vsyslog. Este problema ocurre cuando no se llamó a la función openlog, o se llamó con el argumento ident establecido en NULL, y el nombre del programa (el nombre base de argv[0]) tiene más de 1024 bytes, lo que provoca un bloqueo de la aplicación o una escalada de privilegios locales. Este problema afecta a glibc 2.36 y versiones posteriores.

References

http://packetstormsecurity.com/files/176931/glibc-qsort-Out-Of-Bounds-Read-Write.htmlexploit, third-party-advisory, vdb-entry
http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.htmlexploit, third-party-advisory, vdb-entry
http://seclists.org/fulldisclosure/2024/Feb/3exploit, third-party-advisory
http://seclists.org/fulldisclosure/2024/Feb/5exploit, third-party-advisory
https://access.redhat.com/security/cve/CVE-2023-6246third-party-advisory, vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2249053issue-tracking, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D2FIH77VHY3KCRROCXOT6L27WMZXSJ2G/mailing-list
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MWQ6BZJ6CV5UAW4VZSKJ6TO4KIW2KWAQ/mailing-list
https://security.gentoo.org/glsa/202402-01third-party-advisory
https://www.openwall.com/lists/oss-security/2024/01/30/6exploit, mailing-list, third-party-advisory
https://www.qualys.com/2024/01/30/cve-2023-6246/syslog.txtexploit, third-party-advisory
https://security.netapp.com/advisory/ntap-20240216-0007/

Sources

SourceRecordLicence
CVE ListCVE-2023-6246 changed 2026-10-14CVE Terms of Use
NVDCVE-2023-6246 changed 2026-06-17Public domain