GHSA-m6m5-pp4g-fcc8: Github.com/foxcpp/maddy S3 Storage Write Is Not Vulnerability

HIGH
CVSS 7.5
CWE-772
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-m6m5-pp4g-fcc8
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-772: Missing Release of Resource after Effective Lifetime
Affected Product Github.com/foxcpp/maddy
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 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.

github.com/foxcpp/maddy fixed: 0.5.1
Upgrade github.com/foxcpp/maddy to 0.5.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/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

### Impact Anyone using storage.blob.s3 introduced in 0.5.0 with storage.imapsql. ``` storage.imapsql local_mailboxes { ... msg_store s3 { ... } } ``` ### Patches The relevant commit is pushed to master and will be included in the 0.5.1 release. No special handling of the issue has been done due to the small amount of affected users. ### Workarounds None. ### References * Original report: https://github.com/foxcpp/maddy/issues/395 * Fix: https://github.com/foxcpp/maddy/commit/07c8495ee4394fabbf5aac4df8aebeafb2fb29d8

GHSA-m6m5-pp4g-fcc8 Affected Github.com/foxcpp/maddy Versions

1 component(s)
Fixed Versions:
0.5.1
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?
GHSA-m6m5-pp4g-fcc8 is a security vulnerability in Github.com/foxcpp/maddy involving S3 storage write is not aborted on errors leading to unbounded memory usage under CWE-772: Missing Release of Resource after Effective Lifetime.
Which Github.com/foxcpp/maddy versions are affected?
Affected versions include releases prior to 0.5.1 across affected packages: github.com/foxcpp/maddy.
What version fixes GHSA-m6m5-pp4g-fcc8?
Upgrading to 0.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/foxcpp/maddy affected?
Yes, github.com/foxcpp/maddy is affected in releases prior to 0.5.1. Upgrade your dependency to 0.5.1 or later.
What is the CVSS score of GHSA-m6m5-pp4g-fcc8?
GHSA-m6m5-pp4g-fcc8 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 GHSA-m6m5-pp4g-fcc8?
GHSA-m6m5-pp4g-fcc8 is classified under CWE-772: Missing Release of Resource after Effective Lifetime (The product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed.).
How can I check Go dependencies for GHSA-m6m5-pp4g-fcc8?
Run the dependency tree command: 'inspect dependencies for github.com/foxcpp/maddy'. 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-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
  }
}