Cloudanix VulnDB

CVE-2023-4156

High · 7.1

CVSS

7.1

EPSS

0.4%

Published

Sep 25, 2023

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in a common text-processing program can cause it to crash or accidentally reveal private data when given certain inputs.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Data Exposure
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap out-of-bounds read in builtin.c allowing memory contents beyond allocated buffers to be read, resulting in process crashes or disclosure of sensitive information.

Why it matters to the business

Unexpected application crashes and potential exposure of confidential data can disrupt operations and compromise data confidentiality in environments relying on the affected text-processing package.

How an attack unfolds

An attacker crafts malicious input or scripts that invoke builtin functions in gawk, triggering the out-of-bounds read to either destabilize the process or leak memory-resident data.

How to fix it

Upgrade to the fixed commit 8f42e9b75a55401fa9dfdf14d49fbe5396c6ce92 or later equivalent patched release of the gawk package; rebuild from source if necessary and verify the fix is present.

How to confirm the fix worked

Confirm gawk version and source commit; run regression tests with known out-of-bounds triggering inputs and monitor for absence of crashes or memory errors.

Typical attack path

  1. Locate systems running the vulnerable gawk package
  2. Prepare input designed to exercise builtin.c functions with oversized or malformed data
  3. Invoke gawk on the crafted input via command line or script
  4. Capture resulting crash dumps or observe leaked memory artifacts

How to detect it

Search system and application logs for gawk segmentation faults or abnormal terminations; examine core dumps or memory artifacts for signs of unexpected buffer access around builtin functions.

What your security team should do

  • Prioritize patching gawk across all systems due to available exploit code
  • Restrict execution of gawk on untrusted inputs until updated
  • Audit scripts and automation that invoke gawk for input sanitization

The record

A heap out-of-bounds read flaw was found in builtin.c in the gawk package. This issue may lead to a crash and could be used to read sensitive information.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 gawk 0 No fix
Debian:12 gawk 0 1:5.2.1-1
Debian:13 gawk 0 1:5.2.1-1
Debian:14 gawk 0 1:5.2.1-1
SUSE:Linux Enterprise Micro 5.1 gawk 0 4.2.1-150000.3.3.1
SUSE:Linux Enterprise Micro 5.2 gawk 0 4.2.1-150000.3.3.1
SUSE:Linux Enterprise Micro 5.3 gawk 0 4.2.1-150000.3.3.1
SUSE:Linux Enterprise Micro 5.4 gawk 0 4.2.1-150000.3.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP4 gawk 0 4.2.1-150000.3.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 gawk 0 4.2.1-150000.3.3.1
SUSE:Linux Enterprise Server 12 SP5 gawk 0 4.1.0-5.3.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 gawk 0 4.1.0-5.3.1
SUSE:Manager Proxy 4.2 gawk 0 4.2.1-150000.3.3.1
SUSE:Manager Server 4.2 gawk 0 4.2.1-150000.3.3.1
Ubuntu:20.04:LTS gawk 0 1:5.0.1+dfsg-1ubuntu0.1
Ubuntu:22.04:LTS gawk 0 1:5.1.0-1ubuntu0.1
Ubuntu:Pro:14.04:LTS gawk 0 1:4.0.1+dfsg-2.1ubuntu2+esm1
Ubuntu:Pro:16.04:LTS gawk 0 1:4.1.3+dfsg-0.1ubuntu0.1~esm1
Ubuntu:Pro:18.04:LTS gawk 0 1:4.1.4+dfsg-1ubuntu0.1~esm1
openSUSE:Leap 15.4 gawk 0 4.2.1-150000.3.3.1
openSUSE:Leap 15.5 gawk 0 4.2.1-150000.3.3.1
openSUSE:Leap Micro 5.3 gawk 0 4.2.1-150000.3.3.1
openSUSE:Leap Micro 5.4 gawk 0 4.2.1-150000.3.3.1

Related vulnerabilities