CVE-2014-3558: Hibernate validator Improper Authentication Vulnerability

MODERATE
Advisory Identifier: GHSA-845h-985r-jrqh
CWE-287
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2014-3558
GHSA Identifier GHSA-845h-985r-jrqh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-287: Improper Authentication
Affected Product Hibernate validator
Package Ecosystem Maven
Published Date
Last Updated

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.

org.hibernate:hibernate-validator fixed: 4.2.1
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-validator</artifactId>
    <version>4.2.1</version>
</dependency>
org.hibernate:hibernate-validator fixed: 4.3.2
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-validator</artifactId>
    <version>4.3.2</version>
</dependency>
org.hibernate:hibernate-validator fixed: 5.1.2
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-validator</artifactId>
    <version>5.1.2</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2014-3558 Affected Hibernate validator Versions

3 component(s)
Fixed Versions:
4.2.14.3.25.1.2
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

NVD — CVE-2014-3558 NVD
https://nvd.nist.gov/vuln/detail/CVE-2014-3558
Security Fix Commit FIX COMMIT
https://github.com/hibernate/hibernate-validator/commit/2c95d4ea0ef20977be249e31a4a4f4f4f71c945d
Security Fix Commit FIX COMMIT
https://github.com/hibernate/hibernate-validator/commit/67fdff14831c035c25e098fe14bd86523d17f726
Security Fix Commit FIX COMMIT
https://github.com/hibernate/hibernate-validator/commit/7e7131939a4361a7cad3e77ab89a8462132c561c
Security Fix Commit FIX COMMIT
https://github.com/hibernate/hibernate-validator/commit/c489416f699a46859c134796b3ccfea41ef3ce52
Security Fix Commit FIX COMMIT
https://github.com/hibernate/hibernate-validator/commit/c9525ca544b1281e2b7c7347e86e87c86dc1dc6e
Security Fix Commit FIX COMMIT
https://github.com/hibernate/hibernate-validator/commit/e8c42b689df8c6752d635d02c6518da3fece3870
Security Fix Commit FIX COMMIT
https://github.com/hibernate/hibernate-validator/commit/f97c2021a03c825abdeca1692f5be51e77e76a8f
Security Fix Commit FIX COMMIT
https://github.com/hibernate/hibernate-validator/commit/fd4eaed7fb930db6a5e4c03742b4b3adcfecc90e
Hibernate validator Source Repository REPOSITORY
https://github.com/hibernate/hibernate-validator
Hibernate validator Source Repository REPOSITORY
https://github.com/victims/victims-cve-db/blob/master/database/java/2014/3558.yaml
hibernate.atlassian.net/browse/hv-912 WEB
https://hibernate.atlassian.net/browse/HV-912
rhn.redhat.com/errata/rhsa-2014-12... WEB
http://rhn.redhat.com/errata/RHSA-2014-1285.html
rhn.redhat.com/errata/rhsa-2014-12... WEB
http://rhn.redhat.com/errata/RHSA-2014-1286.html
rhn.redhat.com/errata/rhsa-2014-12... WEB
http://rhn.redhat.com/errata/RHSA-2014-1287.html
rhn.redhat.com/errata/rhsa-2014-12... WEB
http://rhn.redhat.com/errata/RHSA-2014-1288.html
rhn.redhat.com/errata/rhsa-2015-01... WEB
http://rhn.redhat.com/errata/RHSA-2015-0125.html
rhn.redhat.com/errata/rhsa-2015-07... WEB
http://rhn.redhat.com/errata/RHSA-2015-0720.html

Frequently Asked Questions

What is CVE-2014-3558?
CVE-2014-3558 is a security vulnerability in Hibernate validator involving Improper Authentication in Hibernate Validator under CWE-287: Improper Authentication.
Which Hibernate validator versions are affected?
Affected versions include releases prior to 4.2.1, 4.3.2, 5.1.2 across affected packages: org.hibernate:hibernate-validator.
What version fixes CVE-2014-3558?
Upgrading to 4.2.1, 4.3.2, 5.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hibernate-validator affected?
Yes, org.hibernate:hibernate-validator is affected in releases prior to 4.2.1, 4.3.2, 5.1.2. Upgrade your dependency to 4.2.1, 4.3.2, 5.1.2 or later.
What CWE is associated with CVE-2014-3558?
CVE-2014-3558 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Maven dependencies for CVE-2014-3558?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.hibernate'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}