Closed mend-for-github-com[bot] closed 9 months ago
:information_source: This issue was automatically closed by Mend because it is a duplicate of an existing issue: #31
:information_source: This issue was automatically closed by Mend because it is a duplicate of an existing issue: #31
Vulnerable Library - postgresql-42.5.0.jar
PostgreSQL JDBC Driver Postgresql
Library home page: https://jdbc.postgresql.org
Path to dependency file: /data/data-samples/sample-data-postgres-book/pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/postgresql/postgresql/42.5.0/postgresql-42.5.0.jar
Found in HEAD commit: 7b8cb47d60e217a5471918e15b838e9304037ddc
Oops, something went wrong. We couldn’t find a fix. Support token-ad0143569d0f47e1af10ae9316e9928d
Vulnerabilities
Reachable
Reachable
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2024-1597 (Reachable)
### Vulnerable Library - postgresql-42.5.0.jarPostgreSQL JDBC Driver Postgresql
Library home page: https://jdbc.postgresql.org
Path to dependency file: /data/data-samples/sample-data-postgres-book/pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/postgresql/postgresql/42.5.0/postgresql-42.5.0.jar
Dependency Hierarchy: - :x: **postgresql-42.5.0.jar** (Vulnerable Library)
Found in HEAD commit: 7b8cb47d60e217a5471918e15b838e9304037ddc
Found in base branch: develop
### Reachability Analysis This vulnerability is potentially reachable ``` io.americanexpress.synapse.data.mysql.config.BaseMySqlDataConfig (Application) -> com.mysql.cj.jdbc.MysqlDataSource (Extension) -> com.mysql.cj.jdbc.MysqlDataSourceFactory (Extension) -> com.mysql.cj.jdbc.ClientPreparedStatement (Extension) ... -> org.postgresql.jdbc.PgPreparedStatement (Extension) -> org.postgresql.core.v3.BatchedQuery (Extension) -> ❌ org.postgresql.core.v3.SimpleParameterList (Vulnerable Component) ``` ### Vulnerability Detailspgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE. Note this is not the default. In the default mode there is no vulnerability. A placeholder for a numeric value must be immediately preceded by a minus. There must be a second placeholder for a string value after the first placeholder; both must be on the same line. By constructing a matching string payload, the attacker can inject SQL to alter the query,bypassing the protections that parameterized queries bring against SQL Injection attacks. Versions before 42.7.2, 42.6.1, 42.5.5, 42.4.4, 42.3.9, and 42.2.8 are affected.
Publish Date: 2024-02-19
URL: CVE-2024-1597
### CVSS 3 Score Details (10.0)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Changed - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://www.cve.org/CVERecord?id=CVE-2024-1597
Release Date: 2024-02-19
Fix Resolution: org.postgresql:postgresql:42.2.8,42.3.9,42.4.4,42.5.5,42.6.1,42.7.2
In order to enable automatic remediation, please create workflow rules
CVE-2022-41946 (Reachable)
### Vulnerable Library - postgresql-42.5.0.jarPostgreSQL JDBC Driver Postgresql
Library home page: https://jdbc.postgresql.org
Path to dependency file: /data/data-samples/sample-data-postgres-book/pom.xml
Path to vulnerable library: /home/wss-scanner/.m2/repository/org/postgresql/postgresql/42.5.0/postgresql-42.5.0.jar
Dependency Hierarchy: - :x: **postgresql-42.5.0.jar** (Vulnerable Library)
Found in HEAD commit: 7b8cb47d60e217a5471918e15b838e9304037ddc
Found in base branch: develop
### Reachability Analysis This vulnerability is potentially reachable ``` io.americanexpress.synapse.data.mysql.config.BaseMySqlDataConfig (Application) -> org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter (Extension) -> org.hibernate.dialect.SQLServer2012Dialect (Extension) -> com.mysql.cj.jdbc.StatementImpl (Extension) ... -> org.postgresql.core.v3.BatchedQuery (Extension) -> org.postgresql.core.v3.SimpleParameterList (Extension) -> ❌ org.postgresql.util.StreamWrapper (Vulnerable Component) ``` ### Vulnerability Detailspgjdbc is an open source postgresql JDBC Driver. In affected versions a prepared statement using either `PreparedStatement.setText(int, InputStream)` or `PreparedStatemet.setBytea(int, InputStream)` will create a temporary file if the InputStream is larger than 2k. This will create a temporary file which is readable by other users on Unix like systems, but not MacOS. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system. This vulnerability does not allow other users to overwrite the contents of these directories or files. This is purely an information disclosure vulnerability. Because certain JDK file system APIs were only added in JDK 1.7, this this fix is dependent upon the version of the JDK you are using. Java 1.7 and higher users: this vulnerability is fixed in 4.5.0. Java 1.6 and lower users: no patch is available. If you are unable to patch, or are stuck running on Java 1.6, specifying the java.io.tmpdir system environment variable to a directory that is exclusively owned by the executing user will mitigate this vulnerability.
Publish Date: 2022-11-23
URL: CVE-2022-41946
### CVSS 3 Score Details (5.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: None - Availability Impact: None
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-562r-vg33-8x8h
Release Date: 2022-11-23
Fix Resolution: org.postgresql:postgresql:42.2.27,42.3.8,42.4.3,42.5.1
In order to enable automatic remediation, please create workflow rules