CVE-2026-58496: Medium severity ThorVG ThorVG vulnerability

Published Oct 27, 2026
·
Updated

Thor Vector Graphics (ThorVG) is a production-ready vector graphics engine. Prior to 1.0.7, the SFNT/TTF font loader's SfntLoader::gen function in tvgSfntLoader.cpp reads data[0] through data[3] to identify the font type without first checking that the input buffer contains at least four bytes. Loading an undersized font directly from memory through public APIs such as tvg::Text::load causes an out-of-bounds read. Loading through a file path using mmap can mask the read because of page alignment; the memory-loading API directly exposes it. Depending on memory layout, a malformed short font may crash the consuming application or disclose adjacent heap memory. This issue is fixed in version 1.0.7.

Affected Software

1 affected component
ThorVG ThorVG<1.0.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ThorVG to a version that resolves this vulnerability.

    Fixed in 1.0.7

Event History

Oct 27, 2026
CVE Published
via NVD·11:17 PM
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are most exposed to this issue?

Applications using ThorVG before 1.0.7 that load SFNT/TTF font data directly from memory through public APIs such as tvg::Text::load are directly exposed. File-path loading may mask the issue when mmap page alignment makes adjacent bytes readable, but it should not be treated as safe.

2

What must an attacker provide to trigger the flaw?

An attacker needs to cause the application to load a malformed SFNT/TTF font buffer shorter than four bytes through the memory-loading API. The vulnerability requires user interaction according to the supplied CVSS vector.

3

What is the impact of a successful trigger?

Depending on the surrounding memory layout, the out-of-bounds read can crash the consuming application or disclose adjacent heap memory. The supplied severity information rates confidentiality impact as low and reports no integrity or availability impact.

4

What remediation is available?

Upgrade ThorVG to version 1.0.7, which fixes the issue. If upgrading cannot happen immediately, avoid passing untrusted or undersized font buffers to the direct memory-loading APIs and validate that font input contains at least four bytes before loading it.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203