GHSA-f99h-w337-mv56: Github.com/malfunkt/iprange Iprange May Panic When Parsing Vulnerability

MODERATE
Published
Advisory Summary

GHSA-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.

GHSA-f99h-w337-mv56 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-f99h-w337-mv56
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/malfunkt/iprange
Package Ecosystem Go
Published Date
Last Updated

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.

github.com/malfunkt/iprange fixed: Latest secure release
Upgrade github.com/malfunkt/iprange to Latest secure release
Verify Direct and Transitive Dependencies

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

Parsing a range with a mask larger than 32 bits causes a panic.

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?
GHSA-f99h-w337-mv56 is a security vulnerability in Github.com/malfunkt/iprange involving iprange may panic when parsing ranges with invalid masks under General Security Weakness.
Which Github.com/malfunkt/iprange versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/malfunkt/iprange.
What version fixes GHSA-f99h-w337-mv56?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/malfunkt/iprange affected?
Yes, github.com/malfunkt/iprange is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-f99h-w337-mv56?
GHSA-f99h-w337-mv56 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-f99h-w337-mv56?
Run the dependency tree command: 'inspect dependencies for github.com/malfunkt/iprange'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}