Timing Attack Vulnerability in jasypt Package

jasypt Updated 02 Oct 2025

Summary

21/05/2017
N/A
Yes i
High
7.5

CVE-2014-9970: jasypt before 1.9.2 allows a timing attack against the password hash comparison. Affects jasypt versions < 1.9.2-1. Fixed in 1.9.2-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

jasypt is a popular Java library that provides encryption capabilities for Java applications. It simplifies the process of encrypting and decrypting data, making it easier for developers to secure sensitive information. However, prior to version 1.9.2, jasypt was susceptible to a timing attack during password hash comparisons, which could potentially allow attackers to gain unauthorized access to sensitive data.

Vulnerability Detail

The vulnerability identified as CVE-2014-9970 in jasypt versions before 1.9.2 allows attackers to exploit timing discrepancies in password hash comparisons. This flaw can lead to a situation where an attacker can determine valid passwords through careful observation of the time it takes to process authentication requests. The implications of this vulnerability are severe, as it can compromise the security of applications relying on jasypt for encryption, allowing unauthorized access to sensitive information.

How To Fix

Minimum fixed version

1.9.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade jasypt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not immediately possible, consider implementing a custom password comparison method that uses a constant-time algorithm to mitigate the risk of timing attacks. This can be done by using libraries that provide secure password hashing functions, such as bcrypt or Argon2, which are designed to resist timing attacks.

Conclusion

The jasypt package has a critical vulnerability (CVE-2014-9970) that allows timing attacks on password hash comparisons. Users are strongly advised to upgrade to version 1.9.2 or later to mitigate this risk. For those unable to upgrade immediately, implementing a secure password comparison method is recommended.

See every vulnerability recorded for jasypt →

Share this vulnerability

FAQ

CVE-2014-9970 is a vulnerability in the jasypt library that allows timing attacks against password hash comparisons.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If exploited, this vulnerability can allow attackers to gain unauthorized access to sensitive data by determining valid passwords through timing analysis.

All versions of jasypt before 1.9.2 are affected by this vulnerability.

If immediate upgrading is not feasible, implement a custom password comparison method using a constant-time algorithm to reduce the risk of timing attacks.

Related vulnerabilities

Recent vulnerabilities recorded for jasypt.

How To Fix

Minimum fixed version

1.9.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade jasypt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback