# CVE-2022-29526: golang-1.18: Go before 1.17.10 and 1.18.x before 1.18.2 has Incorrect Privilege Assignment

CVE-2022-29526 is fixed in 24 products on 1 platform, first by RLSA-2022:5337, released June 28, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-29526
- Priority: High
- CVSS: 7.5 (Medium)
- EPSS: 0.0295
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 23, 2022

## Description

Go before 1.17.10 and 1.18.x before 1.18.2 has Incorrect Privilege Assignment. When called with a non-zero flags parameter, the Faccessat function could incorrectly report that a file is accessible.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | compat-golang-github-cpuguy83-md2man-2-devel amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | delve RHEL 8 | 0:1.7.2-1.module+el8.6.0+12972+ebab5911 | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | delve ol 8 | 0:1.8.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | delve rocky 8 | 0:1.7.2-1.module+el8.6.0+824+8e984c20 | [RLSA-2022:5337](https://patchblox.com/security/data/fix/linux/rlsa-2022-5337.md) | Jun 28, 2022 |
| Linux | go-toolset RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | go-toolset RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | go-toolset ol 8 | 0:1.18.3-1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | go-toolset rocky 8 | 0:1.17.10-1.module+el8.6.0+986+efe4cea4 | [RLSA-2022:5337](https://patchblox.com/security/data/fix/linux/rlsa-2022-5337.md) | Jun 28, 2022 |
| Linux | go-toolset rocky 9 | 0:1.17.12-1.el9_0 | [RLSA-2022:5799](https://patchblox.com/security/data/fix/linux/rlsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang rocky 8 | 0:1.17.10-1.module+el8.6.0+986+efe4cea4 | [RLSA-2022:5337](https://patchblox.com/security/data/fix/linux/rlsa-2022-5337.md) | Jun 28, 2022 |
| Linux | golang rocky 9 | 0:1.17.12-1.el9_0 | [RLSA-2022:5799](https://patchblox.com/security/data/fix/linux/rlsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-1.16 Ubuntu 18.04.6 LTS (bionic) | 1.16.2-0ubuntu1~18.04.2+esm1 | [golang-1.16 1.16.2-0ubuntu1~18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-1.16-1.16.2-0ubuntu1-18.04.2-esm1.md) | Apr 6, 2023 |
| Linux | golang-1.16 Ubuntu 20.04 LTS (focal) | 1.16.2-0ubuntu1~20.04.1 | [golang-1.16 1.16.2-0ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-1.16-1.16.2-0ubuntu1-20.04.1.md) | Apr 6, 2023 |
| Linux | golang-1.16-go Ubuntu 18.04.6 LTS (bionic) | 1.16.2-0ubuntu1~18.04.2+esm1 | [golang-1.16-go 1.16.2-0ubuntu1~18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-1.16-go-1.16.2-0ubuntu1-18.04.2-esm1.md) | Apr 6, 2023 |
| Linux | golang-1.16-go Ubuntu 20.04 LTS (focal) | 1.16.2-0ubuntu1~20.04.1 | [golang-1.16-go 1.16.2-0ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-1.16-go-1.16.2-0ubuntu1-20.04.1.md) | Apr 6, 2023 |
| Linux | golang-1.16-src Ubuntu 18.04.6 LTS (bionic) | 1.16.2-0ubuntu1~18.04.2+esm1 | [golang-1.16-src 1.16.2-0ubuntu1~18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-1.16-src-1.16.2-0ubuntu1-18.04.2-esm1.md) | Apr 6, 2023 |
| Linux | golang-1.16-src Ubuntu 20.04 LTS (focal) | 1.16.2-0ubuntu1~20.04.1 | [golang-1.16-src 1.16.2-0ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-1.16-src-1.16.2-0ubuntu1-20.04.1.md) | Apr 6, 2023 |
| Linux | golang-1.18 Ubuntu 18.04.6 LTS (bionic) | 1.18.1-1ubuntu1~18.04.4 | [golang-1.18 1.18.1-1ubuntu1~18.04.4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-1.18-1.18.1-1ubuntu1-18.04.4.md) | Apr 6, 2023 |
| Linux | golang-1.18 Ubuntu 20.04 LTS (focal) | 1.18.1-1ubuntu1~20.04.2 | [golang-1.18 1.18.1-1ubuntu1~20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-1.18-1.18.1-1ubuntu1-20.04.2.md) | Apr 6, 2023 |
| Linux | golang-1.18 Ubuntu 22.04.1 LTS (jammy) | 1.18.1-1ubuntu1.1 | [golang-1.18 1.18.1-1ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-golang-1.18-1.18.1-1ubuntu1.1.md) | Apr 6, 2023 |
| Linux | golang-1.18-go Ubuntu 18.04.6 LTS (bionic) | 1.18.1-1ubuntu1~18.04.4 | [golang-1.18-go 1.18.1-1ubuntu1~18.04.4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-1.18-go-1.18.1-1ubuntu1-18.04.4.md) | Apr 6, 2023 |
| Linux | golang-1.18-go Ubuntu 20.04 LTS (focal) | 1.18.1-1ubuntu1~20.04.2 | [golang-1.18-go 1.18.1-1ubuntu1~20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-1.18-go-1.18.1-1ubuntu1-20.04.2.md) | Apr 6, 2023 |
| Linux | golang-1.18-go Ubuntu 22.04.1 LTS (jammy) | 1.18.1-1ubuntu1.1 | [golang-1.18-go 1.18.1-1ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-golang-1.18-go-1.18.1-1ubuntu1.1.md) | Apr 6, 2023 |
| Linux | golang-1.18-src Ubuntu 18.04.6 LTS (bionic) | 1.18.1-1ubuntu1~18.04.4 | [golang-1.18-src 1.18.1-1ubuntu1~18.04.4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-golang-1.18-src-1.18.1-1ubuntu1-18.04.4.md) | Apr 6, 2023 |
| Linux | golang-1.18-src Ubuntu 20.04 LTS (focal) | 1.18.1-1ubuntu1~20.04.2 | [golang-1.18-src 1.18.1-1ubuntu1~20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-golang-1.18-src-1.18.1-1ubuntu1-20.04.2.md) | Apr 6, 2023 |
| Linux | golang-1.18-src Ubuntu 22.04.1 LTS (jammy) | 1.18.1-1ubuntu1.1 | [golang-1.18-src 1.18.1-1ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-golang-1.18-src-1.18.1-1ubuntu1.1.md) | Apr 6, 2023 |
| Linux | golang-bin RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-bin RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-bin amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-bin ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-docs RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-docs RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-docs amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-docs ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-github-cpuguy83-md2man amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | golang-github-cpuguy83-md2man-debuginfo amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | golang-github-cpuguy83-md2man-debugsource amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | golang-github-cpuguy83-md2man-devel amzn 2023 | 2.0.2-22.amzn2023.0.2 | [ALAS2023-2023-047](https://patchblox.com/security/data/fix/linux/alas2023-2023-047.md) | Feb 17, 2023 |
| Linux | golang-misc RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-misc RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-misc amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-misc ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-race RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-race RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-race amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-race ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-shared amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-src RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-src RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-src amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-src ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golang-tests RHEL 8 | 0:1.17.10-1.module+el8.6.0+15486+6d4da7db | [RHSA-2022:5337](https://patchblox.com/security/data/fix/linux/rhsa-2022-5337.md) | Jun 30, 2022 |
| Linux | golang-tests RHEL 9 | 0:1.17.12-1.el9_0 | [RHSA-2022:5799](https://patchblox.com/security/data/fix/linux/rhsa-2022-5799.md) | Aug 1, 2022 |
| Linux | golang-tests amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-tests ol 8 | 0:1.18.3-1.0.1.module+el8.6.0+20704+139a7dad | [ELSA-2022-17956](https://patchblox.com/security/data/fix/linux/elsa-2022-17956.md) | Jul 12, 2022 |
| Linux | golist amzn 2023 | 0.10.1-11.amzn2023.0.3 | [ALAS2023-2023-046](https://patchblox.com/security/data/fix/linux/alas2023-2023-046.md) | Feb 17, 2023 |
| Linux | golist-debuginfo amzn 2023 | 0.10.1-11.amzn2023.0.3 | [ALAS2023-2023-046](https://patchblox.com/security/data/fix/linux/alas2023-2023-046.md) | Feb 17, 2023 |
| Linux | golist-debugsource amzn 2023 | 0.10.1-11.amzn2023.0.3 | [ALAS2023-2023-046](https://patchblox.com/security/data/fix/linux/alas2023-2023-046.md) | Feb 17, 2023 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
