CVE-2023-37279: Github.com/contribsys/faktory Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-x4hh-vjm7-g2jv
CVSS 7.5
CWE-789 CWE-770
Published
Advisory Summary

CVE-2023-37279 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting Github.com/contribsys/faktory libraries in the Go ecosystem. The issue involves faktory web dashboard can lead to denial of service(dos) via malicious user input. Remediation is available by upgrading affected packages to version 1.8.0.

CVE-2023-37279 at a Glance

CVE Identifier CVE-2023-37279
GHSA Identifier GHSA-x4hh-vjm7-g2jv
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-789: Memory Allocation with Excessive Size Value
Affected Product Github.com/contribsys/faktory
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 CVE-2023-37279

To remediate this vulnerability, upgrade all affected Github.com/contribsys/faktory 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/contribsys/faktory fixed: 1.8.0
Upgrade github.com/contribsys/faktory to 1.8.0
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/contribsys/faktory

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-37279, inspect your project dependencies for Github.com/contribsys/faktory:

inspect dependencies for github.com/contribsys/faktory

Analyze the terminal output to locate any version of Github.com/contribsys/faktory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.0), 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-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In Github.com/contribsys/faktory, 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

### Summary Faktory web dashboard can suffer from denial of service by a crafted malicious url query param `days`. ### Details The vulnerability is related to how the backend reads the `days` URL query parameter in the Faktory web dashboard. The value is used directly without any checks to create a string slice. If a very large value is provided, the backend server ends up using a significant amount of memory and causing it to crash. ### PoC To reproduce this vulnerability, please follow these steps: Start the Faktory Docker and limit memory usage to 512 megabytes for better demonstration: ``` $ docker run --rm -it -m 512m \ -p 127.0.0.1:7419:7419 \ -p 127.0.0.1:7420:7420 \ contribsys/faktory:latest ``` Send the following request. The Faktory server will exit after a few seconds due to out of memory: ``` $ curl 'http://localhost:7420/?days=922337' ``` ### Impact **Server Availability**: The vulnerability can crash the Faktory server, affecting its availability. **Denial of Service Risk**: Given that the Faktory web dashboard does not require authorization, any entity with internet access to the dashboard could potentially exploit this vulnerability. This unchecked access opens up the potential for a Denial of Service (DoS) attack, which could disrupt service availability without any conditional barriers to the attacker.

CVE-2023-37279 Affected Github.com/contribsys/faktory Versions

1 component(s)
Fixed Versions:
1.8.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/contribsys/faktory
Go
< 1.8.0
1.8.0

References

Frequently Asked Questions

What is CVE-2023-37279?
CVE-2023-37279 is a security vulnerability in Github.com/contribsys/faktory involving Faktory Web Dashboard can lead to denial of service(DOS) via malicious user input under CWE-789: Memory Allocation with Excessive Size Value.
Which Github.com/contribsys/faktory versions are affected?
Affected versions include releases prior to 1.8.0 across affected packages: github.com/contribsys/faktory.
What version fixes CVE-2023-37279?
Upgrading to 1.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/contribsys/faktory affected?
Yes, github.com/contribsys/faktory is affected in releases prior to 1.8.0. Upgrade your dependency to 1.8.0 or later.
What is the CVSS score of CVE-2023-37279?
CVE-2023-37279 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 CVE-2023-37279?
CVE-2023-37279 is classified under CWE-789: Memory Allocation with Excessive Size Value (The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.).
How can I check Go dependencies for CVE-2023-37279?
Run the dependency tree command: 'inspect dependencies for github.com/contribsys/faktory'. 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-x4hh-vjm7-g2jv",
  "modified" : "2023-09-20T22:51:09Z",
  "published" : "2023-09-20T22:51:09Z",
  "aliases" : [ "CVE-2023-37279" ],
  "summary" : "Faktory Web Dashboard can lead to denial of service(DOS) via malicious user input",
  "details" : "### Summary\nFaktory web dashboard can suffer from denial of service by a crafted malicious url query param `days`.\n\n### Details\nThe vulnerability is related to how the backend reads the `days` URL query parameter in the Faktory web dashboard. The value is used directly without any checks to create a string slice. If a very large value is provided, the backend server ends up using a significant amount of memory and causing it to crash.\n\n### PoC\nTo reproduce this vulnerability, please follow these steps:\n\nStart the Faktory Docker and limit memory usage to 512 megabytes for better demonstration:\n```\n$ docker run --rm -it -m 512m \\\n  -p 127.0.0.1:7419:7419 \\\n  -p 127.0.0.1:7420:7420 \\\n  contribsys/faktory:latest\n``` \n\nSend the following request. The Faktory server will exit after a few seconds due to out of memory:\n\n```\n$ curl 'http://localhost:7420/?days=922337'\n```\n\n### Impact\n**Server Availability**: The vulnerability can crash the Faktory server, affecting its availability.\n**Denial of Service Risk**: Given that the Faktory web dashboard does not require authorization, any entity with internet access to the dashboard could potentially exploit this vulnerability. This unchecked access opens up the potential for a Denial of Service (DoS) attack, which could disrupt service availability without any conditional barriers to the attacker. \n",
  "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/contribsys/faktory"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/contribsys/faktory/security/advisories/GHSA-x4hh-vjm7-g2jv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-37279"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/contribsys/faktory"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770", "CWE-789" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-20T22:51:09Z",
    "nvd_published_at" : "2023-09-20T22:15:13Z"
  }
}