CVE-2019-3553
Apache Thrift vulnerability analysis and mitigation

Overview

CVE-2019-3553 affects C++ Facebook Thrift servers, where the servers would not error upon receiving messages declaring containers of sizes larger than the payload. The vulnerability was discovered in Facebook's Thrift implementation and was disclosed in March 2020 (NVD).

Technical details

The vulnerability stems from how the Thrift servers handle container size declarations in messages. When reading container sizes, the servers would blindly pre-allocate containers without verifying if the actual payload contained sufficient data. This could allow an attacker to send a small message that declares a large container size, causing the server to allocate excessive amounts of memory. The issue was present in both container handling and string reading operations (Github Commit, Github String Fix).

Impact

The vulnerability could be exploited to cause denial of service conditions by forcing servers to allocate large amounts of memory (multiple gigabytes) while only sending a few bytes of actual data. This could potentially lead to server resource exhaustion and system instability (Github Commit).

Mitigation and workarounds

The issue was fixed by implementing proper size validation before memory allocation. The fix includes checking if there is at least 1 byte per element in the buffer for containers, and verifying the actual data availability before allocating memory for strings. Updates were released that implement these checks to prevent malicious memory allocation (Github Commit, Github String Fix).

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
  • trino
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