CVE-2019-15900 Privilege escalation in n/a

Critical 9.8 Published Updated

Attackers can execute commands as root on non-OpenBSD platforms due to unchecked sscanf errors in doas, leading to privilege escalation.

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-15900?

CVE-2019-15900 is a critical vulnerability in n/a, published on 18 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in slicer69 doas before 6.2 on certain platforms other than OpenBSD. On platforms without strtonum(3), sscanf was used without checking for error cases. Instead, the uninitialized variable errstr was checked and in some cases returned success even if sscanf failed. The result was that, instead of reporting that the supplied username or group name did not exist, it would execute the command as root.

Weakness: CWE-908, CWE-863, CWE-754, CWE-252

Which versions are affected by CVE-2019-15900?

It affects 1 product.

Products include Doas Project Doas.

How do I fix CVE-2019-15900?

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

Is CVE-2019-15900 being exploited?

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

Sources

Also known as GHSA-687w-xp39-q584.

Is CVE-2019-15900 in your software?

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

Check your SBOMs for free