CVE-2025-68702 Jervis has a SHA-256 Hex String Padding Bug

High 8.7 Published Updated

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.

PackageAffectedFixed in
net.gleske:jervis MavenAll versions2.2
net.gleske:jervis MavenAll versions2.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.

Sources

Also known as GHSA-67rj-pjg6-pq59.

Is CVE-2025-68702 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free