CVE-2026-50811: Out-of-Bounds Read in FreeType Variable Font Processing
FreeType, a widely-used font rendering library, contains an out-of-bounds read flaw in its variable font handling code. When processing specially crafted TrueType variable fonts, the library reads memory beyond allocated boundaries, potentially exposing sensitive data or causing the application to crash. This affects FreeType version 2.14.3 and earlier versions prior to a specific commit that patches the issue.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.5 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- Weaknesses (CWE)
- CWE-125
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-07 / 2026-07-09
NVD description (verbatim)
An out-of-bounds read vulnerability exists in FreeType 2.14.3 and versions before commit 5a280ecde6f324de0d226261036e736e0cb49a71 in src/truetype/ttgxvar.c, in the TT_Get_Var_Design implementation used by FT_Get_Var_Design_Coordinates
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-50811 is an out-of-bounds read vulnerability in FreeType's TT_Get_Var_Design function within src/truetype/ttgxvar.c. The flaw occurs during variable font design coordinate retrieval—a process invoked by FT_Get_Var_Design_Coordinates when applications query font variation data. The vulnerability stems from insufficient bounds checking, allowing attackers to craft malicious font files that trigger reads beyond allocated memory regions. The affected code path is present in FreeType 2.14.3 and all versions before commit 5a280ecde6f324de0d226261036e736e0cb49a71.
Business impact
Any service or application that processes untrusted font files is at risk. This includes web browsers, document rendering engines, design tools, and content management systems. Exploitation could result in information disclosure (leaking process memory) or denial of service through application crashes. For organizations serving user-generated content or handling files from external sources, this represents both a confidentiality and availability risk. The medium severity reflects the attack surface—exploitation requires a malicious font file but does not require user interaction beyond opening or rendering a document.
Affected systems
FreeType 2.14.3 and all earlier versions prior to commit 5a280ecde6f324de0d226261036e736e0cb49a71 are vulnerable. Any software directly embedding FreeType or relying on system-level FreeType libraries may be impacted, including but not limited to: rendering engines in web browsers, PDF viewers, image processing libraries, and font management utilities. Distributions packaging FreeType should verify whether their current versions incorporate the patching commit.
Exploitability
The vulnerability is exploitable without authentication or user interaction beyond normal file handling—an attacker simply provides a crafted variable font file. The network attack vector is possible if the application accepts remote font files. However, the flaw requires knowledge of FreeType's internal memory layout and precise font construction to reliably trigger the out-of-bounds read and extract meaningful data. No public exploit code is known at publication, but the relatively straightforward nature of out-of-bounds read flaws means exploitation is feasible for competent attackers with access to the vulnerable library code.
Remediation
Update FreeType to a version incorporating commit 5a280ecde6f324de0d226261036e736e0cb49a71 or later. Verify the exact patched version number with your vendor or the FreeType project release notes. Organizations using distributions or embedded versions of FreeType should prioritize patches from their respective vendors (e.g., OS package managers, commercial software vendors). Until patches are deployed, implement file input validation and restrict font file sources to trusted, pre-vetted sources where feasible.
Patch guidance
Check FreeType's official repository and release notes to identify which minor/patch version incorporates the fix commit. Most Linux distributions will release updated packages; monitor your vendor's security advisories. For applications embedding FreeType statically, recompilation with the patched source is necessary. For those using system FreeType, ensure system package managers are updated. Verify the patched version by querying FreeType's API or checking library metadata post-update. Testing should include rendering of legitimate variable font files to ensure no regressions.
Detection guidance
Monitor for unusual font file submissions or processing, particularly variable TrueType fonts (.ttf/.otf with variation tables). Implement file type validation and consider sandboxing font rendering operations. Security events such as application crashes or segmentation faults during font processing may indicate exploitation attempts. Host-based monitoring should track FreeType library updates and version verification. If feasible, limit font rendering to trusted sources and disable processing of variable fonts if not required by your application.
Why prioritize this
This vulnerability merits prioritization because it affects a foundational library used across numerous applications. While the CVSS score is moderate (6.5), the potential for widespread deployment means a single unpatched FreeType instance could be exploited across multiple dependent services. The low attack complexity and network attack surface amplify the risk for internet-facing applications. Organizations should patch promptly, with priority given to internet-facing services, document processors, and web rendering infrastructure.
Risk score, explained
The CVSS v3.1 score of 6.5 (MEDIUM) reflects a network-accessible out-of-bounds read with no authentication required, balanced against the lack of integrity impact and the requirement for a specially crafted input. While confidentiality is partially compromised (information disclosure) and availability is somewhat degraded (potential crash), the score does not escalate to HIGH because exploitation is not as trivial as a simple network request and requires adversary knowledge of the target's memory layout. Organizations handling sensitive documents or user-controlled fonts should treat this as HIGH priority despite the moderate CVSS score.
Frequently asked questions
How can I determine if my application uses FreeType?
Check your application's dependencies, linked libraries, or vendor documentation. Use tools like `ldd` (Linux) or `otool` (macOS) to inspect dynamic library dependencies. If your application renders fonts or displays documents, it likely uses FreeType directly or indirectly through a higher-level framework like Pango or Cairo.
What happens if this vulnerability is exploited?
An attacker could cause the application to read and leak portions of process memory (information disclosure) or trigger a crash (denial of service). The severity depends on what data is in memory—in worst cases, this could include cryptographic keys or sensitive user data. Immediate code execution is not possible through this flaw alone.
Do I need to change my font handling code after patching?
No. The patch fixes the underlying library issue. After updating FreeType, existing applications should continue to work correctly with legitimate fonts. Recompilation may be needed depending on how FreeType is integrated (static vs. dynamic linking).
Is this vulnerability being actively exploited?
As of the publication date, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, and no public exploits are known. However, out-of-bounds read vulnerabilities are well-understood attack primitives, so expedient patching remains important.
This analysis is provided for informational purposes and reflects publicly available information as of the publication date. CVSS scores and severity assessments are based on vendor-provided data. Actual risk varies by environment; organizations should conduct independent risk assessments aligned with their threat models and asset inventory. Verify patch availability and compatibility with your specific vendor or deployment before applying updates. This document does not constitute professional security advice; consult qualified security professionals for your organization's specific circumstances. Source: NVD (public-domain), retrieved 2026-08-16. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2020-9711MEDIUMAdobe Acrobat Reader Out-of-Bounds Read Memory Disclosure
- CVE-2020-9713MEDIUMAdobe Acrobat Reader Memory Disclosure Vulnerability
- CVE-2025-15661MEDIUMlibssh2 Out-of-Bounds Heap Read in SFTP Symlink Handling
- CVE-2025-70101MEDIUMlwext4 1.0.0 Out-of-Bounds Read Denial of Service
- CVE-2026-0127MEDIUMAndroid Out-of-Bounds Read in Communication Processor – Impact & Patch Guidance
- CVE-2026-0128MEDIUMAndroid RTCP Out-of-Bounds Read Information Disclosure
- CVE-2026-0136MEDIUMAndroid Modem Out-of-Bounds Read Denial of Service
- CVE-2026-0140MEDIUMAndroid RTP Integer Overflow Information Disclosure Vulnerability