CVE-2019-9891: Advanced Bash Scripting Guide - Privilege Escalation & Command Injection
- Cve: CVE-2019-9891
- Name: Advanced Bash Scripting Guide - Privilege Escalation & Command Injection
- Description: The function getopt_simple as described in Advanced Bash Scripting Guide (ISBN 978-1435752184) allows privilege escalation and execution of commands when used in a shell script called, for example, via sudo.
- Impact: Attackers can escalate privileges and execute arbitrary commands, potentially leading to full system compromise.
- Remediation: Review and sanitize the usage of getopt_simple in scripts, and avoid using it with elevated privileges or consider updating to a safer alternative.
- Vulnerability type: command_injection
- Vulnerability impact: privilege_escalation, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.0339
- Epss percentile: 0.8912
- Assignee: [email protected]
- Published at: 2019-05-31T21:29:06Z
- Age in days: 2734
- Modified at: 2026-06-17T02:44:47Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-9891
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://www.redteam-pentesting.de/advisories/rt-sa-2019-007 | nvd | 2019-05-31 |
References
| Url | Source | Tags |
|---|---|---|
| https://www.redteam-pentesting.de/advisories/rt-sa-2019-007 | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| tldp:advanced_bash-scripting_guide | all versions | no | nvd | /v1/products/tldp/advanced_bash-scripting_guide |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2019-05-31
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts