GO-2022-0171

Source
https://pkg.go.dev/vuln/GO-2022-0171
Import Source
https://vuln.go.dev/ID/GO-2022-0171.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2022-0171
Aliases
Published
2022-05-24T20:17:59Z
Modified
2024-06-03T20:51:31Z
Summary
Mishandled trust preferences for root certificates on Darwin in crypto/x509
Details

On Darwin, user's trust preferences for root certificates were not honored. If the user had a root certificate loaded in their Keychain that was explicitly not trusted, a Go program would still verify a connection using that root certificate.

Database specific
{
    "url": "https://pkg.go.dev/vuln/GO-2022-0171",
    "review_status": "REVIEWED"
}
References
Credits
    • Xy Ziemba

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.4
Introduced
1.7.0-0
Fixed
1.7.4

Ecosystem specific

{
    "imports": [
        {
            "goos": [
                "darwin"
            ],
            "path": "crypto/x509",
            "symbols": [
                "FetchPEMRoots",
                "execSecurityRoots"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2022-0171.json"