Bug 2498152 (CVE-2026-39822)
| Summary: | CVE-2026-39822 golang: Go os.Root: Symlink following vulnerability allows directory traversal | ||
|---|---|---|---|
| Product: | [Other] Security Response | Reporter: | OSIDB Bzimport <bzimport> |
| Component: | vulnerability | Assignee: | Product Security DevOps Team <prodsec-dev> |
| Status: | NEW --- | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | CC: | aazores, abarbaro, abuckta, akhatavk, akostadi, akoudelk, alebedev, alizardo, amasferr, amctagga, anjoseph, anpicker, ansmith, anthomas, aoconnor, aos-team-art-private, aprice, aruklets, asatyam, asdas, ataylor, bbrownin, bniver, chfoley, ckandaga, cmah, crizzo, dakwon, dfreiber, dhanak, diagrawa, dkeler, dkuc, dmayorov, doconnor, dpaolell, drosa, drow, dschmidt, dsimansk, dymurray, eaguilar, ebaron, eborisov, eglynn, ehelms, ehugonne, flucifre, gbenhaim, ggainey, gmeno, gparvin, groman, hasun, ibolton, ikhan, jbalunas, jbritton, jburrell, jcantril, jchui, jdelft, jeder, jfula, jhe, jjoyce, jlanda, jlledo, jmatsuok, jmatthew, jmontleo, jolong, jowilson, jpasqual, jprabhak, jpretori, jsamir, jschluet, jtolenti, jturenov, jupierce, juwatts, kaycoth, kingland, kshier, ktsao, lball, lbragsta, lgamliel, lgarciaa, lhh, manissin, mbenjamin, mbiarnes, mbocek, mburns, mdellweg, mgarciac, mhackett, mhulan, mnovotny, mrunge, mwringe, nboldt, ngough, niyer, nmoumoul, nyancey, oaljalju, oezr, ometelka, orabin, osousa, pantinor, pcreech, pgaikwad, pjindal, ppalepu, ppostler, prdhamdh, psrna, ptisnovs, pvasanth, rbobbitt, rchan, rekumar, rgodfrey, rhaigner, rhel-process-autobot, rjohnson, rojacob, sabiswas, sakbas, sausingh, sbratsla, sdawley, sghai, sidsharm, simaishi, slucidi, smallamp, sostapov, sseago, stcannon, suppawar, swoodman, syedriko, teagle, thason, tmalecek, tsedmik, tsze, twaugh, tzivkovi, vereddy, veshanka, vimartin, vkarehfa, vkumar, vlaad, vvoronko, watson-tool-maintainers, wenshen, whayutin, wtam, xdharmai, yguenane |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: |
A flaw was found in the `os.Root` functionality of Go on Unix systems. This vulnerability allows an attacker to bypass intended directory restrictions by crafting a path that ends with a symbolic link and a trailing slash. When a file is opened in `os.Root` with such a path, the symbolic link is improperly followed, potentially leading to access to locations outside of the defined root directory. This could result in information disclosure or unauthorized file system access.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This issue has been addressed in the following products: Red Hat Enterprise Linux 10 Via RHSA-2026:37436 https://access.redhat.com/errata/RHSA-2026:37436 This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2026:37435 https://access.redhat.com/errata/RHSA-2026:37435 This issue has been addressed in the following products: Red Hat Enterprise Linux 10 Via RHSA-2026:38494 https://access.redhat.com/errata/RHSA-2026:38494 This issue has been addressed in the following products: Red Hat Enterprise Linux 10 Via RHSA-2026:38495 https://access.redhat.com/errata/RHSA-2026:38495 This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2026:38493 https://access.redhat.com/errata/RHSA-2026:38493 This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2026:38878 https://access.redhat.com/errata/RHSA-2026:38878 This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2026:38995 https://access.redhat.com/errata/RHSA-2026:38995 This issue has been addressed in the following products: Red Hat Enterprise Linux 10.0 Extended Update Support Via RHSA-2026:49702 https://access.redhat.com/errata/RHSA-2026:49702 This issue has been addressed in the following products: Red Hat Enterprise Linux 9.6 Extended Update Support Via RHSA-2026:49712 https://access.redhat.com/errata/RHSA-2026:49712 This issue has been addressed in the following products: Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions Via RHSA-2026:57649 https://access.redhat.com/errata/RHSA-2026:57649 This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.22 Via RHSA-2026:57361 https://access.redhat.com/errata/RHSA-2026:57361 This issue has been addressed in the following products: Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Via RHSA-2026:61253 https://access.redhat.com/errata/RHSA-2026:61253 This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.21 Via RHSA-2026:66350 https://access.redhat.com/errata/RHSA-2026:66350 This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.20 Via RHSA-2026:66375 https://access.redhat.com/errata/RHSA-2026:66375 |
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.