VDB
Sign up
MEDIUM5.3

GHSA-p782-xgp4-8hr8

golang.org/x/sys/unix has Incorrect privilege reporting in syscall

Quick fix

GHSA-p782-xgp4-8hr8 — golang.org/x/sys: upgrade to the fixed version with the command below.

go get golang.org/x/sys@v0.0.0-20220412211240-33da011f77ad

Details

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

### Specific Go Packages Affected golang.org/x/sys/unix

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/golang.org/x/sys
Introduced in: 0Fixed in: 0.0.0-20220412211240-33da011f77ad
Fixgo get golang.org/x/sys@v0.0.0-20220412211240-33da011f77ad

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/golang.org/x/sys"]}'