Vulnerabilities in pkg:golang/github.com/mittwald/kube-httpcache

PACKAGE
Advisory Summary

GHSA-47xh-qxqv-mgvg is a MODERATE kube-httpcache is vulnerable to cross-site vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Github.com/mittwald/kube httpcache libraries in the Go ecosystem. The issue involves kube-httpcache is vulnerable to cross-site request forgery (csrf). Remediation is available by upgrading affected packages to version 0.7.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/mittwald/kube-httpcache

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/mittwald/kube-httpcache. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-47xh-qxqv-mgvg - MODERATE kube-httpcache is vulnerable to Cross-Site Request Forgery (CSRF)

GHSA-47xh-qxqv-mgvg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-47xh-qxqv-mgvg
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Github.com/mittwald/kube httpcache
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-47xh-qxqv-mgvg

To remediate this vulnerability, upgrade all affected Github.com/mittwald/kube httpcache 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/mittwald/kube-httpcache fixed: 0.7.1
Upgrade github.com/mittwald/kube-httpcache to 0.7.1
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/mittwald/kube-httpcache

How to Check if You Are Affected

To determine whether your application is affected by GHSA-47xh-qxqv-mgvg, inspect your project dependencies for Github.com/mittwald/kube httpcache:

inspect dependencies for github.com/mittwald/kube-httpcache

Analyze the terminal output to locate any version of Github.com/mittwald/kube httpcache in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.1), 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Github.com/mittwald/kube httpcache, 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

### Impact > A request forgery attack can be performed on Varnish Cache servers that have the HTTP/2 protocol turned on. An attacker may introduce characters through the HTTP/2 pseudo-headers that are invalid in the context of an HTTP/1 request line, causing the Varnish server to produce invalid HTTP/1 requests to the backend. This may in turn be used to successfully exploit vulnerabilities in a server behind the Varnish server. > -- https://varnish-cache.org/security/VSV00011.html#vsv00011 ### Patches This is fixed in Varnish 6.0.11; Varnish 6.0.11 is available in `kube-httpcache` versions v0.7.1 and later. ### Workarounds See [upstream mitigation hints](https://varnish-cache.org/security/VSV00011.html#mitigation). ### References - https://varnish-cache.org/security/VSV00011.html#vsv00011

GHSA-47xh-qxqv-mgvg Affected Github.com/mittwald/kube httpcache Versions

1 component(s)
Fixed Versions:
0.7.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/mittwald/kube-httpcache
Go
< 0.7.1
0.7.1

References

Frequently Asked Questions

What is GHSA-47xh-qxqv-mgvg?
GHSA-47xh-qxqv-mgvg is a security vulnerability in Github.com/mittwald/kube httpcache involving kube-httpcache is vulnerable to Cross-Site Request Forgery (CSRF) under CWE-352: Cross-Site Request Forgery (CSRF).
Which Github.com/mittwald/kube httpcache versions are affected?
Affected versions include releases prior to 0.7.1 across affected packages: github.com/mittwald/kube-httpcache.
What version fixes GHSA-47xh-qxqv-mgvg?
Upgrading to 0.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/mittwald/kube-httpcache affected?
Yes, github.com/mittwald/kube-httpcache is affected in releases prior to 0.7.1. Upgrade your dependency to 0.7.1 or later.
What CWE is associated with GHSA-47xh-qxqv-mgvg?
GHSA-47xh-qxqv-mgvg is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check Go dependencies for GHSA-47xh-qxqv-mgvg?
Run the dependency tree command: 'inspect dependencies for github.com/mittwald/kube-httpcache'. 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-47xh-qxqv-mgvg",
  "modified" : "2022-12-02T22:24:44Z",
  "published" : "2022-12-02T22:24:44Z",
  "aliases" : [ ],
  "summary" : "kube-httpcache is vulnerable to Cross-Site Request Forgery (CSRF)",
  "details" : "### Impact\n\n> A request forgery attack can be performed on Varnish Cache servers that have the HTTP/2 protocol turned on. An attacker may introduce characters through the HTTP/2 pseudo-headers that are invalid in the context of an HTTP/1 request line, causing the Varnish server to produce invalid HTTP/1 requests to the backend. This may in turn be used to successfully exploit vulnerabilities in a server behind the Varnish server.\n> -- https://varnish-cache.org/security/VSV00011.html#vsv00011\n\n### Patches\n\nThis is fixed in Varnish 6.0.11; Varnish 6.0.11 is available in `kube-httpcache` versions v0.7.1 and later.\n\n### Workarounds\n\nSee [upstream mitigation hints](https://varnish-cache.org/security/VSV00011.html#mitigation).\n\n### References\n\n- https://varnish-cache.org/security/VSV00011.html#vsv00011\n\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/mittwald/kube-httpcache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mittwald/kube-httpcache/security/advisories/GHSA-47xh-qxqv-mgvg"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mittwald/kube-httpcache"
  }, {
    "type" : "WEB",
    "url" : "https://varnish-cache.org/security/VSV00011.html#vsv00011"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-02T22:24:44Z",
    "nvd_published_at" : null
  }
}