CVE-2019-16779: Excon Security Vulnerability Vulnerability
MODERATECVE-2019-16779 is a MODERATE (CVSS 5.8) security vulnerability vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Excon libraries in the RubyGems ecosystem. The issue involves in rubygem excon, interrupted persistent connections may leak response data. Remediation is available by upgrading affected packages to version 0.71.0.
CVE-2019-16779 at a Glance
Security Impact
CVSS: 5.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N).
How to Fix CVE-2019-16779
To remediate this vulnerability, upgrade all affected Excon dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade excon to 0.71.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for excon
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-16779, inspect your project dependencies for Excon:
inspect dependencies for excon
Analyze the terminal output to locate any version of Excon in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.71.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Excon, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-16779 Affected Excon Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
excon
|
RubyGems |
< 0.71.0
|
0.71.0
|
References
Frequently Asked Questions
What is CVE-2019-16779?
Which Excon versions are affected?
What version fixes CVE-2019-16779?
Is excon affected?
What is the CVSS score of CVE-2019-16779?
What CWE is associated with CVE-2019-16779?
How can I check RubyGems dependencies for CVE-2019-16779?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q58g-455p-8vw9",
"modified" : "2021-10-29T14:10:27Z",
"published" : "2019-12-16T19:30:17Z",
"aliases" : [ "CVE-2019-16779" ],
"summary" : "In RubyGem excon, interrupted Persistent Connections May Leak Response Data",
"details" : "### Impact\nThere was a race condition around persistent connections, where a connection which is interrupted (such as by a timeout) would leave data on the socket. Subsequent requests would then read this data, returning content from the previous response. The race condition window appears to be short, and it would be difficult to purposefully exploit this.\n\n### Patches\nThe problem has been patched in 0.71.0, users should upgrade to this or a newer version (if one exists).\n\n### Workarounds\nUsers can workaround the problem by disabling persistent connections, though this may cause performance implications.\n\n### References\nSee the [patch](https://github.com/excon/excon/commit/ccb57d7a422f020dc74f1de4e8fb505ab46d8a29) for further details.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [excon/issues](https://github.com/excon/excon/issues)\n* Email us at [geemus+github@gmail.com](mailto:geemus+github@gmail.com)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "excon"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.71.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/excon/excon/security/advisories/GHSA-q58g-455p-8vw9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16779"
}, {
"type" : "WEB",
"url" : "https://github.com/excon/excon/commit/ccb57d7a422f020dc74f1de4e8fb505ab46d8a29"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/excon/excon"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/excon/CVE-2019-16779.yml"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2020/01/msg00015.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00021.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00062.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362", "CWE-664" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-12-16T19:28:10Z",
"nvd_published_at" : "2019-12-16T20:15:00Z"
}
}