Wiz Agents & Workflows are here

CVE-2020-25638
Java vulnerability analysis and mitigation

Overview

A flaw was found in hibernate-core in versions prior to and including 5.4.23.Final. A SQL injection vulnerability exists in the implementation of the JPA Criteria API that can permit unsanitized literals when a literal is used in the SQL comments of the query (NVD, Red Hat Bugzilla).

Technical details

The vulnerability is tracked as CVE-2020-25638 with a CVSS v3.1 Base Score of 7.4 (High). The attack vector is Network-based with High attack complexity, requiring no privileges or user interaction. The scope is Unchanged with High impact on both Confidentiality and Integrity but no impact on Availability (NVD).

Impact

This vulnerability could allow an attacker to access unauthorized information or possibly conduct further attacks. The highest threat from this vulnerability is to data confidentiality and integrity, as it could enable unauthorized data retrieval, updates, or deletion if the attacker has knowledge of table and column names (Red Hat Bugzilla).

Mitigation and workarounds

As a mitigation, users can set hibernate.use_sql_comments to false, which is the default value, or use named parameters instead of literals. For permanent remediation, users should upgrade to versions after 5.4.23.Final (Red Hat Bugzilla).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34361CRITICAL9.3
  • JavaJava
  • ca.uhn.hapi.fhir:org.hl7.fhir.validation
NoYesMar 30, 2026
CVE-2026-34214HIGH7.7
  • JavaJava
  • trino
NoYesMar 29, 2026
CVE-2026-34359HIGH7.4
  • JavaJava
  • ca.uhn.hapi.fhir:org.hl7.fhir.core
NoYesMar 30, 2026
CVE-2026-34237MEDIUM6.1
  • JavaJava
  • io.modelcontextprotocol.sdk:mcp-core
NoYesMar 30, 2026
CVE-2026-34360MEDIUM5.8
  • JavaJava
  • ca.uhn.hapi.fhir:org.hl7.fhir.core
NoYesMar 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management