JavaScript execution via untyped FontMatrix glyph compilation
Published May 14, 2024 · Updated May 12, 2026
Code injection in PDF.js in Firefox, Firefox ESR, Thunderbird, and Teamcenter allows attackers to run JavaScript via a crafted PDF. FontFaceObject.getPathGenerator joins unvalidated Type 1 FontMatrix values into source passed to the Function constructor during glyph compilation. Rendering the PDF reaches the flaw when evaluation is enabled, its default; affected releases precede Firefox 126, Firefox ESR and Thunderbird 115.11, Teamcenter V2312.0009, or V2406.0006.
Summary
What happened
Code injection in PDF.js in Firefox, Firefox ESR, Thunderbird, and Teamcenter allows attackers to run JavaScript via a crafted PDF. FontFaceObject.getPathGenerator joins unvalidated Type 1 FontMatrix values into source passed to the Function constructor during glyph compilation. Rendering the PDF reaches the flaw when evaluation is enabled, its default; affected releases precede Firefox 126, Firefox ESR and Thunderbird 115.11, Teamcenter V2312.0009, or V2406.0006.
The record
- CVE
- CVE-2024-4367
- Published
- May 14, 2024
- Updated
- May 12, 2026
- Vendor
- Mozilla
- Product
- Firefox
- Classifications
- CWE-754, T1204.002, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 14, 2024CVE publishedPublication date reported by the CVE source.
- May 12, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <126
- Affected versionversion=unspecified <126
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Mozilla generalized FontMatrix proof-of-concept PDFproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo