CVE-2019-15544: Protobuf Uncontrolled Memory Consumption Vulnerability
HIGHCVE-2019-15544 is a HIGH (CVSS 7.5) uncontrolled memory consumption vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Protobuf libraries in the crates.io ecosystem. The issue involves uncontrolled memory consumption in protobuf. Remediation is available by upgrading affected packages to version 2.6.0.
CVE-2019-15544 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2019-15544
To remediate this vulnerability, upgrade all affected Protobuf 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 protobuf to 2.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for protobuf
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-15544, inspect your project dependencies for Protobuf:
inspect dependencies for protobuf
Analyze the terminal output to locate any version of Protobuf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Protobuf, 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-15544 Affected Protobuf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
protobuf
|
crates.io |
< 2.6.0
|
2.6.0
|
References
Frequently Asked Questions
What is CVE-2019-15544?
Which Protobuf versions are affected?
What version fixes CVE-2019-15544?
Is protobuf affected?
What is the CVSS score of CVE-2019-15544?
What CWE is associated with CVE-2019-15544?
How can I check crates.io dependencies for CVE-2019-15544?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mh6h-f25p-98f8",
"modified" : "2023-06-13T20:32:32Z",
"published" : "2021-08-25T20:44:05Z",
"aliases" : [ "CVE-2019-15544" ],
"summary" : "Uncontrolled memory consumption in protobuf",
"details" : "Affected versions of this crate called Vec::reserve() on user-supplied input. This allows an attacker to cause an Out of Memory condition while calling the vulnerable method on untrusted data.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "protobuf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-15544"
}, {
"type" : "WEB",
"url" : "https://github.com/stepancheg/rust-protobuf/issues/411"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/stepancheg/rust-protobuf"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r00097d0b5b6164ea428554007121d5dc1f88ba2af7b9e977a10572cd@%3Cdev.hbase.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r4ef574a5621b0e670a3ce641e9922543e34f22bf4c9ee9584aa67fcf@%3Cissues.hbase.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r7fed8dd9bee494094e7011cf3c2ab75bd8754ea314c6734688c42932@%3Ccommon-issues.hadoop.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/rd64381fb8f92d640c1975dc50dcdf1b8512e02a2a7b20292d3565cae@%3Cissues.hbase.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2019-0003.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-08-19T21:23:35Z",
"nvd_published_at" : "2019-08-26T18:15:00Z"
}
}