CVE-2025-68702
Published: 13 January 2026
Summary
CVE-2025-68702 is a high-severity Use of a Broken or Risky Cryptographic Algorithm (CWE-327) vulnerability in Samrocketman Jervis. Its CVSS base score is 8.7 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 4.3th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified are NIST 800-53 SI-2 (Flaw Remediation) and SI-7 (Software, Firmware, and Information Integrity).
Deeper analysis
CVE-2025-68702 affects Jervis, a library used for Job DSL plugin scripts and shared Jenkins pipeline libraries, in versions prior to 2.2. The vulnerability stems from incorrect padding in hash string handling: the library applies padLeft(32, '0') to SHA-256 outputs, which produce 32 bytes or 64 hexadecimal characters, instead of the required padLeft(64, '0'). This constitutes a cryptographic misuse classified under CWE-327. The issue was published on 2026-01-13 and carries a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N), indicating high severity due to integrity impacts.
Any unauthenticated attacker with network access to a vulnerable Jenkins instance using Jervis can exploit this flaw with low complexity and no user interaction required. The padding error likely enables hash truncation or manipulation during validation processes in Job DSL or pipeline scripts, allowing attackers to bypass integrity checks on hashes. Successful exploitation results in high integrity impact (I:H), potentially permitting the injection or alteration of malicious scripts, configurations, or artifacts within Jenkins pipelines, while confidentiality and availability remain unaffected.
The GitHub security advisory (GHSA-67rj-pjg6-pq59) and fixing commit (c3981ff71de7b0f767dfe7b37a2372cb2a51974a) confirm the vulnerability is resolved in Jervis version 2.2 by correcting the padding to padLeft(64, '0'). Security practitioners should upgrade affected Jenkins shared libraries or Job DSL scripts to Jervis 2.2 or later as the primary mitigation, reviewing any custom hash-handling logic in pipelines for similar issues.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-2026
Vulnerability details
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…
more
is fixed in 2.2.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Vulnerability in public-facing Jenkins library enables remote unauthenticated exploitation to bypass hash integrity checks and inject/alter pipeline scripts.
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Directly requires timely remediation of software flaws like the incorrect SHA-256 padding in Jervis versions prior to 2.2 by upgrading to the fixed version.
Mandates proper integrity verification mechanisms for software and information, preventing bypasses enabled by the Jervis hash truncation vulnerability.
Ensures cryptographic mechanisms are implemented correctly to protect integrity, addressing the CWE-327 cryptographic misuse from improper SHA-256 padding.