# GHSA-m6m5-pp4g-fcc8: S3 storage write is not aborted on errors leading to unbounded memory usage

- Severity: High 7.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-10-06T17:47:35.000Z
- Modified: 2026-03-03T04:50:10.957Z
- Also known as: GO-2022-0374
- Weaknesses: CWE-772

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- github.com/foxcpp/maddy (Go): before 0.5.1

## References

- <https://github.com/foxcpp/maddy/security/advisories/GHSA-m6m5-pp4g-fcc8> (advisory, web)
- <https://github.com/foxcpp/maddy> (package)

## Sources

- GitHub Advisory Database: [GHSA-m6m5-pp4g-fcc8](https://github.com/advisories/GHSA-m6m5-pp4g-fcc8), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0374](https://pkg.go.dev/vuln/GO-2022-0374), CC-BY-4.0, modified 2026-03-03

---

Page: https://cve.day/GHSA-m6m5-pp4g-fcc8 · Whole record: https://cve.day/GHSA-m6m5-pp4g-fcc8.json · Rebuilt by cve.day 2026-11-25T22:56:23.066Z
