Arbitrary Code Injection Affecting org.hibernate.validator:hibernate-validator package, versions [,6.2.0.Final)[6.2.1.Final,7.0.0.CR1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGHIBERNATEVALIDATOR-10300773
  • published4 Jun 2025
  • disclosed3 Jun 2025
  • creditUnknown

Introduced: 3 Jun 2025

NewCVE-2025-35036  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.hibernate.validator:hibernate-validator to version 6.2.0.Final, 7.0.0.CR1 or higher.

Overview

org.hibernate.validator:hibernate-validator is a Hibernate Validator Engine Relocation Artifact.

Affected versions of this package are vulnerable to Arbitrary Code Injection due to the interpolation of user-supplied input in constraint violation messages with Expression Language. An attacker can access sensitive information or execute arbitrary Java code by injecting malicious input into these messages.

CVSS Base Scores

version 4.0
version 3.1