{"schema_version":"1.7.5","id":"GHSA-xj69-m9qq-8m94","published":"2026-03-11T00:38:00Z","modified":"2026-03-23T04:56:06.364134238Z","aliases":["CVE-2026-31961","GO-2026-4675"],"summary":"Quill has unbounded memory allocation via unvalidated size fields in Mach-O binary parsing","details":"### Impact\n\nQuill 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.\n\nWhen 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.\n\n\n### Patches\n\nFixed in Quill `v0.7.1`\n\n\n### Workarounds\n\nNone\n\n### Credit\n\nAnchore would like to thank opera-aklajn (Opera) for reporting this vulnerability\n\n### Resources\n\n- [Inside code signing: hashes (Apple documentation)](https://developer.apple.com/documentation/technotes/tn3126-inside-code-signing-hashes)","affected":[{"package":{"name":"github.com/anchore/quill","ecosystem":"Go","purl":"pkg:golang/github.com/anchore/quill"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-xj69-m9qq-8m94/GHSA-xj69-m9qq-8m94.json"}}],"references":[{"type":"WEB","url":"https://github.com/anchore/quill/security/advisories/GHSA-xj69-m9qq-8m94"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31961"},{"type":"WEB","url":"https://github.com/anchore/quill/commit/80cf3fe082678af0ec4f9f8dd93f39189d2dc1fe"},{"type":"WEB","url":"https://developer.apple.com/documentation/technotes/tn3126-inside-code-signing-hashes"},{"type":"PACKAGE","url":"https://github.com/anchore/quill"},{"type":"WEB","url":"https://github.com/anchore/quill/releases/tag/v0.7.1"}],"database_specific":{"cwe_ids":["CWE-770"],"github_reviewed":true,"github_reviewed_at":"2026-03-11T00:38:00Z","nvd_published_at":"2026-03-11T20:16:17Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}