Update dependency fonttools to v4.61.0 [SECURITY] #3365
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==4.60.1->==4.61.0GitHub Vulnerability Alerts
CVE-2025-66034
Summary
The
fonttools varLib(orpython3 -m fontTools.varLib) script has an arbitrary file write vulnerability that leads to remote code execution when a malicious .designspace file is processed. The vulnerability affects themain()code path offontTools.varLib, used by the fonttools varLib CLI and any code that invokesfontTools.varLib.main().The vulnerability exists due to unsanitised filename handling combined with content injection. Attackers can write files to arbitrary filesystem locations via path traversal sequences, and inject malicious code (like PHP) into the output files through XML injection in labelname elements. When these files are placed in web-accessible locations and executed, this achieves remote code execution without requiring any elevated privileges. Once RCE is obtained, attackers can further escalate privileges to compromise system files (like overwriting
/etc/passwd).Overall this allows attackers to:
The attacker controls the file location, extension and contents which could lead to remote code execution as well as enabling a denial of service through file corruption means.
Affected Lines
fontTools/varLib/__init__.pyPoC
malicious.designspaceand respectivesource-*.ttffiles in a directory like/Users/<username>/testing/demo/(will impact relative file location within malicious.designspace)setup.pymalicious.designspaceOptional: You can put a file with any material within
../../tmp/newarbitraryfile.jsonin advance, the contents in the file will be overwritten after running the setup script in the following step.source-*.tfffiles required for the malicious.designspace file.malicious2.designspaceHere being outputted to a localised area ignoring filename presented in variable-font
to show
<?php echo shell_exec("/usr/bin/touch /tmp/MEOW123");?>]]>we can see that the file was just created showing RCE.
Recommendations
Release Notes
fonttools/fonttools (fonttools)
v4.61.0Compare Source
fonttools varLibcommand-line script, or code which invokesfonttools.varLib.main(). Fixes CVE-2025-66034, see: GHSA-768j-98cg-p3fv.unicodedata2 >= 17.0.0when installed with 'unicode' extra.Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.