Improper input validation on the contains LoopBack filter may allow for arbitrary SQL injection.
When the extended filter property contains is permitted to be interpreted by the Postgres connector, it is possible to inject arbitrary SQL which may affect the confidentiality and integrity of data stored on the connected database.
This affects users who does any of the following:
allowExtendedProperties: true setting ORPatch release loopback-connector-postgresql@5.5.1 has been published of which resolves this issue.
Users who are unable to upgrade should do the following if applicable:
allowExtendedProperties: true DataSource settingallowExtendedProperties: false DataSource settingcontains LoopBack filter beforehand.{
"nvd_published_at": "2022-08-12T23:15:00Z",
"github_reviewed_at": "2022-08-11T21:13:43Z",
"cwe_ids": [
"CWE-20",
"CWE-89"
],
"severity": "CRITICAL",
"github_reviewed": true
}