CVE-2014-3558: Hibernate validator Improper Authentication Vulnerability
MODERATECVE-2014-3558 is a MODERATE improper authentication vulnerability (CWE-287: Improper Authentication) affecting Hibernate validator libraries in the Maven ecosystem. The issue involves improper authentication in hibernate validator. Remediation is available by upgrading affected packages to version 4.2.1, 4.3.2, 5.1.2.
CVE-2014-3558 at a Glance
How to Fix CVE-2014-3558
To remediate this vulnerability, upgrade all affected Hibernate validator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.2.1</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.3.2</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.1.2</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.hibernate
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2014-3558, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.hibernate
Analyze the terminal output to locate any version of Hibernate validator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.hibernate command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Hibernate validator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2014-3558 Affected Hibernate validator Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.hibernate:hibernate-validator
|
Maven |
≥ 4.1.0
< 4.2.1
|
4.2.1
|
|
org.hibernate:hibernate-validator
|
Maven |
≥ 4.3.0
< 4.3.2
|
4.3.2
|
|
org.hibernate:hibernate-validator
|
Maven |
≥ 5.0.0
< 5.1.2
|
5.1.2
|
References
Frequently Asked Questions
What is CVE-2014-3558?
Which Hibernate validator versions are affected?
What version fixes CVE-2014-3558?
Is hibernate-validator affected?
What CWE is associated with CVE-2014-3558?
How can I check Maven dependencies for CVE-2014-3558?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-845h-985r-jrqh",
"modified" : "2024-04-16T16:31:47Z",
"published" : "2022-05-14T01:18:38Z",
"aliases" : [ "CVE-2014-3558" ],
"summary" : "Improper Authentication in Hibernate Validator",
"details" : "ReflectionHelper (org.hibernate.validator.util.ReflectionHelper) in Hibernate Validator 4.1.0 before 4.2.1, 4.3.x before 4.3.2, and 5.x before 5.1.2 allows attackers to bypass Java Security Manager (JSM) restrictions and execute restricted reflection calls via a crafted application.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.hibernate:hibernate-validator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"fixed" : "4.2.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.hibernate:hibernate-validator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.3.0"
}, {
"fixed" : "4.3.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.hibernate:hibernate-validator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-3558"
}, {
"type" : "WEB",
"url" : "https://github.com/hibernate/hibernate-validator/commit/2c95d4ea0ef20977be249e31a4a4f4f4f71c945d"
}, {
"type" : "WEB",
"url" : "https://github.com/hibernate/hibernate-validator/commit/67fdff14831c035c25e098fe14bd86523d17f726"
}, {
"type" : "WEB",
"url" : "https://github.com/hibernate/hibernate-validator/commit/7e7131939a4361a7cad3e77ab89a8462132c561c"
}, {
"type" : "WEB",
"url" : "https://github.com/hibernate/hibernate-validator/commit/c489416f699a46859c134796b3ccfea41ef3ce52"
}, {
"type" : "WEB",
"url" : "https://github.com/hibernate/hibernate-validator/commit/c9525ca544b1281e2b7c7347e86e87c86dc1dc6e"
}, {
"type" : "WEB",
"url" : "https://github.com/hibernate/hibernate-validator/commit/e8c42b689df8c6752d635d02c6518da3fece3870"
}, {
"type" : "WEB",
"url" : "https://github.com/hibernate/hibernate-validator/commit/f97c2021a03c825abdeca1692f5be51e77e76a8f"
}, {
"type" : "WEB",
"url" : "https://github.com/hibernate/hibernate-validator/commit/fd4eaed7fb930db6a5e4c03742b4b3adcfecc90e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hibernate/hibernate-validator"
}, {
"type" : "WEB",
"url" : "https://github.com/victims/victims-cve-db/blob/master/database/java/2014/3558.yaml"
}, {
"type" : "WEB",
"url" : "https://hibernate.atlassian.net/browse/HV-912"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-1285.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-1286.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-1287.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-1288.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-0125.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-0720.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-07T22:41:16Z",
"nvd_published_at" : "2014-09-30T14:55:00Z"
}
}