CVE-2025-68702 Details
Description
Jervis is a library for Job DSL plugin scripts and shared Jenkins pipeline libraries. Prior to 2.2, Jervis uses padLeft(32, '0') when it should use padLeft(64, '0') because SHA-256 produces 32 bytes which equates to 64 hex characters. This vulnerability is fixed in 2.2.
A vulnerability exists in the Jervis library for Job DSL plugin scripts and shared Jenkins pipeline libraries, in versions prior to 2.2. The issue arises because the library incorrectly pads SHA-256 hash outputs. SHA-256 generates a 32-byte hash, equivalent to 64 hexadecimal characters, but the library's padding function only adds enough zeros to reach 32 characters. This discrepancy can lead to inconsistent hash lengths, comparison failures for hashes with leading zeros, and potential security issues in hash-based comparisons. While this vulnerability is considered low risk for internal use of the library, it could have significant implications for external consumers who rely on these hashing methods.
Users can upgrade to Jervis version 2.2, which addresses the padding issue by correctly formatting the SHA-256 hash output.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-327 | Use of a Broken or Risky Cryptographic Algorithm | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| samrocketman jervis | < 2.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 20, 2026 | Initial Analysis | [email protected] |
| Jan 13, 2026 | New CVE Received | [email protected] |