CVE-2019-12937

HIGH

ToaruOS < 1.10.9 - Local Privilege Escalation via gsudo DISPLAY Environment Variable

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2019-12937. PoCs published by AkashicYiTai.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2019-12937, a buffer overflow vulnerability in ToaruOS's gsudo program. The exploit leverages the DISPLAY environment variable to trigger a stack overflow in the pex_connect function, allowing privilege escalation to root due to the SUID bit set on gsudo.

Description

apps/gsudo.c in gsudo in ToaruOS through 1.10.9 has a buffer overflow allowing local privilege escalation to the root user via the DISPLAY environment variable.

Exploits (1)

nomisec WORKING POC
by AkashicYiTai · poc
https://github.com/AkashicYiTai/CVE-2019-12937-ToaruOS

This repository contains a functional exploit for CVE-2019-12937, a buffer overflow vulnerability in ToaruOS's gsudo program. The exploit leverages the DISPLAY environment variable to trigger a stack overflow in the pex_connect function, allowing privilege escalation to root due to the SUID bit set on gsudo.

Classification
Working Poc 100%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: ToaruOS 1.10.9 and earlier
No auth needed
Prerequisites: Access to a vulnerable ToaruOS system · Ability to compile and execute the PoC
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (1)

Core 1

Scores

CVSS v3 7.8
EPSS 0.0050
EPSS Percentile 39.2%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-787
Status published
Products (1)
toaruos_project/toaruos < 1.10.9
Published Jun 23, 2019
Tracked Since Feb 18, 2026