Vulnerabilities in pkg:golang/github.com/malfunkt/iprange
PACKAGEGHSA-f99h-w337-mv56 is a MODERATE iprange may panic when parsing vulnerability (General Security Weakness) affecting Github.com/malfunkt/iprange libraries in the Go ecosystem. The issue involves iprange may panic when parsing ranges with invalid masks. Remediation is available in the latest vendor maintenance releases.
pkg:golang/github.com/malfunkt/iprange
Vulnerability advisories affecting package pkg:golang/github.com/malfunkt/iprange. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-f99h-w337-mv56 | - | MODERATE | iprange may panic when parsing ranges with invalid masks |
GHSA-f99h-w337-mv56 at a Glance
How to Fix GHSA-f99h-w337-mv56
To remediate this vulnerability, upgrade all affected Github.com/malfunkt/iprange 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/malfunkt/iprange to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/malfunkt/iprange
How to Check if You Are Affected
To determine whether your application is affected by GHSA-f99h-w337-mv56, inspect your project dependencies for Github.com/malfunkt/iprange:
inspect dependencies for github.com/malfunkt/iprange
Analyze the terminal output to locate any version of Github.com/malfunkt/iprange in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 General Security Weakness. In Github.com/malfunkt/iprange, 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
GHSA-f99h-w337-mv56 Affected Github.com/malfunkt/iprange Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/malfunkt/iprange
|
Go |
≤ 0.9.0
|
|
References
Frequently Asked Questions
What is GHSA-f99h-w337-mv56?
Which Github.com/malfunkt/iprange versions are affected?
What version fixes GHSA-f99h-w337-mv56?
Is github.com/malfunkt/iprange affected?
What CWE is associated with GHSA-f99h-w337-mv56?
How can I check Go dependencies for GHSA-f99h-w337-mv56?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f99h-w337-mv56",
"modified" : "2023-07-12T17:29:24Z",
"published" : "2023-07-12T17:29:24Z",
"aliases" : [ ],
"summary" : "iprange may panic when parsing ranges with invalid masks",
"details" : "Parsing a range with a mask larger than 32 bits causes a panic.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/malfunkt/iprange"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/malfunkt/iprange/issues/1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/malfunkt/iprange"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-12T17:29:24Z",
"nvd_published_at" : null
}
}