GHSA-jg7w-cxjv-98c2

Suggest an improvement
Source
https://github.com/advisories/GHSA-jg7w-cxjv-98c2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-jg7w-cxjv-98c2/GHSA-jg7w-cxjv-98c2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jg7w-cxjv-98c2
Aliases
Related
Published
2023-10-31T22:23:44Z
Modified
2024-08-21T14:56:53.735628Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
SpiceDB leaks information in log files when URI cannot be parsed
Details

SpiceDB is an open source, Google Zanzibar-inspired database for creating and managing security-critical application permissions. When the provided datastore URI is malformed (e.g. by having a password which contains :) the full URI (including the provided password) is printed, so that the password is shown in the logs. Version 1.27.0-rc1 patches this issue.

Example output:

terminated with errors error="unable to create migration driver for postgres: parse \"postgres://spicedb:<PASSWORD IN PLAINTEXT>": invalid port \"<PASSWORD IN PLAINTEXT>\" after host"
Database specific
{
    "nvd_published_at": "2023-10-31T16:15:10Z",
    "cwe_ids": [
        "CWE-532"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-10-31T22:23:44Z"
}
References

Affected packages

Go / github.com/authzed/spicedb

Package

Name
github.com/authzed/spicedb
View open source insights on deps.dev
Purl
pkg:golang/github.com/authzed/spicedb

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.27.0-rc1