CVE-2019-16779:
In RubyGem excon, interrupted Persistent Connections May Leak Response Data
5.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.67135%
CWE
Published
12/16/2019
Updated
5/4/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
excon | rubygems | < 0.71.0 | 0.71.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of persistent connections in the request method. The patch adds: 1) A check for @persistent_socket_reusable flag before reusing connections, 2) A forced reset when detecting unreusable sockets, and 3) State management around response processing. The original code lacked these safeguards, making the request method's persistent connection reuse logic vulnerable to data leakage via socket contamination between requests. The direct modification of this method in the patch confirms its role in the vulnerability.