CVE-2022-43756: Github.com/rancher/wrangler Denial of Service Vulnerability
MODERATECVE-2022-43756 is a MODERATE (CVSS 5.9) denial of service vulnerability (CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences) affecting Github.com/rancher/wrangler libraries in the Go ecosystem. The issue involves denial of service (dos) when processing git credentials. Remediation is available by upgrading affected packages to version 0.7.4-security1, 0.8.5-security1, 1.0.1, 0.8.11.
CVE-2022-43756 at a Glance
Security Impact
CVSS: 5.9
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:N/S:U/C:N/I:L/A:H).
How to Fix CVE-2022-43756
To remediate this vulnerability, upgrade all affected Github.com/rancher/wrangler 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/rancher/wrangler to 0.7.4-security1
Upgrade github.com/rancher/wrangler to 0.8.5-security1
Upgrade github.com/rancher/wrangler to 1.0.1
Upgrade github.com/rancher/wrangler to 0.8.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/rancher/wrangler
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-43756, inspect your project dependencies for Github.com/rancher/wrangler:
inspect dependencies for github.com/rancher/wrangler
Analyze the terminal output to locate any version of Github.com/rancher/wrangler in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.4-security1), 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-150: Improper Neutralization of Escape, Meta, or Control Sequences, where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component. In Github.com/rancher/wrangler, 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-2022-43756 Affected Github.com/rancher/wrangler Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/rancher/wrangler
|
Go |
< 0.7.4-security1
|
0.7.4-security1
|
|
github.com/rancher/wrangler
|
Go |
≥ 0.8.0
< 0.8.5-security1
|
0.8.5-security1
|
|
github.com/rancher/wrangler
|
Go |
≥ 1.0.0
< 1.0.1
All 1 versions
1.0.0
|
1.0.1
|
|
github.com/rancher/wrangler
|
Go |
≥ 0.8.6
< 0.8.11
|
0.8.11
|
References
Frequently Asked Questions
What is CVE-2022-43756?
Which Github.com/rancher/wrangler versions are affected?
What version fixes CVE-2022-43756?
Is github.com/rancher/wrangler affected?
What is the CVSS score of CVE-2022-43756?
What CWE is associated with CVE-2022-43756?
How can I check Go dependencies for CVE-2022-43756?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8fcj-gf77-47mg",
"modified" : "2023-02-07T15:50:58Z",
"published" : "2023-01-25T19:40:26Z",
"aliases" : [ "CVE-2022-43756" ],
"summary" : "Denial of service (DoS) when processing Git credentials",
"details" : "### Impact\n\nA denial of services (DoS) vulnerability was discovered in Wrangler Git package affecting versions up to and including `v1.0.0`.\n\nSpecially crafted Git credentials can result in a denial of service (DoS) attack on an application that uses Wrangler due to the exhaustion of the available memory and CPU resources. This is caused by a lack of input validation of Git credentials before they are used, which may lead to a denial of service in some cases. This issue can be triggered when accessing both private and public Git repositories. \n\n### Workarounds\n\nA workaround is to sanitize input passed to the Git package to remove potential unsafe and ambiguous characters. Otherwise, the best course of action is to update to a patched Wrangler version.\n\n### Patches\n\nPatched versions include `v1.0.1` and later and the backported tags - `v0.7.4-security1`, `v0.8.5-security1` and `v0.8.11`.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Reach out to [SUSE Rancher Security team](https://github.com/rancher/rancher/security/policy) for security related inquiries.\n* Open an issue in [Rancher](https://github.com/rancher/rancher/issues/new/choose) or [Wrangler](https://github.com/rancher/wrangler/issues/new) repository.\n* Verify our [support matrix](https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/) and [product support lifecycle](https://www.suse.com/lifecycle/).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/wrangler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.4-security1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.7.3"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/wrangler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.8.0"
}, {
"fixed" : "0.8.5-security1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.8.4"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/wrangler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.0.1"
} ]
} ],
"versions" : [ "1.0.0" ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/wrangler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.8.6"
}, {
"fixed" : "0.8.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rancher/wrangler/security/advisories/GHSA-8fcj-gf77-47mg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-43756"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/wrangler/commit/341018c8fef3e12867c7cb2649bd2cecac75f287"
}, {
"type" : "WEB",
"url" : "https://bugzilla.suse.com/show_bug.cgi?id=1205296"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-8fcj-gf77-47mg"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/security/policy"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rancher/wrangler"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2023-1515"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-150", "CWE-74" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-25T19:40:26Z",
"nvd_published_at" : "2023-02-07T13:15:00Z"
}
}