Skip to content

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented Mar 1, 2022

Motivation

OWASP dependency check fails with this error:

Error:  mariadb-java-client-2.6.0.jar: CVE-2020-28912, CVE-2021-46668, CVE-2021-46669, CVE-2021-46666, CVE-2021-46667, CVE-2021-46664, CVE-2021-46665, CVE-2021-46662, CVE-2021-46663, CVE-2021-46661

Modifications

  • upgrade mariadb jdbc driver version to 3.0.3

@lhotari
Copy link
Member Author

lhotari commented Mar 1, 2022

It looks like a false positive, jeremylong/DependencyCheck#2863 . It seems that the check added by #13972 has never passed? @dlg99 Can you confirm?

@dlg99
Copy link
Contributor

dlg99 commented Mar 2, 2022

@lhotari the check did pass before it was merged. The threat DB updates independently, sometimes several times a day and owasp plugin may misdetect something. If these are indeed false positives they can be suppressed https://github.com/apache/pulsar/blob/master/src/owasp-dependency-check-suppressions.xml

@dlg99
Copy link
Contributor

dlg99 commented Mar 2, 2022

I'll add that OWASP check had matched server vulnerabilities against client java libraries (e.g. clickhouse db server were matched to clickhouse-jdbc driver etc.) These happen due to too broadly matching patterns in the threat DB, if I understand correctly, and are safe to suppress.

Copy link
Contributor

@dlg99 dlg99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please suppress false positives for owasp check

@nodece
Copy link
Member

nodece commented Mar 8, 2022

Any updates?

<postgresql-jdbc.version>42.2.25</postgresql-jdbc.version>
<clickhouse-jdbc.version>0.3.2</clickhouse-jdbc.version>
<mariadb-jdbc.version>2.6.0</mariadb-jdbc.version>
<mariadb-jdbc.version>3.0.3</mariadb-jdbc.version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MariaDB Connector/J 3.0.3 is NOT fully compatible with the latest release of version 2.7.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nodece please elaborate more about the incompatibility.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The information from https://mariadb.com/kb/en/mariadb-connector-j-303-release-notes/.

NOTE: MariaDB Connector/J 3.0.3 is NOT fully compatible with the latest release of version 2.7.

@lhotari
Copy link
Member Author

lhotari commented Mar 8, 2022

closing this since #14593 resolves the OWASP dependency check false alarm.

@lhotari lhotari closed this Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connector area/security doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants