Cloudanix VulnDB

CVE-2022-3715

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Jan 5, 2023

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in the common command-line shell can let someone already on the computer take control or crash programs.

Exploit Available
Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Full Compromise
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap-buffer overflow in bash parameter_transform function allowing memory corruption and potential arbitrary code execution or crashes.

Why it matters to the business

Local attackers can gain elevated privileges or disrupt shell-dependent operations on affected systems, increasing risk of compromise in environments relying on bash for scripts and administration; widespread use of bash amplifies exposure.

How an attack unfolds

An attacker with local access supplies crafted input that triggers the overflow during parameter transformation in bash; public exploits are available to achieve memory corruption leading to code execution.

How to fix it

Upgrade gnu bash and redhat enterprise linux to the latest patched versions addressing the heap overflow; monitor vendor advisories for availability of fixes and apply immediately.

How to confirm the fix worked

Verify bash version against vendor security updates; test parameter transformation functions with known triggering inputs in a controlled environment to confirm absence of overflow.

Typical attack path

  1. Obtain local shell access on target system
  2. Craft malicious input exploiting parameter_transform
  3. Trigger heap overflow via bash invocation or script
  4. Achieve memory corruption for code execution or denial of service

How to detect it

Review system logs for unusual bash crashes or memory errors; inspect process execution for suspicious parameter inputs; correlate with local user activity around exploitation timestamps.

What your security team should do

  • Prioritize patching bash across all affected systems due to public exploit availability
  • Restrict local access and review scripts handling untrusted input
  • Monitor for memory corruption indicators in system logs
  • Apply least-privilege principles to limit impact of local exploits

The record

A flaw was found in the bash package, where a heap-buffer overflow can occur in valid parameter_transform. This issue may lead to memory problems.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:9 bash 0 5.1.8-6.el9_1
AlmaLinux:9 bash-devel 0 5.1.8-6.el9_1
Debian:11 bash 0 No fix
Debian:12 bash 0 5.2-1
Debian:13 bash 0 5.2-1
Red Hat:enterprise_linux:9::baseos bash 0 0:5.1.8-6.el9_1
Red Hat:enterprise_linux:9::baseos bash-debuginfo 0 0:5.1.8-6.el9_1
Red Hat:enterprise_linux:9::baseos bash-debugsource 0 0:5.1.8-6.el9_1
Red Hat:enterprise_linux:9::baseos bash-devel 0 0:5.1.8-6.el9_1
Red Hat:enterprise_linux:9::crb bash 0 0:5.1.8-6.el9_1
Red Hat:enterprise_linux:9::crb bash-debuginfo 0 0:5.1.8-6.el9_1
Red Hat:enterprise_linux:9::crb bash-debugsource 0 0:5.1.8-6.el9_1
Red Hat:enterprise_linux:9::crb bash-devel 0 0:5.1.8-6.el9_1
Rocky Linux:9 bash 0 0:5.1.8-6.el9_1
Ubuntu:22.04:LTS bash 0 5.1-6ubuntu1.1

Related vulnerabilities