Skip to main content

GNU glibc CVE-2023-6779

HIGH
Heap-based Buffer Overflow (CWE-122)
2024-01-31 secalert@redhat.com
8.2
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify glibc 2.37+ service logging untrusted input
  2. Delivery
    Craft payload exceeding INT_MAX bytes
  3. Exploit
    Deliver oversized message to syslog call path
  4. Execution
    Trigger off-by-one in __vsyslog_internal
  5. Impact
    Corrupt heap metadata and crash daemon

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a target process running on glibc 2.37 or newer call syslog() or vsyslog() with an attacker-influenced message larger than INT_MAX bytes (>2,147,483,647 bytes / ~2 GiB), which in turn requires the calling application to neither length-cap log input nor reject oversized payloads upstream. The CVSS vector AV:N/AC:L/PR:N/UI:N indicates no authentication and no user interaction is needed at the protocol level, but the practical limiter is the >2 GiB payload size - services that enforce request/body size limits (most web servers, RPC frameworks, message queues with default settings) are effectively immune, while long-lived daemons that buffer unbounded streaming input into a single syslog call on glibc 2.37+ (Fedora 38/39 and equivalent) are the realistic exposure set.

Impact

The CVSS v3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H scores 8.2 and indicates network-reachable, unauthenticated, low-complexity abuse with high availability impact and low integrity impact but no confidentiality loss - consistent with a remotely triggerable crash rather than code execution. EPSS of 0.65% (71st percentile) suggests modest predicted exploitation activity, and the issue is NOT in CISA KEV, so there is no confirmed active exploitation despite publicly available exploit code. The practical risk is constrained by the precondition that an attacker must be able to deliver a message larger than INT_MAX (>2 GiB) into a syslog call path, which is unusual in real deployments and not automatable against most services; this tension between the high CVSS availability score and the extreme size requirement means the real-world priority is lower than the headline 8.2 implies for most environments, though long-lived daemons accepting unbounded input remain at risk.

Exploit ScenarioDerived

An attacker submits an extremely large payload (>2 GiB) to a network-exposed service - for example, a long HTTP header, an oversized RPC field, or a giant log line - that the service forwards verbatim into syslog() or vsyslog(). The off-by-one heap overflow in __vsyslog_internal corrupts adjacent heap metadata, crashing the daemon and causing denial of service; publicly available exploit code demonstrates the crash path, though no active exploitation has been reported.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAI

Heap-based off-by-one buffer overflow in glibc's __vsyslog_internal function affects versions 2.37 and newer, triggered when syslog() or vsyslog() are invoked with messages exceeding INT_MAX bytes. Remote attackers can cause application crashes (denial of service) and potentially impact integrity in applications that log attacker-controlled data via syslog. Publicly available exploit code exists, though EPSS exploitation probability remains moderate at 0.65% (71st percentile) and the issue is not listed in CISA KEV.

RemediationAI

Upgrade affected systems to a glibc version containing the upstream fix in __vsyslog_internal - Patch available per vendor advisory, with downstream packages distributed via Fedora's bodhi updates for Fedora 38 and 39 and Red Hat errata tracked under the secalert@redhat.com reporter channel; consult your distribution's security tracker for the exact patched glibc package version applicable to your release. As a compensating control where prompt patching is not possible, audit applications that pass untrusted input directly to syslog()/vsyslog() and enforce a strict message length cap well below INT_MAX (e.g., truncate to a few kilobytes before logging), which has the side effect of losing very long log lines but eliminates the trigger; additionally, restricting which network-exposed services can reach syslog with attacker-controlled data (via input validation at the application boundary or WAF rules) reduces exposure at the cost of additional rule maintenance.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in __vsyslog_internal, a core internal helper inside the GNU C Library that backs the POSIX syslog() and vsyslog() interfaces used by virtually every Linux userspace process for logging. The root cause is CWE-122 (heap-based buffer overflow), specifically an off-by-one error in size calculation: when a log message larger than INT_MAX bytes is passed in, integer arithmetic produces an incorrect buffer length, causing a one-byte heap overrun when the message is written. Affected CPEs explicitly include gnu:glibc (all matching versions 2.37+), and Fedora 38 and Fedora 39, both of which ship glibc 2.37/2.38 in their base distributions. Because glibc is foundational, the bug surfaces in any application that forwards externally influenced strings into syslog without length capping.

Know when Glibc gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

DescriptionCVE.org

An off-by-one 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 these functions are called with a message bigger than INT_MAX bytes, leading to an incorrect calculation of the buffer size to store the message, resulting in an application crash. This issue affects glibc 2.37 and newer.

Executive ViewAI

Why It Matters

A critical vulnerability in glibc 2.37+ (CVE-2023-6779, CVSS 8.2) impacts the core system library relied upon by numerous enterprise applications for logging. With public exploit code available and no vendor patch currently released, organizations must identify affected systems and implement interim controls to prevent denial-of-service attacks and potential data corruption in applications that process external syslog requests.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: (1) Enforce message size validation in syslog handlers to reject messages exceeding INT_MAX; (2) Apply input sanitization to any application logging untrusted external data; (3) Restrict syslog service access to trusted networks and systems; (4) Implement monitoring alerts for oversized or malformed syslog messages; (5) Where operationally feasible, disable syslog on systems with low logging requirements until patched; (6) Isolate or segment high-risk systems until a patch becomes available.

Threat Intelligence Overview

EPSS Score
0.7%
Top 29% exploitable
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

62
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +41
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Affected Products (CPE)CVE.org

cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*

More in Glibc

View all
CVE-2023-4911 HIGH POC
7.8 Oct 03

Local privilege escalation in the GNU C Library (glibc) dynamic loader ld.so allows unprivileged local users on affected

CVE-2015-0235 CRITICAL POC
10.0 Jan 28

Heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2, and other 2.x versions before 2.18,

CVE-2024-2961 HIGH POC
7.3 Apr 17

The iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to 4

CVE-2015-7547 HIGH POC
8.1 Feb 18

Multiple stack-based buffer overflows in the (1) send_dg and (2) send_vc functions in the libresolv library in the GNU C

CVE-2023-6246 HIGH POC
8.4 Jan 31

Local privilege escalation in GNU glibc 2.36 and newer arises from a heap-based buffer overflow in __vsyslog_internal, r

CVE-2014-5119 HIGH POC
7.5 Aug 29

Off-by-one error in the __gconv_translit_find function in gconv_trans.c in GNU C Library (aka glibc) allows context-depe

CVE-2012-4412 HIGH POC
7.5 Oct 09

Integer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier allows context-depende

CVE-2018-1000001 HIGH POC
7.8 Jan 31

In glibc 2.26 and earlier there is confusion in the usage of getcwd() by realpath() which can be used to write before th

CVE-2019-9169 CRITICAL POC
9.8 Feb 26

In the GNU C Library (aka glibc or libc6) through 2.29, proceed_next_node in posix/regexec.c has a heap-based buffer ove

CVE-2019-1010022 CRITICAL POC
9.8 Jul 15

GNU Libc current is affected by: Mitigation bypass. Rated critical severity (CVSS 9.8), this vulnerability is remotely e

CVE-2021-33574 CRITICAL POC
9.8 May 25

The mq_notify function in the GNU C Library (aka glibc) versions 2.32 and 2.33 has a use-after-free. Rated critical seve

CVE-2023-25139 CRITICAL POC
9.8 Feb 03

sprintf in the GNU C Library (glibc) 2.37 has a buffer overflow (out-of-bounds write) in some situations with a correct

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy