The Fides webserver requires a connection to a hosted PostgreSQL database for persistent storage of application data. If the password used by the webserver for this database connection includes special characters such as @
and $
, webserver startup fails and the part of the password following the special character is exposed in webserver error logs.
This is caused by improper escaping of the SQLAlchemy password string, see here and here for more info.
Partial exposure of hosted database password in webserver logs
The vulnerability has been patched in Fides version 2.37.0
. Users are advised to upgrade to this version or later to secure their systems against this threat.
There are no workarounds.
@
or $
e.g. p@ssword
fides | 2024-02-28 14:27:52.609 | ERROR | fides.api.db.database:configure_db:117 - Unable to configure database: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name "ssword@fides-db" to address: Name or service not known
{ "nvd_published_at": "2024-05-29T17:16:20Z", "cwe_ids": [ "CWE-116", "CWE-532" ], "severity": "LOW", "github_reviewed": true, "github_reviewed_at": "2024-05-29T15:25:51Z" }