Privilege Escalation in Hibernate Validator

Description

In Hibernate Validator 5.2.x before 5.2.5.Final, 5.3.x before 5.3.6.Final, and 5.4.x before 5.4.2.Final, it was found that when the security manager's reflective permissions, which allows it to access the private members of the class, are granted to Hibernate Validator, a potential privilege escalation can occur. By allowing the calling code to access those private members without the permission an attacker may be able to validate an invalid instance and access the private member value via ConstraintViolation#getInvalidValue().

Basic information

Type
reviewed
Severity
high
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2020-06-15 19:57:48 UTC
Updated
2023-01-27 05:01:42 UTC
GitHub reviewed
2020-06-11 18:50:29 UTC
NVD published
2018-01-10

EPSS Score

Score Percentile
0.13% 32.05%

CVSS Scores

Base score Version Severity Vector
7.0 3.1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.

Identifiers

CWEs

CWE id Name
CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

Credits

  • JesseEstum (analyst)

Affected packages (3)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
maven org.hibernate:hibernate-validator >= 5.2.0, <= 5.2.4.Final 5.2.5.Final
maven org.hibernate:hibernate-validator >= 5.3.0, <= 5.3.5.Final 5.3.6.Final
maven org.hibernate:hibernate-validator >= 5.4.0, <= 5.4.1.Final 5.4.2.Final

References

cvelogic Threat Intelligence