CVE-2022-3715
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Jan 5, 2023
CISA due date
—
Cloudanix analysis
A bug in the common command-line shell can let someone already on the computer take control or crash programs.
- 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
- Obtain local shell access on target system
- Craft malicious input exploiting parameter_transform
- Trigger heap overflow via bash invocation or script
- 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
- CVE-2016-0634 The expansion of '\h' in the prompt string in bash 4.3 allows remote authenticated users… Also affects bash
- CVE-2014-6278 GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the… Also affects bash
- CVE-2014-7187 Off-by-one error in the read_token_word function in parse.y in GNU Bash through 4.3… Also affects bash
- CVE-2014-7186 The redirection implementation in parse.y in GNU Bash through 4.3 bash43-026 allows… Also affects bash
- CVE-2014-6277 GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the… Also affects bash
- CVE-2014-7169 GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed… Also affects bash
- CVE-2014-6271 GNU Bash through 4.3 processes trailing strings after function definitions in the values… Also affects bash
- CVE-2026-111497 A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli… CWE-787