CVE-2026-39822: Root escape via symlink plus trailing slash in os

Published Jul 8, 2026
·
Updated

On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /. For example, 'root.Open("symlink/")' will open "symlink" even when "symlink" is a symbolic link pointing outside of the root.

Affected Software

5 affected components
go Go<=1.25.12
go Go<=1.26.5
Golang Go<1.25.12
Golang Go>=1.26.0<1.26.5
Golang Go=1.27-rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Go to a version that resolves this vulnerability.

    Fixed in 1.26.5Patch CVE-2026-39822 & CVE-2026-42505
  2. Upgrade

    Upgrade Go to a version that resolves this vulnerability.

    Fixed in 1.25.12Patch CVE-2026-39822 & CVE-2026-42505

Event History

Jul 8, 2026
CVE Published
via MITRE·03:46 PM
Data Sourced
via MITRE·03:46 PM
DescriptionWeakness
Data Sourced
via Red Hat·05:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39822?

The severity of CVE-2026-39822 is high, rated at 7.8 on the CVSS scale.

2

How do I fix CVE-2026-39822?

To fix CVE-2026-39822, update your Go software to the latest version where the vulnerability has been addressed.

3

What systems are affected by CVE-2026-39822?

CVE-2026-39822 affects Unix systems that use the Golang Go programming language.

4

What type of vulnerability is CVE-2026-39822?

CVE-2026-39822 is a root escape vulnerability that improperly follows symlinks in file paths.

5

What are the potential impacts of CVE-2026-39822?

The potential impacts of CVE-2026-39822 include unauthorized access to sensitive files outside of the intended root directory.

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