Skip to content
Memory corruption Advisory Advanced CVE-2017-2920

Computerinsel Photoline SVG Parsing Code Execution Vulnerability

A memory corruption vulnerability exists in the SVG parsing functionality of Computerinsel Photoline 20.02. A specially crafted SVG file can cause memory corruption, potentially leading to arbitrary code execution.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An memory corruption vulnerability exists in the .SVG parsing functionality of Computerinsel Photoline 20.02. A specially crafted .SVG file can cause a vulnerability resulting in memory corruption, which can potentially lead to arbitrary code execution.

Piotr Bania, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a size value derived from the SVG path's D attribute is converted from float to int and then multiplied without proper bounds checking, leading to an out-of-bounds write in memset.

Impact

This could potentially lead to arbitrary code execution.

What the attacker needed

Victim opens a malicious SVG file

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This report describes a bug in an image editing program when it opens a special SVG file. The program makes a mistake in calculating how much memory to use, which can crash it or let an attacker run their own code.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Piotr Bania

View all

94 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.