GHSA-8r27-mm5g-38ww: blakesmith/ar Denial of Service Vulnerability

HIGH
CVSS 7.5
CWE-129
Published
Advisory Summary

GHSA-8r27-mm5g-38ww is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-129: Improper Validation of Array Index) affecting blakesmith/ar libraries in the Go ecosystem. The issue involves denial of service through negative archive-member size. Remediation is available in the latest vendor maintenance releases.

GHSA-8r27-mm5g-38ww at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8r27-mm5g-38ww
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-129: Improper Validation of Array Index
Affected Product blakesmith/ar
Package Ecosystem Go
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix GHSA-8r27-mm5g-38ww

To remediate this vulnerability, upgrade all affected blakesmith/ar 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/blakesmith/ar fixed: Latest secure release
Upgrade github.com/blakesmith/ar 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/blakesmith/ar

How to Check if You Are Affected

To determine whether your application is affected by GHSA-8r27-mm5g-38ww, inspect your project dependencies for blakesmith/ar:

inspect dependencies for github.com/blakesmith/ar

Analyze the terminal output to locate any version of blakesmith/ar 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 CWE-129: Improper Validation of Array Index, where the product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array. In blakesmith/ar, 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

Reader.Next parses the 10-byte decimal size field of an archive member header with strconv.ParseInt without rejecting negative values. A header with a negative size leaves the reader with a negative remaining byte count, causing the subsequent call to Reader.Read to panic with a slice bounds out of range error when slicing the caller's buffer.

GHSA-8r27-mm5g-38ww Affected blakesmith/ar Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/blakesmith/ar
Go
≤ 0.0.0-20190502131153-809d4375e1fb3-809d4375e1fb

References

Frequently Asked Questions

What is GHSA-8r27-mm5g-38ww?
GHSA-8r27-mm5g-38ww is a security vulnerability in blakesmith/ar involving Denial of service through negative archive-member size under CWE-129: Improper Validation of Array Index.
Which blakesmith/ar versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/blakesmith/ar.
What version fixes GHSA-8r27-mm5g-38ww?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/blakesmith/ar affected?
Yes, github.com/blakesmith/ar is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-8r27-mm5g-38ww?
GHSA-8r27-mm5g-38ww has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-8r27-mm5g-38ww?
GHSA-8r27-mm5g-38ww is classified under CWE-129: Improper Validation of Array Index (The product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array.).
How can I check Go dependencies for GHSA-8r27-mm5g-38ww?
Run the dependency tree command: 'inspect dependencies for github.com/blakesmith/ar'. 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-8r27-mm5g-38ww",
  "modified" : "2026-12-01T01:27:06Z",
  "published" : "2026-12-01T01:27:06Z",
  "aliases" : [ ],
  "summary" : "blakesmith/ar: Denial of service through negative archive-member size",
  "details" : "Reader.Next parses the 10-byte decimal size field of an archive member header with strconv.ParseInt without rejecting negative values. A header with a negative size leaves the reader with a negative remaining byte count, causing the subsequent call to Reader.Read to panic with a slice bounds out of range error when slicing the caller's buffer.",
  "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/blakesmith/ar"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.0.0-20190502131153-809d4375e1fb3-809d4375e1fb"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/blakesmith/ar/issues/16"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/golang/vulndb/issues/6905"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/blakesmith/ar"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-129" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T01:27:06Z",
    "nvd_published_at" : null
  }
}