# CVE-2026-31961: Unbounded memory allocation in Quill via unvalidated size fields in Mach-O binary parsing

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-11 · Modified: 2026-03-11
- Aliases: GHSA-xj69-m9qq-8m94, GO-2026-4675
- Record: https://cvemate.com/vulnerability/CVE-2026-31961 · JSON: https://cvemate.com/vulnerability/CVE-2026-31961/json

## Description

```text
Quill provides simple mac binary signing and notarization from any platform. Quill before version v0.7.1 contains an unbounded memory allocation vulnerability when parsing Mach-O binaries. Exploitation requires that Quill processes an attacker-supplied Mach-O binary, which is most likely in environments such as CI/CD pipelines, shared signing services, or any workflow where externally-submitted binaries are accepted for signing. When parsing a Mach-O binary, Quill reads several size and count fields from the LC_CODE_SIGNATURE load command and embedded code signing structures (SuperBlob, BlobIndex) and uses them to allocate memory buffers without validating that the values are reasonable or consistent with the actual file size. Affected fields include DataSize, DataOffset, and Size from the load command, Count from the SuperBlob header, and Length from individual blob headers. An attacker can craft a minimal (~4KB) malicious Mach-O binary with extremely large values in these fields, causing Quill to attempt to allocate excessive memory. This leads to memory exhaustion and denial of service, potentially crashing the host process. Both the Quill CLI and Go library are affected when used to parse untrusted Mach-O files. This vulnerability is fixed in 0.7.1.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.117%, percentile 1.772%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- anchore quill: \< 0.7.1
- github.com/anchore quill (Go): \< 0.7.1

## References

- <https://github.com/anchore/quill/security/advisories/GHSA-xj69-m9qq-8m94>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31961>
- <https://github.com/anchore/quill/commit/80cf3fe082678af0ec4f9f8dd93f39189d2dc1fe>
- <https://developer.apple.com/documentation/technotes/tn3126-inside-code-signing-hashes>
- <https://github.com/anchore/quill>
- <https://github.com/anchore/quill/releases/tag/v0.7.1>

---

Data as of 2026-12-05T19:03:57.714Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
