# CVE-2026-32282: TOCTOU permits root escape on Linux via Root.Chmod in os in internal/syscall/unix

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.4
- **CVSS:** 6.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-26)
- **CWE:** CWE-59
- **Aliases:** BIT-golang-2026-32282, GO-2026-4864
- **Published:** 2026-04-07T22:53:49.000Z
- **Modified:** 2026-11-23T21:12:29.869Z

## Who should check

- Projects that depend on Go package stdlib (\< 1.25.9; \>= 1.26.0-0, \< 1.26.2)
- Anyone running Go standard library internal/syscall/unix \< 1.25.9; \>= 1.26.0-0, \< 1.26.2

## Description

On Linux, if the target of Root.Chmod is replaced with a symlink while the chmod operation is in progress, Chmod can operate on the target of the symlink, even when the target lies outside the root. The Linux fchmodat syscall silently ignores the AT\_SYMLINK\_NOFOLLOW flag, which Root.Chmod uses to avoid symlink traversal. Root.Chmod checks its target before acting and returns an error if the target is a symlink lying outside the root, so the impact is limited to cases where the target is replaced with a symlink between the check and operation.

## Affected and fixed versions

- Go `stdlib`: affected \< 1.25.9; \>= 1.26.0-0, \< 1.26.2; fixed 1.25.9, 1.26.2 (osv)
- Go standard library internal/syscall/unix: \< 1.25.9; \>= 1.26.0-0, \< 1.26.2 (cvelist)

## Mitigation

- Upgrade stdlib to one of 1.25.9, 1.26.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-32282. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-32282.md
Affected: stdlib < 1.25.9; >= 1.26.0-0, < 1.26.2
Fixed in: 1.25.9, 1.26.2

Steps:
1. Search this machine and project for stdlib (Go), Go standard library internal/syscall/unix: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-32282 being exploited?

There is no confirmed exploitation: CVE-2026-32282 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-32282?

Medium: CVSS 6.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-32282?

stdlib \< 1.25.9; \>= 1.26.0-0, \< 1.26.2.

### Is there a fix for CVE-2026-32282?

Yes. Fixed in 1.25.9, 1.26.2. Upgrade stdlib to one of 1.25.9, 1.26.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-32282?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://pkg.go.dev/vuln/GO-2026-4864>
- patch: <https://go.dev/cl/763761>
- other: <https://go.dev/issue/78293>
- other: <https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-32282>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-4864> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-32282> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-32282>
