Description
su-exec through 0.3 fails to validate numeric user and group identifiers parsed with strtol before assigning to uid_t and gid_t, allowing truncation of out-of-range values to zero. Attackers can supply large numeric identifiers that truncate to root's identifier, causing su-exec to execute target programs with root privileges instead of intended unprivileged accounts.
Published: 2026-08-29
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw in su‑exec version 0.3 allows a malicious user to craft numeric user or group identifiers that exceed the bounds of the uid_t and gid_t types. The conversion routine truncates the high‑order bits, turning a large value into zero, which maps to the root account. As a result, when an attacker supplies a large numeric UID or GID, su‑exec executes the requested program with root privileges instead of the intended unprivileged account. This represents a classic integer truncation vulnerability (CWE-681) that leads to elevation of privilege.

Affected Systems

The affected product is the culprit executable maintained by ncopa, named su‑exec. No specific version list was supplied beyond the statement that versions up to 0.3 are vulnerable.

Risk and Exploitability

The calculated CVSS score of 8.5 indicates a high severity non‑remote local privilege escalation. The EPSS score is not available but the vulnerability is already known to experts, and it is not listed in the CISA KEV catalog. An attacker who can execute su‑exec, which runs as root, can supply a crafted large numeric identifier. The lack of input validation allows the value to truncate to zero, causing delivery of a root‑level process. This attack would need only local execution rights to the binary and is trivial to coerce once the binary exists on the system.

Generated by OpenCVE AI on August 29, 2026 at 15:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install the latest upstream release of su-exec (or any version that has validated user and group identifiers).
  • If a fixed version is not available, remove the setuid bit from the su-exec binary to prevent privilege escalation.
  • As a temporary workaround, avoid invoking su-exec with numeric user IDs; use named identifiers or switch to the system su command for user switching.

Generated by OpenCVE AI on August 29, 2026 at 15:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 29 Aug 2026 14:00:00 +0000

Type Values Removed Values Added
Description su-exec through 0.3 fails to validate numeric user and group identifiers parsed with strtol before assigning to uid_t and gid_t, allowing truncation of out-of-range values to zero. Attackers can supply large numeric identifiers that truncate to root's identifier, causing su-exec to execute target programs with root privileges instead of intended unprivileged accounts.
Title su-exec through 0.3 Privilege Escalation via Numeric User ID
Weaknesses CWE-681
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-29T13:47:58.176Z

Reserved: 2026-08-29T13:23:00.303Z

Link: CVE-2026-82457

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-29T14:16:38.910

Modified: 2026-08-29T14:16:38.910

Link: CVE-2026-82457

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-29T15:30:05Z

Weaknesses
  • CWE-681

    Incorrect Conversion between Numeric Types