CVE-2021-39204: Github.com/pomerium/pomerium Excessive CPU Usage Vulnerability
HIGHCVE-2021-39204 is a HIGH (CVSS 7.5) excessive cpu usage vulnerability (CWE-834: Excessive Iteration) affecting Github.com/pomerium/pomerium libraries in the Go ecosystem. The issue involves excessive cpu usage. Remediation is available by upgrading affected packages to version 0.14.8, 0.15.1.
CVE-2021-39204 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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2021-39204
To remediate this vulnerability, upgrade all affected Github.com/pomerium/pomerium 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 github.com/pomerium/pomerium to 0.14.8
Upgrade github.com/pomerium/pomerium to 0.15.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/pomerium/pomerium
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-39204, inspect your project dependencies for Github.com/pomerium/pomerium:
inspect dependencies for github.com/pomerium/pomerium
Analyze the terminal output to locate any version of Github.com/pomerium/pomerium in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.14.8), 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-834: Excessive Iteration, where the product performs an iteration or loop without sufficiently limiting the number of times that the loop is executed. In Github.com/pomerium/pomerium, 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-2021-39204 Affected Github.com/pomerium/pomerium Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pomerium/pomerium
|
Go |
< 0.14.8
|
0.14.8
|
|
github.com/pomerium/pomerium
|
Go |
≥ 0.15.0
< 0.15.1
All 1 versions
0.15.0
|
0.15.1
|
References
Frequently Asked Questions
What is CVE-2021-39204?
Which Github.com/pomerium/pomerium versions are affected?
What version fixes CVE-2021-39204?
Is github.com/pomerium/pomerium affected?
What is the CVSS score of CVE-2021-39204?
What CWE is associated with CVE-2021-39204?
How can I check Go dependencies for CVE-2021-39204?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5wjf-62hw-q78r",
"modified" : "2021-09-10T16:33:46Z",
"published" : "2021-09-10T17:54:13Z",
"aliases" : [ "CVE-2021-39204" ],
"summary" : "Excessive CPU usage",
"details" : "Envoy, which Pomerium is based on, incorrectly handles resetting of HTTP/2 streams with excessive complexity. This can lead to high CPU utilization when a large number of streams are reset. \n\n### Impact\n\nThis can result in a DoS condition.\n\n### Patches\nPomerium versions 0.14.8 and 0.15.1 contain an upgraded envoy binary with this vulnerability patched.\n\n### Workarounds\nN/A\n\n### References\n[envoy GSA](https://github.com/envoyproxy/envoy/security/advisories/GHSA-3xh3-33v5-chcc)\n[envoy CVE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32778)\n[envoy announcement](https://groups.google.com/g/envoy-announce/c/5xBpsEZZDfE/m/wD05NZBbAgAJ)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [pomerium/pomerium](https://github.com/pomerium/pomerium/issues)\n* Email us at [security@pomerium.com](mailto:security@pomerium.com)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pomerium/pomerium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.14.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pomerium/pomerium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.15.0"
}, {
"fixed" : "0.15.1"
} ]
} ],
"versions" : [ "0.15.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/envoyproxy/envoy/security/advisories/GHSA-3xh3-33v5-chcc"
}, {
"type" : "WEB",
"url" : "https://github.com/pomerium/pomerium/security/advisories/GHSA-5wjf-62hw-q78r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-39204"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pomerium/pomerium"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/envoy-announce/c/5xBpsEZZDfE/m/wD05NZBbAgAJ"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-834" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-09-10T16:33:46Z",
"nvd_published_at" : "2021-09-09T22:15:00Z"
}
}