CVE-2026-82457

su-exec through 0.3 Privilege Escalation via Numeric User ID

Published Aug 29, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ncopa
Ncopa su-exec
Vendors & Products Ncopa
Ncopa su-exec
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'}

Weaknesses
  • CWE-681

    Incorrect Conversion between Numeric Types

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 24, 2026, 2:20 PM
Reserved
Aug 29, 2026, 1:23 PM
Status
Deferred
Published
Aug 29, 2026, 2:16 PM
Modified
Sep 23, 2026, 5:17 PM