CVE-2025-68702 Jervis has a SHA-256 Hex String Padding Bug
Incorrect hex padding in SHA-256 hashing may lead to weak cryptographic integrity or collisions in Jenkins pipeline scripts.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-68702?
CVE-2025-68702 is a high-severity vulnerability in samrocketman jervis, published on 13 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-327
Which versions are affected by CVE-2025-68702?
2 open source packages ship an affected version, including net.gleske:jervis. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
net.gleske:jervis Maven | All versions | 2.2 |
net.gleske:jervis Maven | All versions | 2.2 |
Products include Samrocketman Jervis.
How do I fix CVE-2025-68702?
Upgrade net.gleske:jervis to 2.2 or later.
Is CVE-2025-68702 being exploited?
There is no known exploitation of CVE-2025-68702 in the wild and no public exploit code.
Other vulnerabilities in samrocketman jervis
- CVE-2025-68698 Jervis has an RSA PKCS#1 v1.5 Padding Vulnerability
- CVE-2025-68701 Jervis has Deterministic AES IV Derivation from Passphrase
- CVE-2025-68703 Jervis has a Salt for PBKDF2 derived from password
- CVE-2025-68931 Jervis has AES CBC Mode Without Authentication
- CVE-2025-68704 Jervis has a Weak Random for Timing Attack Mitigation
Sources
Also known as GHSA-67rj-pjg6-pq59.