SASL Handshake Bypass in Apache Thrift Java Client Library (CVE-2018-1320)

libthrift-java Updated 02 Oct 2025

Summary

07/01/2019
N/A
Yes i
High
7.5

CVE-2018-1320: Apache Thrift Java client library versions 0.5.0 through 0.11.0 can bypass SASL negotiation isComplete validation in the org.apache.thrift.transport.TSaslTransport class. Affects libthrift-java versions < 0.9.1-2.1. Fixed in 0.9.1-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

Apache Thrift is a software framework for scalable cross-language services development. It combines a software stack with a code generation engine to build services that can communicate seamlessly across different programming languages. The library is widely used for building high-performance applications. However, certain versions of the Apache Thrift Java client library are vulnerable to a security issue that can compromise the integrity of SASL (Simple Authentication and Security Layer) negotiations.

Vulnerability Detail

The vulnerability identified as CVE-2018-1320 affects Apache Thrift Java client library versions 0.5.0 through 0.11.0. It allows for the bypass of SASL negotiation isComplete validation in the TSaslTransport class. In production environments, an assert that checks if the SASL handshake has successfully completed can be disabled, leading to incomplete validation. This can potentially allow unauthorized access or manipulation of data, as the security mechanisms intended to protect the communication may not be effectively enforced.

How To Fix

Minimum fixed version

0.9.1-2.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libthrift-java

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

Workaround

If an immediate upgrade is not feasible, consider implementing additional security measures such as using a VPN or secure tunneling to protect the data in transit. However, this is not a substitute for patching the vulnerability.

Conclusion

CVE-2018-1320 is a significant vulnerability in the Apache Thrift Java client library that can compromise the security of applications using affected versions. It is crucial to upgrade to a patched version to ensure the integrity of SASL negotiations and protect against unauthorized access.

See every vulnerability recorded for libthrift-java →

Share this vulnerability

FAQ

CVE-2018-1320 is a vulnerability in the Apache Thrift Java client library that allows for the bypass of SASL negotiation validation, potentially leading to unauthorized access.

The affected versions are Apache Thrift Java client library versions 0.5.0 through 0.11.0.

You can use the Vulert platform to check if your application is affected by this vulnerability. Simply upload your manifest file like package-lock.json to monitor and alert for open-source vulnerabilities.

The CVSS score for CVE-2018-1320 is 7.5, indicating a high severity level.

If an immediate upgrade is not possible, consider implementing additional security measures such as using a VPN or secure tunneling to protect data in transit.

Related vulnerabilities

Recent vulnerabilities recorded for libthrift-java.

How To Fix

Minimum fixed version

0.9.1-2.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libthrift-java

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