GHSA-v7hc-87jc-qrrr: Knative.dev/eventing github Remote Code Execution Vulnerability

LOW
CWE-400
Published
Advisory Summary

GHSA-v7hc-87jc-qrrr is a LOW remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Knative.dev/eventing github libraries in the Go ecosystem. The issue involves eventing-github vulnerable to denial of service caused by improper enforcement of the timeout on individual read operations. Remediation is available by upgrading affected packages to version 0.39.1.

GHSA-v7hc-87jc-qrrr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-v7hc-87jc-qrrr
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Knative.dev/eventing github
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-v7hc-87jc-qrrr

To remediate this vulnerability, upgrade all affected Knative.dev/eventing github dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

knative.dev/eventing-github fixed: 0.39.1
Upgrade knative.dev/eventing-github to 0.39.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 knative.dev/eventing-github

How to Check if You Are Affected

To determine whether your application is affected by GHSA-v7hc-87jc-qrrr, inspect your project dependencies for Knative.dev/eventing github:

inspect dependencies for knative.dev/eventing-github

Analyze the terminal output to locate any version of Knative.dev/eventing github in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.39.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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Knative.dev/eventing github, 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 The eventing-github cluster-local server doesn't set `ReadHeaderTimeout`‬‭ which could lead do a DDoS‬ ‭attack, where a large group of users send requests to the server causing the server to hang‬ ‭for long enough to deny it from being available to other users, also know as a Slowloris‬ ‭attack. ### Patches Fix in `v1.12.1` and `v1.11.3` ### Credits The vulnerability was reported by Ada Logics during an ongoing security audit of Knative involving Ada Logics, the Knative maintainers, OSTIF and CNCF.

GHSA-v7hc-87jc-qrrr Affected Knative.dev/eventing github Versions

1 component(s)
Fixed Versions:
0.39.1
Product / Package Ecosystem Affected Versions Fixed Version
knative.dev/eventing-github
Go
< 0.39.1
0.39.1

References

Frequently Asked Questions

What is GHSA-v7hc-87jc-qrrr?
GHSA-v7hc-87jc-qrrr is a security vulnerability in Knative.dev/eventing github involving eventing-github vulnerable to denial of service caused by improper enforcement of the timeout on individual read operations under CWE-400: Uncontrolled Resource Consumption.
Which Knative.dev/eventing github versions are affected?
Affected versions include releases prior to 0.39.1 across affected packages: knative.dev/eventing-github.
What version fixes GHSA-v7hc-87jc-qrrr?
Upgrading to 0.39.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is knative.dev/eventing-github affected?
Yes, knative.dev/eventing-github is affected in releases prior to 0.39.1. Upgrade your dependency to 0.39.1 or later.
What CWE is associated with GHSA-v7hc-87jc-qrrr?
GHSA-v7hc-87jc-qrrr is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for GHSA-v7hc-87jc-qrrr?
Run the dependency tree command: 'inspect dependencies for knative.dev/eventing-github'. 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-v7hc-87jc-qrrr",
  "modified" : "2023-12-06T19:19:35Z",
  "published" : "2023-12-06T19:19:35Z",
  "aliases" : [ ],
  "summary" : "eventing-github vulnerable to denial of service caused by improper enforcement of the timeout on individual read operations",
  "details" : "### Impact\n\nThe eventing-github cluster-local server doesn't set `ReadHeaderTimeout`‬‭ which could lead do a DDoS‬ ‭attack, where a large group of users send requests to the server causing the server to hang‬ ‭for long enough to deny it from being available to other users, also know as a Slowloris‬ ‭attack.\n\n### Patches\n\nFix in `v1.12.1` and `v1.11.3`\n\n### Credits\n\nThe vulnerability was reported by Ada Logics during an ongoing security audit of Knative involving Ada Logics, the Knative maintainers, OSTIF and CNCF.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "knative.dev/eventing-github"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.39.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/knative-extensions/eventing-github/security/advisories/GHSA-v7hc-87jc-qrrr"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/knative-extensions/eventing-github/pull/442"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/knative-extensions/eventing-github/pull/446"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/knative-extensions/eventing-github/pull/447"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/knative-extensions/eventing-github/commit/ea5cb8b25fc3410dde45ce2eb95454e4cfe77c40"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/knative-extensions/eventing-github"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-06T19:19:35Z",
    "nvd_published_at" : null
  }
}