CVE-2019-9891 Command injection in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary commands and escalate privileges by exploiting unsafe getopt_simple usage in shell scripts executed via sudo.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2019-9891?

CVE-2019-9891 is a critical command injection vulnerability in n/a, published on 31 May 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2019-9891?

It affects 1 product.

Products include Tldp Advanced Bash-Scripting Guide.

How do I fix CVE-2019-9891?

No fix has been published for CVE-2019-9891 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2019-9891 being exploited?

There is no known exploitation of CVE-2019-9891 in the wild and no public exploit code.

Sources

Also known as GHSA-m36g-m68j-vjwq.

Is CVE-2019-9891 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free