Skip to main content
← All vulnerabilities
CVE-2022-35942GHSA-J259-6C58-9M58

loopback-connector-postgresql Vulnerable to Improper Sanitization of `contains` Filter

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.5.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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. A patch was released in version 5.5.1. This affects users who does any of the following: - Connect to the database via the DataSource with `allowExtendedProperties: true` setting OR - Uses the connector's CRUD methods directly OR - Uses the connector's other methods to interpret the LoopBack filter. Users who are unable to upgrade should do the following if applicable: - Remove `allowExtendedProperties: true` DataSource setting - Add `allowExtendedProperties: false` DataSource setting - When passing directly to the connector functions, manually sanitize the user input for the `contains` LoopBack filter beforehand.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • loopbackio loopback-connector-postgresql

    fixed in 5.5.1

  • loopback-connector-postgresqlnpm

    fixed in 5.5.1

References 2

GitHub · loopbackio/loopback-connector-postgresql