Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2022-35942
August 12, 2022
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.
Affected Packages
loopback-connector-postgresql (NPM):
Affected version(s) >=1.0.0 <5.5.1
Fix Suggestion:
Update to version 5.5.1
loopback-connector-postgresql (NPM):
Affected version(s) >=1.0.0 <5.5.1
Fix Suggestion:
Update to version 5.5.1
loopback-connector-postgresql (NPM):
Affected version(s) >=1.0.0 <5.5.1
Fix Suggestion:
Update to version 5.5.1
loopback-connector-postgresql (NPM):
Affected version(s) >=1.0.0 <5.5.1
Fix Suggestion:
Update to version 5.5.1
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.4
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
9.3
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Improper Input Validation
EPSS
Base Score:
0.19