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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-01-13T14:52:31.000Z
- Modified: 2026-06-17T09:59:25.940Z
- Also known as: GHSA-67rj-pjg6-pq59
- Weaknesses: CWE-327
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- samrocketman jervis: < 2.2; before 2.2
- net.gleske:jervis (Maven): before 2.2

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/samrocketman/jervis/security/advisories/GHSA-67rj-pjg6-pq59> (patch, vendor-advisory, web)
- <https://github.com/samrocketman/jervis/commit/c3981ff71de7b0f767dfe7b37a2372cb2a51974a> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68702> (advisory)
- <https://github.com/samrocketman/jervis> (package)
- <https://github.com/samrocketman/jervis/blob/157d2b63ffa5c4bb1d8ee2254950fd2231de2b05/src/main/groovy/net/gleske/jervis/tools/SecurityIO.groovy#L622-L626> (web)
- <http://github.com/samrocketman/jervis/commit/c3981ff71de7b0f767dfe7b37a2372cb2a51974a> (web)

## Sources

- CVE List: [CVE-2025-68702](https://www.cve.org/CVERecord?id=CVE-2025-68702), CVE Terms of Use, modified 2026-01-13
- GitHub Advisory Database: [GHSA-67rj-pjg6-pq59](https://github.com/advisories/GHSA-67rj-pjg6-pq59), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2025-68702](https://nvd.nist.gov/vuln/detail/CVE-2025-68702), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-68702 · Whole record: https://cve.day/CVE-2025-68702.json · Rebuilt by cve.day 2026-11-25T22:59:10.586Z
