Gentoo Logo

Perl: Buffer overflow


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200711-28 / perl
Release Date November 19, 2007
Latest Revision November 19, 2007: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-lang/perl < 5.8.8-r4 >= 5.8.8-r4 All supported architectures

Related bugreports: #198196


A buffer overflow in the Regular Expression engine in Perl possibly allows for the execution of arbitrary code.

2.  Impact Information


Perl is a stable, cross-platform programming language created by Larry Wall.


Tavis Ormandy and Will Drewry (Google Security Team) discovered a heap-based buffer overflow in the Regular Expression engine (regcomp.c) that occurs when switching from byte to Unicode (UTF-8) characters in a regular expression.


A remote attacker could either entice a user to compile a specially crafted regular expression or actively compile it in case the script accepts remote input of regular expressions, possibly leading to the execution of arbitrary code with the privileges of the user running Perl.

3.  Resolution Information


There is no known workaround at this time.


All Perl users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/perl-5.8.8-r4"

4.  References


Page updated November 19, 2007

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.