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 7.5 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 5.3th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
Threat & Defense at a Glance
Threat & Defense Details
Likely Mitigating ControlsAI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Contacts with security groups provide timely information on broken or risky cryptographic algorithms, reducing the likelihood of their selection and use.
Ongoing education and sharing of recommended practices helps organizations identify and migrate away from broken or risky cryptographic algorithms.
Cross-organization threat feeds commonly include advances in cryptanalysis and active exploits against weak or broken algorithms, allowing organizations to deprecate them proactively.
Capital planning and funding allow selection and ongoing support of strong cryptographic algorithms rather than weak or broken ones.
Risk updates surface newly-broken or risky cryptographic algorithms as threat intelligence and computing advances evolve, enabling timely replacement.
Scanners flag use of broken or weak cryptographic algorithms via known-vulnerability databases.
Enforces approved cryptographic algorithms for each use case, blocking use of broken or risky algorithms.
Flaw remediation replaces broken or risky cryptographic algorithms once safer implementations are released by vendors.
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.
NVD 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…
more
is fixed in 2.2.
Deeper analysisAI
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.
Details
- CWE(s)