Gentoo Logo

JHead: Multiple vulnerabilities


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200901-02 / jhead
Release Date January 11, 2009
Latest Revision January 11, 2009: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-gfx/jhead < 2.84-r1 >= 2.84-r1 All supported architectures

Related bugreports: #242702, #243238


Multiple vulnerabilities in JHead might lead to the execution of arbitrary code or data loss.

2.  Impact Information


JHead is an exif jpeg header manipulation tool.


Marc Merlin and John Dong reported multiple vulnerabilities in JHead:

  • A buffer overflow in the DoCommand() function when processing the cmd argument and related to potential string overflows (CVE-2008-4575).
  • An insecure creation of a temporary file (CVE-2008-4639).
  • A error when unlinking a file (CVE-2008-4640).
  • Insufficient escaping of shell metacharacters (CVE-2008-4641).


A remote attacker could possibly execute arbitrary code by enticing a user or automated system to open a file with a long filename or via unspecified vectors. It is also possible to trick a user into deleting or overwriting files.

3.  Resolution Information


There is no known workaround at this time.


All JHead users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-gfx/jhead-2.84-r1"

4.  References


Page updated January 11, 2009

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.