---
id: CVE-2026-82457
title: >-
  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
summary: >-
  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 trun…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-681
published: '2026-08-29'
updated: '2026-09-23'
sourceUpdated: '2026-09-23T17:17:46.257'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-82457'
references:
  - url: 'https://gist.github.com/thesmartshadow/ed96e2a88643c34a247c9b7cf9e311be'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ncopa/su-exec'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ncopa/su-exec/blob/89c016e6e08749d583efdeda04b9f73e1218e253/su-exec.c
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/su-exec-through-0.3-privilege-escalation-via-numeric-user-id
    label: disclosure@vulncheck.com
  - url: 'https://gist.github.com/thesmartshadow/ed96e2a88643c34a247c9b7cf9e311be'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.0018
epssPercentile: 0.06778
ingestedAt: '2026-08-30T07:49:08.847Z'
vendor: ncopa
product: su-exec
affected:
  - su-exec <= 0.3
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-01T02:10:20.796890Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
