CVE-2023-37279: Github.com/contribsys/faktory Denial of Service Vulnerability
HIGHCVE-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
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).
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.
Upgrade github.com/contribsys/faktory to 1.8.0
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
CVE-2023-37279 Affected Github.com/contribsys/faktory Versions
1 component(s)| 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?
Which Github.com/contribsys/faktory versions are affected?
What version fixes CVE-2023-37279?
Is github.com/contribsys/faktory affected?
What is the CVSS score of CVE-2023-37279?
What CWE is associated with CVE-2023-37279?
How can I check Go dependencies for CVE-2023-37279?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}