#3530·grype

False positive CVE-2025-35036 — hibernate-validator 6.0.23.SP1-redhat-00001 flagged but Red Hat backported the fix

Author: etarastCreated Jun 24, 2026Updated Sep 4, 2026
Labelsbug

Reproduce

bash
cat > /tmp/sbom_CVE-2025-35036.json << 'EOF'
{
  "bomFormat": "CycloneDX",
  "specVersion": "1.4",
  "components": [{
    "type": "library",
    "name": "hibernate-validator",
    "version": "6.0.23.SP1-redhat-00001",
    "group": "org.hibernate.validator",
    "purl": "pkg:maven/org.hibernate.validator/[email protected]"
  }]
}
EOF
grype sbom:/tmp/sbom_CVE-2025-35036.json

or with docker file FROM registry.access.redhat.com/ubi8/ubi-minimal:latest COPY hibernate-validator-6.0.23.SP1-redhat-00001.jar /opt/lib/hibernate-validator-6.0.23.SP1-redhat-00001.jar

Expected

No vulnerability reported for CVE-2025-35036.

Actual

hibernate-validator 6.0.23.SP1-redhat-00001 6.2.0.CR1 java-archive CVE-2025-35036 High

Root Cause

The upstream GitHub Advisory only lists 6.2.0.CR1 as the patched version. It does not account for Red Hat's backport into the 6.x maintenance stream.

Evidence that 6.0.23.SP1-redhat-00001 includes the fix

Suggested Fix

Grype should recognize OS vendor backport versioning conventions. When a package version contains a vendor suffix (e.g. -redhat-, -suse-, -debian-), Grype could consult the vendor's CVE API to verify if the fix was backported before flagging it as vulnerable.

Grype version: 0.112.0