CVE-2024-34715: Partial Password Exposure Vulnerability in Fides Webserver Logs
Fides is an open-source privacy engineering platform. 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. As a result users are subject to a 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 known workarounds for this vulnerability.
Other sources
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.
Impact Partial exposure of hosted database password in webserver logs
Patches 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.
Workarounds There are no workarounds.
Proof of Concept 1. Create a hosted PostgreSQL database for Fides with a password including @ or $ e.g. p@ssword 2. Run Fides and observe failure, sample log attached
fides | 2024-02-28 14:27:52.609 | ERROR | fides.api.db.database:configuredb: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
— GitHub
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-34715?
CVE-2024-34715 is considered a high severity vulnerability due to its potential impact on database connection security.
How do I fix CVE-2024-34715?
To fix CVE-2024-34715, upgrade the ethyca-fides package to version 2.37.0 or later.
What is the impact of CVE-2024-34715 on my application?
CVE-2024-34715 may allow unauthorized access to the database if the webserver password contains certain special characters.
Which versions of ethyca-fides are affected by CVE-2024-34715?
CVE-2024-34715 affects versions of ethyca-fides prior to 2.37.0.
What systems are vulnerable to CVE-2024-34715?
Any system using the ethyca-fides package for webserver database connections with special character passwords is vulnerable to CVE-2024-34715.