Cloudanix VulnDB

CVE-2017-15670

Critical · 9.8

CVSS

9.8

EPSS

3.0%

Published

Oct 20, 2017

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A widely used system library had a bug that could let attackers take control of computers by sending specially crafted data to programs that handle file paths.

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

What it actually does

Off-by-one error in glibc glob function leads to heap-based buffer overflow when processing home directories via the ~ operator followed by a long string, enabling memory corruption.

Why it matters to the business

Remote code execution risk across 1,393 downstream dependents could disrupt operations, enable data breaches, or allow full system compromise in affected environments using unpatched glibc.

How an attack unfolds

An attacker supplies crafted input containing ~ followed by an oversized string to any application invoking the vulnerable glob function, triggering the off-by-one overflow to corrupt heap memory and achieve arbitrary code execution.

How to fix it

Upgrade affected packages to fixed versions: vite (Chainguard) 5.0.12-r0 or vite (Wolfi) 5.0.12-r0, which incorporate the glibc patch resolving the off-by-one error.

How to confirm the fix worked

Verify package versions match or exceed the fixed releases; confirm glibc is at least 2.27 and test glob handling with boundary inputs to ensure no overflow occurs.

Typical attack path

  1. Identify application or service that invokes glibc glob on untrusted input containing ~ expansion
  2. Craft malicious string exceeding buffer bounds after the ~ operator
  3. Trigger glob processing to induce heap overflow
  4. Leverage memory corruption for code execution or denial of service

How to detect it

Monitor application logs and system crashes for segmentation faults or heap errors during glob processing; review historical audit trails for unusual process behavior involving file globbing on untrusted inputs.

What your security team should do

  • Prioritize immediate upgrade of all vite packages to the specified fixed versions due to high CVSS and widespread ecosystem prevalence
  • Scan inventories for any remaining glibc versions before 2.27 and schedule patching
  • Review applications using glob or tilde expansion for input sanitization as a defense-in-depth measure

The record

The GNU C Library (aka glibc or libc6) before 2.27 contains an off-by-one error leading to a heap-based buffer overflow in the glob function in glob.c, related to the processing of home directories using the ~ operator followed by a long string.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 glibc 0 2.25-3
Debian:11 glibc 0 2.25-3
Debian:12 glibc 0 2.25-3
Debian:13 glibc 0 2.25-3
Mageia:5 glibc 0 2.20-26.mga5
Mageia:5 libtirpc 0 0.2.5-3.3.mga5
Mageia:6 glibc 0 2.22-26.mga6
Mageia:6 libtirpc 0 1.0.1-5.1.mga6
Red Hat:enterprise_linux:6::client glibc 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::client glibc-common 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::client glibc-debuginfo 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::client glibc-debuginfo-common 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::client glibc-devel 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::client glibc-headers 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::client glibc-static 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::client glibc-utils 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::client nscd 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::computenode glibc 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::computenode glibc-common 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::computenode glibc-debuginfo 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::computenode glibc-debuginfo-common 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::computenode glibc-devel 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::computenode glibc-headers 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::computenode glibc-static 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::computenode glibc-utils 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::computenode nscd 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::server glibc 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::server glibc-common 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::server glibc-debuginfo 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::server glibc-debuginfo-common 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::server glibc-devel 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::server glibc-headers 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::server glibc-static 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::server glibc-utils 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::server nscd 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::workstation glibc 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::workstation glibc-common 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::workstation glibc-debuginfo 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::workstation glibc-debuginfo-common 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::workstation glibc-devel 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::workstation glibc-headers 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::workstation glibc-static 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::workstation glibc-utils 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:6::workstation nscd 0 0:2.12-1.212.el6
Red Hat:enterprise_linux:7::client glibc 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::client glibc-common 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::client glibc-debuginfo 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::client glibc-debuginfo-common 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::client glibc-devel 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::client glibc-headers 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::client glibc-static 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::client glibc-utils 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::client nscd 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::computenode glibc 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::computenode glibc-common 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::computenode glibc-debuginfo 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::computenode glibc-debuginfo-common 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::computenode glibc-devel 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::computenode glibc-headers 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::computenode glibc-static 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::computenode glibc-utils 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::computenode nscd 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::server glibc 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::server glibc-common 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::server glibc-debuginfo 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::server glibc-debuginfo-common 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::server glibc-devel 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::server glibc-headers 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::server glibc-static 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::server glibc-utils 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::server nscd 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::workstation glibc 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::workstation glibc-common 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::workstation glibc-debuginfo 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::workstation glibc-debuginfo-common 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::workstation glibc-devel 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::workstation glibc-headers 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::workstation glibc-static 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::workstation glibc-utils 0 0:2.17-222.el7
Red Hat:enterprise_linux:7::workstation nscd 0 0:2.17-222.el7
SUSE:Linux Enterprise Desktop 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Desktop 12 SP3 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Point of Sale 11 SP3 glibc 0 2.11.3-17.110.19.2
SUSE:Linux Enterprise Server 11 SP3-LTSS glibc 0 2.11.3-17.110.19.2
SUSE:Linux Enterprise Server 11 SP3-TERADATA glibc 0 2.11.3-17.110.19.2
SUSE:Linux Enterprise Server 11 SP4 glibc 0 2.11.3-17.110.19.2
SUSE:Linux Enterprise Server 12 SP1-LTSS glibc 0 2.19-40.16.950
SUSE:Linux Enterprise Server 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Server 12 SP3 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Server 12-LTSS glibc 0 2.19-22.27.958
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 glibc 0 2.11.3-17.110.19.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 glibc 0 2.19-40.16.950
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Software Development Kit 11 SP4 glibc 0 2.11.3-17.110.19.2
SUSE:Linux Enterprise Software Development Kit 12 SP2 glibc 0 2.22-62.3.4
SUSE:Linux Enterprise Software Development Kit 12 SP3 glibc 0 2.22-62.3.4
Ubuntu:14.04:LTS eglibc 0 2.19-0ubuntu6.14
Ubuntu:16.04:LTS glibc 0 2.23-0ubuntu10
Ubuntu:18.04:LTS glibc 0 2.27-3ubuntu1
openSUSE:Tumbleweed glibc 0 2.34-1.2

Related vulnerabilities