CVE-2019-11938
Apache Thrift vulnerability analysis and mitigation

Overview

Java Facebook Thrift servers were found to be vulnerable to memory exhaustion due to improper validation of container sizes in messages. The vulnerability, identified as CVE-2019-11938, allowed servers to process messages declaring containers of sizes larger than the actual payload without proper error handling (NVD).

Technical details

The vulnerability existed in the Java implementation of Facebook's Thrift protocol where the servers would not properly validate the size of containers against the remaining frame size before deserialization. This could lead to over-allocation of memory when processing malformed or truncated frames. The fix involved implementing size validation checks in both TBinaryProtocol and TCompactProtocol implementations, ensuring that there is enough data in the current frame before attempting deserialization (Facebook Commit).

Impact

The vulnerability could lead to memory exhaustion in Java Facebook Thrift servers, potentially resulting in denial of service conditions when processing maliciously crafted messages (NVD).

Mitigation and workarounds

The vulnerability was patched through commits that implemented proper size validation checks. The fix ensures that the server validates the remaining frame size before attempting to deserialize containers and strings (Facebook Commit).

Additional resources


SourceThis report was generated using AI

Related Apache Thrift vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2021-24028CRITICAL9.8
  • Apache ThriftApache Thrift
  • thrift
NoYesApr 14, 2021
CVE-2024-45773HIGH7.5
  • Apache ThriftApache Thrift
  • thrift
NoYesSep 27, 2024
CVE-2020-13949HIGH7.5
  • JavaJava
  • kubernetes-dns-node-cache-1.17
NoYesFeb 12, 2021
CVE-2019-11939HIGH7.5
  • Apache ThriftApache Thrift
  • github.com/facebook/fbthrift
NoYesMar 18, 2020
CVE-2024-45863MEDIUM5.3
  • Apache ThriftApache Thrift
  • thrift
NoNoSep 27, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management