CVE-2015-0886: Integer Overflow or Wraparound in JBCrypt

org.mindrot:jbcrypt Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
Not published

CVE-2015-0886: Integer Overflow or Wraparound in JBCrypt. Affects org.mindrot:jbcrypt versions < 0.4. Fixed in 0.4. How to fix ↓

Also tracked for

The same CVE-2015-0886 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

JBCrypt is a key-stretching implementation library that provides password hashing functionality. It is commonly used in applications to securely store and verify user passwords. This vulnerability (CVE-2015-0886) affects versions prior to 0.4 of the JBCrypt library. The vulnerability arises from an integer overflow in the crypt_raw method, which can make it easier for remote attackers to determine cleartext values of password hashes through a brute-force attack against hashes associated with the maximum exponent.

Vulnerability Detail

The vulnerability in JBCrypt allows attackers to exploit an integer overflow or wraparound issue in the crypt_raw method. By manipulating the maximum exponent and performing a brute-force attack on the password hashes, an attacker can potentially determine the original cleartext values of the password hashes. This can lead to unauthorized access to user accounts and compromise the security of the application. The vulnerability has a moderate severity rating and is classified under CWE-190.

How To Fix

Minimum fixed version

0.4

This is the first release that contains the fix.

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

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended solution is to upgrade to the fixed version of the JBCrypt library.

Conclusion

The CVE-2015-0886 vulnerability in JBCrypt exposes a potential risk of password hash compromise. It is crucial for developers to upgrade to the fixed version of the JBCrypt library (0.4 or later) to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.mindrot:jbcrypt →

Share this vulnerability

FAQ

JBCrypt is a key-stretching implementation library used for password hashing in applications.

This vulnerability can allow attackers to determine the original cleartext values of password hashes, potentially leading to unauthorized access to user accounts.

To fix this vulnerability, upgrade to version 0.4 or later of the JBCrypt library.

No specific workaround is mentioned for this vulnerability. Upgrading to the fixed version is the recommended solution.

This vulnerability has a moderate severity rating.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0.4

This is the first release that contains the fix.

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