GHSA-m6m5-pp4g-fcc8: Github.com/foxcpp/maddy S3 Storage Write Is Not Vulnerability
HIGHGHSA-m6m5-pp4g-fcc8 is a HIGH (CVSS 7.5) s3 storage write is not vulnerability (CWE-772: Missing Release of Resource after Effective Lifetime) affecting Github.com/foxcpp/maddy libraries in the Go ecosystem. The issue involves s3 storage write is not aborted on errors leading to unbounded memory usage. Remediation is available by upgrading affected packages to version 0.5.1.
GHSA-m6m5-pp4g-fcc8 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 GHSA-m6m5-pp4g-fcc8
To remediate this vulnerability, upgrade all affected Github.com/foxcpp/maddy 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/foxcpp/maddy to 0.5.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/foxcpp/maddy
How to Check if You Are Affected
To determine whether your application is affected by GHSA-m6m5-pp4g-fcc8, inspect your project dependencies for Github.com/foxcpp/maddy:
inspect dependencies for github.com/foxcpp/maddy
Analyze the terminal output to locate any version of Github.com/foxcpp/maddy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.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-772: Missing Release of Resource after Effective Lifetime, where the product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed. In Github.com/foxcpp/maddy, 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
GHSA-m6m5-pp4g-fcc8 Affected Github.com/foxcpp/maddy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/foxcpp/maddy
|
Go |
< 0.5.1
|
0.5.1
|
References
Frequently Asked Questions
What is GHSA-m6m5-pp4g-fcc8?
Which Github.com/foxcpp/maddy versions are affected?
What version fixes GHSA-m6m5-pp4g-fcc8?
Is github.com/foxcpp/maddy affected?
What is the CVSS score of GHSA-m6m5-pp4g-fcc8?
What CWE is associated with GHSA-m6m5-pp4g-fcc8?
How can I check Go dependencies for GHSA-m6m5-pp4g-fcc8?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m6m5-pp4g-fcc8",
"modified" : "2021-10-06T16:48:49Z",
"published" : "2021-10-06T17:47:35Z",
"aliases" : [ ],
"summary" : "S3 storage write is not aborted on errors leading to unbounded memory usage",
"details" : "### Impact\n\nAnyone using storage.blob.s3 introduced in 0.5.0 with storage.imapsql.\n```\nstorage.imapsql local_mailboxes {\n ...\n msg_store s3 {\n ...\n }\n}\n```\n\n### Patches\n\nThe relevant commit is pushed to master and will be included in the 0.5.1 release.\n\nNo special handling of the issue has been done due to the small amount of affected users.\n\n### Workarounds\n\nNone.\n\n### References\n\n* Original report: https://github.com/foxcpp/maddy/issues/395\n* Fix: https://github.com/foxcpp/maddy/commit/07c8495ee4394fabbf5aac4df8aebeafb2fb29d8",
"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/foxcpp/maddy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/foxcpp/maddy/security/advisories/GHSA-m6m5-pp4g-fcc8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/foxcpp/maddy"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-772" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-10-06T16:48:49Z",
"nvd_published_at" : null
}
}