Vulnerabilities |
15 via 15 paths |
|---|---|
Dependencies |
6 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
critical severity
new
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.15.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to SQL Injection in the Parser class and in the sqlright and sqltimestampdiff methods of EscapedFunctions2, which end a {d}, {t}, {ts}, {oj} or {escape} JDBC escape at a } inside a quoted literal or comment, do not recognize dollar-quote tags containing non-ASCII symbols or spaces, read the remainder of an E'' string after a doubled quote as a standard string, and emit a minus sign directly before an argument. An attacker who controls a value that the application quotes can execute SQL as the application's database role by placing a }, a dollar-quote tag, a \' or a negative argument in that value. The value must sit inside a JDBC escape, a dollar quote with such a tag, an E'' string with a doubled quote, or after a negative right or timestampdiff argument. The E'' case with bound parameters requires preferQueryMode=simple.
Workaround
This vulnerability can be avoided, except for the dollar-quote and E'' cases, by disabling JDBC escape processing with Statement.setEscapeProcessing(false).
PoC
String since = "2024-01-01 }{fn locate($$ */ $$,$$ is null)::int))) UNION SELECT token FROM api_keys --$$,{oj (/*";
stmt.executeQuery("SELECT 1 WHERE now() >= {ts '" + since.replace("'", "''") + "'}");
Remediation
Upgrade org.postgresql:postgresql to version 42.7.15 or higher.
References
critical severity
new
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.15.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to SQL Injection in the SimpleParameterList.quoteAndCast method, the statement cache keyed by BaseQueryKey and the Utils.escapeLiteral method, which quote simple-mode string parameters for the driver's last known standard_conforming_strings value, reuse a query parse made under the other value, and leave the yen sign unescaped although the EUC_JP and Shift_JIS charsets encode it as a backslash. An attacker who controls a string parameter can execute SQL as the application's database role by supplying a value beginning with \' (or ¥') that ends the literal when the server reads it with standard_conforming_strings off. This requires preferQueryMode=simple and standard_conforming_strings off on the server or turned off during the session, by an earlier statement of the same request, a trigger or a configuration reload. The yen-sign case additionally requires allowEncodingChanges=true with an EUC_JP or SJIS client encoding, and also affects PGConnection.escapeLiteral.
Workaround
This vulnerability can be avoided by leaving preferQueryMode at its default (extended), and by keeping standard_conforming_strings on with the server setting enforced for the application role.
PoC
// preferQueryMode=simple, autocommit off
PreparedStatement ps = conn.prepareStatement("SET LOCAL standard_conforming_strings = off; SELECT ?");
ps.setString(1, "\\'), (SELECT $$injected$$) --");
ps.execute();
Remediation
Upgrade org.postgresql:postgresql to version 42.7.15 or higher.
References
critical severity
new
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.15.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to Failing Open in the SslMode.of method, Driver and the BaseDataSource.setUrl method, which map ssl values other than true or empty (such as 1, on, yes or verify-full) to sslmode=prefer or no TLS, ignore a service given in the connection Properties, and keep a previously set sslmode, channelBinding or gssEncMode when setUrl is called again. An attacker on the network path can read and modify the traffic of an affected connection, including the password for some authentication methods, by refusing TLS or presenting any certificate. This affects only applications that leave sslmode unset and use such an ssl value, pass service in Properties rather than the URL, or call setUrl after another setUrl or property setter on a DataSource.
Workaround
This vulnerability can be avoided by setting sslmode explicitly in the URL or Properties (for example sslmode=verify-full), passing service in the URL, and setting TLS properties on a DataSource after its last setUrl call.
Remediation
Upgrade org.postgresql:postgresql to version 42.7.15 or higher.
References
critical severity
new
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.15.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character in the ConnectionFactoryImpl class, which writes startup parameter values into the NUL-terminated StartupMessage without rejecting embedded NUL characters, including %00 decoded from a JDBC URL. An attacker who controls a startup parameter such as the database name, currentSchema or options can override user, database, replication or other startup parameters by appending a NUL followed by additional name and value pairs, since the server keeps the last assignment of each name. A connection as a different role succeeds only with trust authentication, or with scram-sha-256 when the injected role has the same password as the configured one, because the md5 response is computed over the originally configured username.
Remediation
Upgrade org.postgresql:postgresql to version 42.7.15 or higher.
References
critical severity
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.6.1.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to SQL Injection when using PreferQueryMode=SIMPLE, which is not the default setting. By passing in a numeric value placeholder immediately preceded by a minus and followed by a second placeholder for a string value, on the same line, an attacker can construct a payload that alters the parameterized query into which it is interpolated. This effectively bypasses the protections against SQL Injection that parameterized queries offer.
Remediation
Upgrade org.postgresql:postgresql to version 42.2.28.jre7, 42.3.9, 42.4.4, 42.5.5, 42.6.1, 42.7.2 or higher.
References
high severity
- Vulnerable module: com.google.protobuf:protobuf-java
- Introduced through: mysql:mysql-connector-java@8.0.30
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › mysql:mysql-connector-java@8.0.30 › com.google.protobuf:protobuf-java@3.19.4Remediation: Upgrade to mysql:mysql-connector-java@8.0.31.
Overview
com.google.protobuf:protobuf-java is a Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.
Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the parsing of nested groups or series of SGROUP tags as unknown fields with DiscardUnknownFieldsParser or Java Protobuf Lite parser, or against Protobuf map fields. An attacker can cause infinite recursion by sending malicious Protocol Buffer data.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade com.google.protobuf:protobuf-java to version 3.25.5, 4.27.5, 4.28.2 or higher.
References
high severity
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.11.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling during the client-side SCRAM-SHA-256 authentication. An attacker can cause excessive CPU consumption by specifying a very large PBKDF2 iteration count during authentication attempts from a malicious server. This can lead to exhaustion of client CPU resources and disruption of connection pools.
Workaround
The following measures can reduce exposure:
Only connect to trusted PostgreSQL servers whose identity is verified. Connect only to trusted PostgreSQL servers, and verify server identity with TLS using
sslmode=verify-fulland a trusted CA. TLS without certificate and hostname verification is not sufficient as an active network attacker can still impersonate the server.Do not rely on
loginTimeoutas a complete mitigation on unpatched versions. On affected versions,loginTimeoutcan stop the waiting caller while the worker thread continues spending CPU.Avoid SCRAM on untrusted or interceptable connection paths. For those paths, use an authentication method that does not let the server choose a SCRAM PBKDF2 iteration count.
Reduce blast radius operationally. Limit parallel connection attempts, add retry backoff, isolate connection establishment in a separate worker or process when possible, and apply CPU or container limits where appropriate.
On trusted servers you control, keep SCRAM iteration counts at ordinary values. This does not defend against an attacker-controlled server, but it avoids unnecessary client cost when talking to legitimate servers.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade org.postgresql:postgresql to version 42.7.11 or higher.
References
high severity
new
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.15.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to Replay Attack in the GSSInputStream and GSSOutputStream classes, which do not check the duplicate, old, out-of-sequence and gap flags that GSSContext.unwrap() reports for incoming tokens, and share one MessageProp between reading and writing so that an incoming token without privacy clears the privacy flag used for outgoing tokens. An attacker on the network path can make the driver accept an earlier server reply from the same connection as the answer to the current query by dropping a reply and delivering an earlier one, and a server that sends one integrity-only packet causes all later SQL and parameter values to be sent unencrypted. This requires a GSS-encrypted connection, which needs gssEncMode=prefer or require (the default is allow from 42.2.18 onward and prefer before that) and a server that accepts GSS encryption. The privacy downgrade requires a token signed with the session key, which only the server can produce.
Remediation
Upgrade org.postgresql:postgresql to version 42.7.15 or higher.
References
high severity
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.12.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm in the ScramAuthenticator class, which fails open by confirming only that the server advertised a -PLUS mechanism while neither rejecting an empty channel binding nor verifying that the negotiated mechanism actually uses channel binding. An attacker intercepting the TLS connection can strip the MitM protection that channelBinding=require is meant to guarantee, downgrading authentication from SCRAM-SHA-256-PLUS to plain SCRAM-SHA-256, by presenting a certificate with a signature algorithm such as Ed25519, Ed448, or a post-quantum scheme that makes the bundled scram-client return an empty binding instead of failing. This affects only connections that explicitly set channelBinding=require, since the default prefer policy documents fallback as expected behavior.
Workaround
This vulnerability can be avoided by configuring the connection with sslmode=verify-full and a restrictive truststore, which provides equivalent MitM protection independent of channel binding.
Remediation
Upgrade org.postgresql:postgresql to version 42.7.12 or higher.
References
high severity
new
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.15.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to SQL Injection in the QueryExecutorImpl class, whose execute and fetch methods close the connection only for an IOException, so an unchecked exception thrown while a Bind message is being written leaves the partial message in the send buffer and the connection open. An attacker who controls the content of a later uploaded parameter value can execute SQL as the application's database role, because the server reads the bytes that follow the partial message as the rest of the interrupted value and then reads the attacker's bytes as a new Query message. The connection must first fail in this way, which requires either an application InputStream parameter that throws an unchecked exception, or a setBinaryStream() value without a length and over 51200 bytes that is spooled to a temporary file, released after its first Bind and executed again, including by the driver's own retry after SQLState 0A000 or 26000.
Workaround
This vulnerability can be avoided, for the spooled-stream case, by passing an explicit length to setBinaryStream() or by not executing a statement again after binding a stream parameter without a length.
Remediation
Upgrade org.postgresql:postgresql to version 42.7.15 or higher.
References
high severity
new
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.15.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to Uncontrolled Search Path Element in the TypeInfoCache, PgDatabaseMetaData and PgResultSetMetaData classes, whose catalog queries use unqualified operators and functions, and whose type lookups rank an unqualified type name by current_schemas(false), which leaves out pg_catalog. A user with CREATE on a schema of the application's search_path can execute SQL with the application role's privileges by defining an operator with an exact type match that pg_catalog lacks (such as oid = int4 or name = varchar), which runs when the application calls metadata methods such as getTableName() or getTables(). A user with only the default TEMP privilege can do the same by creating a domain with a built-in type name such as interval in their temporary schema, whose CHECK then runs in the application's session when the application binds a value of that type, for example a PGInterval parameter. This requires the application to call the affected metadata methods or to bind such typed values.
Workaround
This vulnerability can be avoided, for the operator case, by ensuring no schema on the application role's search_path is writable by other roles.
Remediation
Upgrade org.postgresql:postgresql to version 42.7.15 or higher.
References
high severity
- Vulnerable module: com.google.protobuf:protobuf-java
- Introduced through: mysql:mysql-connector-java@8.0.30
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › mysql:mysql-connector-java@8.0.30 › com.google.protobuf:protobuf-java@3.19.4Remediation: Upgrade to mysql:mysql-connector-java@8.0.31.
Overview
com.google.protobuf:protobuf-java is a Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.
Affected versions of this package are vulnerable to Denial of Service (DoS) in MessageReflection.java due to a text format parsing issue. Inputs containing multiple instances of non-repeated embedded messages with repeated or unknown fields causes objects to be converted back and forth between mutable and immutable forms, resulting in potentially long garbage collection pauses.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade com.google.protobuf:protobuf-java to version 3.16.3, 3.19.6, 3.20.3, 3.21.7 or higher.
References
high severity
- Vulnerable module: com.google.protobuf:protobuf-java
- Introduced through: mysql:mysql-connector-java@8.0.30
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › mysql:mysql-connector-java@8.0.30 › com.google.protobuf:protobuf-java@3.19.4Remediation: Upgrade to mysql:mysql-connector-java@8.0.31.
Overview
com.google.protobuf:protobuf-java is a Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.
Affected versions of this package are vulnerable to Denial of Service (DoS) when providing inputs containing multiple instances of non-repeated embedded messages, with repeated or unknown fields. The vulnerability exists due to a parsing issue in the Message-Type Extensions. Exploiting this vulnerability causes objects to be converted back and forth between mutable and immutable forms, resulting in potentially long garbage collection pauses.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade com.google.protobuf:protobuf-java to version 3.16.3, 3.19.6, 3.20.3, 3.21.7 or higher.
References
high severity
- Module: mysql:mysql-connector-java
- Introduced through: mysql:mysql-connector-java@8.0.30
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › mysql:mysql-connector-java@8.0.30
GPL-2.0 license
medium severity
new
- Vulnerable module: org.postgresql:postgresql
- Introduced through: org.postgresql:postgresql@42.6.0
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › org.postgresql:postgresql@42.6.0Remediation: Upgrade to org.postgresql:postgresql@42.7.15.
Overview
org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.
Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input in the ByteConverter.numeric(BigDecimal) method, which writes the weight and scale of a BigDecimal into the binary numeric format with only their low 16 bits and does not check either against the format's limits. An attacker who supplies a decimal number that the application passes to setBigDecimal() or setObject() can cause a different number to be stored without an error (for example 999999.99e-262144 as 999999.99, or 1e131072 as 0), or occupy a thread for minutes with a large scale such as 1e-200000000. This affects only connections where binary transfer is enabled for numeric, which is the default.
Workaround
This vulnerability can be avoided by setting binaryTransfer=false or excluding numeric with binaryTransferDisable=NUMERIC, so that BigDecimal values are sent as text.
PoC
PreparedStatement ps = conn.prepareStatement("SELECT ?::numeric");
ps.setBigDecimal(1, new BigDecimal("999999.99e-262144"));
ps.executeQuery();
Remediation
Upgrade org.postgresql:postgresql to version 42.7.15 or higher.
References
medium severity
- Vulnerable module: com.google.protobuf:protobuf-java
- Introduced through: mysql:mysql-connector-java@8.0.30
Detailed paths
-
Introduced through: ursinn/java-databaselib@ursinn/java-databaselib › mysql:mysql-connector-java@8.0.30 › com.google.protobuf:protobuf-java@3.19.4Remediation: Upgrade to mysql:mysql-connector-java@8.0.31.
Overview
com.google.protobuf:protobuf-java is a Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.
Affected versions of this package are vulnerable to Denial of Service (DoS) via the parsing procedure for binary and text format data. Input streams containing multiple instances of non-repeated embedded messages with repeated or unknown fields cause objects to be converted back and forth between mutable and immutable forms, resulting in potentially long garbage collection pauses.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade com.google.protobuf:protobuf-java to version 3.16.3, 3.19.6, 3.20.3, 3.21.7 or higher.