Security fix · CVE-2026-112893
Pillow is a Python imaging library.
Published Oct 19, 2026 · catalog updated Oct 21, 2026 · Pillow is a Python
Last checked Oct 31, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2026-112893. EPSS is 0.55%. Act only if a listed version of Pillow is a Python is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (Pillow is a Python).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- High8.2
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.55%
- Remediation
- Version ranges on file
- Affected products
- pip pillow · pypi pillow
### Summary When text is drawn with a non-zero stroke width, Pillow creates a FreeType stroker and then loads each glyph. If fails for a glyph, the cleanup path calls on the variable. That variable is not initialized before the first measurement loop, and in the render loop it is not reset to NULL after each glyph is freed. A malformed font loaded from untrusted bytes can force the load error and reach this free. This is a latent memory-safety defect; whether it crashes depends on the value in the uninitialized or stale pointer. ### Details is declared without a NULL initializer: - The first measurement loop can jump to before is ever assigned: - In the render loop the glyph is freed at the end of each iteration and not set back to NULL: - The cleanup frees it whenever a stroker exists: - accepts a file object or bytes, so the font is attacker-suppliable. ### PoC This needs and any base TTF (the example uses one bundled with Pillow's tests). It rewrites glyph "A" to claim 5000 contours in a glyph body far too short for them, so returns an error while the face still opens. Result on the pinned build: returns an error and execution reaches the cleanup that calls (the plugin surfaces ). ### Impact Applications that draw text with using fonts loaded from untrusted bytes can hit an invalid or double free. The correct fix is small: initialize and set it back to NULL after each .
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- pip pillow>= 10.0.0, < 13.0.0
- pypi pillowversion unspecified
How to fix CVE-2026-112893
Upgrade
CVE-2026-112893 lists a fix boundary at 13.0.0. Compare the installed build with that boundary before you change production.
Version check
Affected < 13.0.0
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-112893. EPSS is 0.55%. Act only if a listed version of Pillow is a Python is installed.
Which versions are affected?
Compare what you have installed with >= 10.0.0, < 13.0.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-457; CWE-763. EPSS 0.55%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Technology hubs
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 19, 2026 · NIST NVD
Detected
Pillow is a Python imaging library. From 10.0.0 until 13.0.0, Pillow can free an invalid glyph pointer during FreeType rendering with an active stroker. If FT_Load_Glyph fails, cleanup may call FT_Done_Glyph on an uninitialized or stale glyph variable. An attacker can supply a malformed font as untrusted bytes to an application that draws text with a nonzero stroke width, forcing the glyph-load fa
Oct 20, 2026 · NIST NVD
Updated
Pillow is a Python imaging library. From 10.0.0 until 13.0.0, Pillow can free an invalid glyph pointer during FreeType rendering with an active stroker. If FT_Load_Glyph fails, cleanup may call FT_Done_Glyph on an uninitialized or stale glyph variable. An attacker can supply a malformed font as untrusted bytes to an application that draws text with a nonzero stroke width, forcing the glyph-load fa
Oct 21, 2026 · GitHub Advisory Database
Updated
### Summary When text is drawn with a non-zero stroke width, Pillow creates a FreeType stroker and then loads each glyph. If fails for a glyph, the cleanup path calls on the variable. That variable is not initialized before the first measurement loop, and in the render loop it is not reset to NULL after each glyph is freed. A malformed font loaded from untrusted bytes can force the load error and
Sources
- CVE.orgVulnerability recordCVE-2026-112893
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-112893
30-day exploitation probability 0.55%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-j4m9-6w36-pw47
Pillow: Invalid free in FreeType glyph rendering when a stroker is active
github.com - GitLab Advisory DatabasePackage advisoryCVE-2026-112893
When text is drawn with a non-zero stroke width, Pillow creates a FreeType stroker and then loads each glyph. If FT_Load_Glyph fails for a glyph, the cleanup path calls FT_Done_Glyph on the glyph variable. That variable is not initialized before the first measurement loop, and in the render loop it is not reset to NULL after each glyph is freed. A malformed font loaded from untrusted bytes can for
advisories.gitlab.com - NIST NVDVulnerability recordCVE-2026-112893
Pillow is a Python imaging library. From 10.0.0 until 13.0.0, Pillow can free an invalid glyph pointer during FreeType rendering with an active stroker. If FT_Load_Glyph fails, cleanup may call FT_Done_Glyph on an uninitialized or stale glyph variable. An attacker can supply a ma
nvd.nist.gov
References
Freshness
Last verified in this catalog Oct 31, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- FIRST EPSSOct 31, 2026
- GitLab Advisory DatabaseOct 23, 2026
- GitHub Advisory DatabaseOct 22, 2026
- CVE.orgOct 21, 2026
- NIST NVDOct 21, 2026