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

Published Apr 8, 2026
·
Updated

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

Other sources

TOCTOU permits root escape on Linux via Root.Chmod in os in internal/syscall/unix

— Microsoft

Affected Software

31 affected componentsFixes available
go Go standard library (os package)
Golang Go<1.25.9
Golang Go>=1.26.0<1.26.2
alpine/go>=1.26.0<1.25.9-r0
1.25.9-r0
alpine/go>=1.26.0<1.26.2-r0
1.26.2-r0
alpine/rclone<1.73.5-r0
1.73.5-r0
ubuntu/golang-1.10*
ubuntu/golang-1.10*
ubuntu/golang-1.6*
ubuntu/golang-1.13*
ubuntu/golang-1.18*
ubuntu/golang-1.10*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.8*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.22*
ubuntu/golang-1.17*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.13*
ubuntu/golang-1.21*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.23*
ubuntu/golang-1.24*
ubuntu/golang-1.23*
ubuntu/golang-1.24*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.25.9-r0
  2. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.26.2-r0
  3. Upgrade

    Upgrade alpine/rclone to a version that resolves this vulnerability.

    Fixed in 1.73.5-r0

Event History

Apr 8, 2026
CVE Published
via MITRE·01:06 AM
Data Sourced
via MITRE·01:06 AM
DescriptionWeakness
Data Sourced
via Red Hat·02:01 AM
DescriptionSeverityAffected Software
Data Sourced
via OSV·02:16 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·02:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 11, 2026
Data Sourced
via Microsoft·08:09 AM
DescriptionSeverityWeakness
Aug 5, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-32282?

CVE-2026-32282 has a high severity due to the potential for root escape on Linux systems.

2

How do I fix CVE-2026-32282?

To mitigate CVE-2026-32282, ensure that you upgrade the Go standard library to a version beyond 1.25.9 or between 1.26.0 and 1.26.2.

3

Which versions of the Go standard library are affected by CVE-2026-32282?

CVE-2026-32282 affects Go standard library versions up to 1.25.9 and between 1.26.0 and 1.26.2.

4

What is TOCTOU in the context of CVE-2026-32282?

TOCTOU stands for Time-of-Check to Time-of-Use, which enables the vulnerability when a symlink is manipulated during a chmod operation.

5

What systems are primarily at risk from CVE-2026-32282?

Primarily, Linux systems using the affected versions of the Go standard library are at risk from CVE-2026-32282.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203