CVE-2026-33812

Excessive memory allocation when decoding malicious SFNT in golang.org/x/image

Published Apr 21, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
Parsing a malicious font file can cause excessive memory allocation.

Analysis

AI-generated

Technical impact

Parsing a malicious SFNT font file triggers an excessive memory allocation in the golang.org/x/image/font/sfnt package. The flaw can cause the process to consume large amounts of memory, potentially exhausting system resources and leading to a denial of service. The weakness is a form of uncontrolled memory allocation (CWE-770).

Affected Systems

The vulnerability affects any application that imports and uses the golang.org/x/image/font/sfnt package, including all versions of the golang.org/x/image library prior to a patch, regardless of the Go runtime version. No specific product versions are listed in the CNA data, so all unpatched instances are potentially impacted.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity. The EPSS score of < 1% (0.00013) shows a low probability that this flaw will be exploited. The flaw is not listed in CISA’s Known Exploited Vulnerabilities catalog, suggesting no publicly known exploits yet. The likely attack vector involves an attacker providing a specially crafted font file to an application that processes fonts; this is inferred because the vulnerability is triggered during font parsing.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Check golang.org/x/image for updates or newer releases that address memory‑allocation issues
  • Validate or sanitize any font files before passing to the SFNT parser, rejecting files that exceed size thresholds
  • Configure Go runtime memory limits or use cgroups to constrain the memory available to the process so that a memory‑exhaustion attempt cannot crash the host

Generated by OpenCVE AI on May 2, 2026 at 13:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:golang:image:*:*:*:*:*:go:*:*
Type Values Removed Values Added
First Time appeared Golang
Golang image
Vendors & Products Golang
Golang image
Type Values Removed Values Added
Description Parsing a malicious font file can cause excessive memory allocation.
Title Excessive memory allocation when decoding malicious SFNT in golang.org/x/image
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Apr 21, 2026, 8:43 PM
Reserved
Mar 23, 2026, 8:35 PM
Status
Analyzed
Published
Apr 21, 2026, 8:16 PM
Modified
Oct 26, 2026, 9:10 PM
Severity
Moderate
Public date
Apr 21, 2026, 7:21 PM