CVE-2009-4227 Memory corruption in n/a

Medium 6.8 Published Updated

Remote attackers can execute arbitrary code by tricking users into opening a malformed .fig file in Xfig or Transfig.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2009-4227?

CVE-2009-4227 is a medium-severity memory corruption vulnerability in n/a, published on 8 Dec 2009. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Stack-based buffer overflow in the read_1_3_textobject function in f_readold.c in Xfig 3.2.5b and earlier, and in the read_textobject function in read1_3.c in fig2dev in Transfig 3.2.5a and earlier, allows remote attackers to execute arbitrary code via a long string in a malformed .fig file that uses the 1.3 file format. NOTE: some of these details are obtained from third party information.

Weakness: CWE-119

Which versions are affected by CVE-2009-4227?

It affects 1 product.

Products include Xfig Xfig.

How do I fix CVE-2009-4227?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2009-4227 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-4227 exists.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as DEBIAN-CVE-2009-4227, GHSA-3pwv-p24f-xm44.

Is CVE-2009-4227 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free