Cloudanix VulnDB

CVE-2024-52533

Critical · 9.8

CVSS

9.8

EPSS

1.5%

Published

Nov 11, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A programming mistake in a widely used software component could allow remote attackers to crash or take control of programs that connect through certain network proxies.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Off-by-one error in SOCKS4 proxy connection message handling leads to a one-byte buffer overflow, enabling memory corruption that can result in arbitrary code execution or application crashes.

Why it matters to the business

Systems relying on GNOME GLib for network proxy functionality, particularly SOCKS4, face risk of remote compromise or service disruption, potentially affecting applications and services across Linux environments.

How an attack unfolds

An attacker positions themselves as a SOCKS4 proxy or intercepts traffic to send a specially crafted response that exceeds the expected message length by one byte due to missing null terminator handling, triggering the overflow.

How to fix it

Update GNOME GLib to the version containing commit bd40fbba132fb3d6e5d785ae9d2b05a9e0da8409 or later. Ensure all dependent applications are rebuilt against the patched library.

How to confirm the fix worked

Verify the presence of the fix by checking the source code for updated SOCKS4_CONN_MSG_LEN definition or test with a proxy connection that includes the trailing null character.

Typical attack path

  1. Identify applications using GLib with SOCKS4 proxy configuration
  2. Compromise or spoof the proxy server to deliver malicious response
  3. Send crafted SOCKS4 message to trigger buffer overflow
  4. Exploit memory corruption for code execution or DoS

How to detect it

Look for crashes in applications linked against GLib during SOCKS4 proxy usage in system logs or core dumps; monitor for unusual network traffic patterns involving proxy connections.

What your security team should do

  • Prioritize patching GLib in all affected environments
  • Monitor for updates in distributions using GLib
  • Review proxy configurations to avoid SOCKS4 if possible until patched
  • Test applications for stability after update

The record

gio/gsocks4aproxy.c in GNOME GLib before 2.82.1 has an off-by-one error and resultant buffer overflow because SOCKS4_CONN_MSG_LEN is not sufficient for a trailing '\0' character.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 glib2 0 2.56.4-166.el8_10
AlmaLinux:8 glib2-devel 0 2.56.4-166.el8_10
AlmaLinux:8 glib2-doc 0 2.56.4-166.el8_10
AlmaLinux:8 glib2-fam 0 2.56.4-166.el8_10
AlmaLinux:8 glib2-static 0 2.56.4-166.el8_10
AlmaLinux:8 glib2-tests 0 2.56.4-166.el8_10
AlmaLinux:9 glib2 0 2.68.4-16.el9_6.2
AlmaLinux:9 glib2-devel 0 2.68.4-16.el9_6.2
AlmaLinux:9 glib2-doc 0 2.68.4-16.el9_6.2
AlmaLinux:9 glib2-static 0 2.68.4-16.el9_6.2
AlmaLinux:9 glib2-tests 0 2.68.4-16.el9_6.2
AlmaLinux:9 mingw32-glib2 0 2.78.6-2.el9
AlmaLinux:9 mingw32-glib2-static 0 2.78.6-2.el9
AlmaLinux:9 mingw64-glib2 0 2.78.6-2.el9
AlmaLinux:9 mingw64-glib2-static 0 2.78.6-2.el9
Debian:11 glib2.0 0 No fix
Debian:11 glib2.0 0 2.66.8-1+deb11u5
Debian:12 glib2.0 0 No fix
Debian:13 glib2.0 0 2.82.1-1
Debian:14 glib2.0 0 2.82.1-1
Mageia:9 glib2.0 0 2.76.3-1.3.mga9
Rocky Linux:9 mingw-glib2 0 0:2.78.6-2.el9
SUSE:Enterprise Storage 7.1 glib2 0 2.62.6-150200.3.24.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS glib2 0 2.62.6-150200.3.24.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS glib2 0 2.62.6-150200.3.24.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS glib2 0 2.70.5-150400.3.17.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS glib2 0 2.70.5-150400.3.17.1
SUSE:Linux Enterprise Micro 5.1 glib2 0 2.62.6-150200.3.24.1
SUSE:Linux Enterprise Micro 5.2 glib2 0 2.62.6-150200.3.24.1
SUSE:Linux Enterprise Micro 5.3 glib2 0 2.70.5-150400.3.17.1
SUSE:Linux Enterprise Micro 5.4 glib2 0 2.70.5-150400.3.17.1
SUSE:Linux Enterprise Micro 5.5 glib2 0 2.70.5-150400.3.17.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 glib2 0 2.70.5-150400.3.17.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 glib2 0 2.78.6-150600.4.8.1
SUSE:Linux Enterprise Server 12 SP5-LTSS glib2 0 2.48.2-12.43.1
SUSE:Linux Enterprise Server 15 SP2-LTSS glib2 0 2.62.6-150200.3.24.1
SUSE:Linux Enterprise Server 15 SP3-LTSS glib2 0 2.62.6-150200.3.24.1
SUSE:Linux Enterprise Server 15 SP4-LTSS glib2 0 2.70.5-150400.3.17.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 glib2 0 2.48.2-12.43.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 glib2 0 2.62.6-150200.3.24.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 glib2 0 2.62.6-150200.3.24.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 glib2 0 2.70.5-150400.3.17.1
SUSE:Manager Proxy 4.3 glib2 0 2.70.5-150400.3.17.1
SUSE:Manager Server 4.3 glib2 0 2.70.5-150400.3.17.1
Ubuntu:20.04:LTS glib2.0 0 2.64.6-1~ubuntu20.04.8
Ubuntu:22.04:LTS glib2.0 0 2.72.4-0ubuntu2.4
Ubuntu:24.04:LTS glib2.0 0 2.80.0-6ubuntu3.2
Ubuntu:24.10 glib2.0 0 2.82.1-0ubuntu1
Ubuntu:25.04 glib2.0 0 2.82.1-0ubuntu1
Ubuntu:Pro:14.04:LTS glib2.0 0 No fix
Ubuntu:Pro:16.04:LTS glib2.0 0 2.48.2-0ubuntu4.8+esm4
Ubuntu:Pro:18.04:LTS glib2.0 0 2.56.4-0ubuntu0.18.04.9+esm4
openSUSE:Leap 15.5 glib2 0 2.70.5-150400.3.17.1
openSUSE:Leap 15.5 glib2-doc 0 2.70.5-150400.3.17.1
openSUSE:Leap 15.6 glib2 0 2.78.6-150600.4.8.1
openSUSE:Leap 15.6 glib2-doc 0 2.78.6-150600.4.8.1
openSUSE:Leap Micro 5.5 glib2 0 2.70.5-150400.3.17.1
openSUSE:Tumbleweed glib2 0 2.82.2-2.1

Related vulnerabilities