Java

Java : Castor query mode is not read-only

Overview

A Castor query in not read-only mode is used. It can have negative performance implications.

Castor is an open source data binding framework for Java.

Using a Castor query in a mode other than Database.READONLY, can badly affect the performance of the application. Request in the Database.READONLY mode run about 7 times faster than queries in default mode (Database.SHARED).

If only reading is needed, using the Database.READONLY mode is consistent with the principle of least privilege.

LOW

DerScanner Severity Score

Check your Java code for this vulnerability, free

Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.

Try it on your code, free

By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.