CVE-2019-16892: Rubyzip Denial of Service Vulnerability
MODERATECVE-2019-16892 is a MODERATE (CVSS 5.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Rubyzip libraries in the RubyGems ecosystem. The issue involves rubyzip denial of service. Remediation is available by upgrading affected packages to version 1.3.0.
CVE-2019-16892 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).
How to Fix CVE-2019-16892
To remediate this vulnerability, upgrade all affected Rubyzip 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 rubyzip to 1.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rubyzip
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-16892, inspect your project dependencies for Rubyzip:
inspect dependencies for rubyzip
Analyze the terminal output to locate any version of Rubyzip in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Rubyzip, 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-16892 Affected Rubyzip Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rubyzip
|
RubyGems |
< 1.3.0
|
1.3.0
|
References
Frequently Asked Questions
What is CVE-2019-16892?
Which Rubyzip versions are affected?
What version fixes CVE-2019-16892?
Is rubyzip affected?
What is the CVSS score of CVE-2019-16892?
What CWE is associated with CVE-2019-16892?
How can I check RubyGems dependencies for CVE-2019-16892?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5m2v-hc64-56h6",
"modified" : "2023-11-17T22:49:37Z",
"published" : "2019-09-30T16:05:32Z",
"aliases" : [ "CVE-2019-16892" ],
"summary" : "Rubyzip denial of service ",
"details" : "In Rubyzip before 1.3.0, a crafted ZIP file can bypass application checks on ZIP entry sizes because data about the uncompressed size can be spoofed. This allows attackers to cause a denial of service (disk consumption).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rubyzip"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16892"
}, {
"type" : "WEB",
"url" : "https://github.com/rubyzip/rubyzip/pull/403"
}, {
"type" : "WEB",
"url" : "https://github.com/rubyzip/rubyzip/commit/d65fe7bd283ec94f9d6dc7605f61a6b0dd00f55e"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHBA-2019:4047"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:4201"
}, {
"type" : "WEB",
"url" : "https://github.com/jdleesmiller/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2019-16892.yml"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2019-16892.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rubyzip/rubyzip"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J45KSFPP6DFVWLC7Z73L7SX735CKZYO6"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MWWPORMSBHZTMP4PGF4DQD22TTKBQMMC"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X255K6ZBAQC462PQN2ND5HOTTQEJ2G2X"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/J45KSFPP6DFVWLC7Z73L7SX735CKZYO6"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MWWPORMSBHZTMP4PGF4DQD22TTKBQMMC"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X255K6ZBAQC462PQN2ND5HOTTQEJ2G2X"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-09-30T16:04:36Z",
"nvd_published_at" : "2019-09-25T22:15:10Z"
}
}