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

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/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
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-03-11T00:38:00.000Z
- Modified: 2026-06-17T10:34:50.807Z
- Also known as: GHSA-xj69-m9qq-8m94, GO-2026-4675
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

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

## Sources

- CVE List: [CVE-2026-31961](https://www.cve.org/CVERecord?id=CVE-2026-31961), CVE Terms of Use, modified 2026-03-11
- GitHub Advisory Database: [GHSA-xj69-m9qq-8m94](https://github.com/advisories/GHSA-xj69-m9qq-8m94), CC-BY-4.0, modified 2026-03-23
- Go Vulnerability Database: [GO-2026-4675](https://pkg.go.dev/vuln/GO-2026-4675), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-31961](https://nvd.nist.gov/vuln/detail/CVE-2026-31961), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31961 · Whole record: https://cve.day/CVE-2026-31961.json · Rebuilt by cve.day 2026-11-25T22:59:15.775Z
