Secunia - Stay Secure
Gartner
Home Corporate Website Jobs Updated Mailing Lists RSS Blog  Online Shop Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


Perl Explicit Format Parameter Index Integer Overflow Vulnerability Advisory Available in Danish 

Secunia Advisory: SA17802  
Release Date: 2005-12-01
Last Update: 2005-12-22

Critical:
Moderately critical
Impact: DoS
System access
Where: From remote
Solution Status: Vendor Patch

Software:Perl 5.x

CVE reference:CVE-2005-3962 (Secunia mirror)

Want to know the next time vulnerabilities are fixed in this product?
- Companies can be alerted via email and SMS!


Description:
Jack Louis has discovered a vulnerability in Perl, which can be exploited by malicious people to cause a Denial of Service and potentially to compromise a vulnerable Perl application.

The vulnerability is caused due to an integer overflow error in the "Perl_sv_vcatpvfn()" function of "sv.c" when handing a format string that contains an explicit format parameter index that exceeds INT_MAX. This can exploited to cause illegal memory access which causes an affected Perl application to crash.

Example:
perl -e 'printf("%2147483649\$n");'

The vulnerability has been confirmed in version 5.8.7 and also reported in versions 5.8.6 and 5.9.2. Other versions may also be affected.

Note: This vulnerability must be exploited in conjunction with a format string vulnerability in a Perl application. According to the vendor, exploitation of this vulnerability could lead to execution of arbitrary code.

Solution:
Apply patches.

Perl 5.8.0:
ftp://ftp.cpan.org/pub/CPAN/authors/id/N/NW/NWCLARK/sprintf-5.8.0.patch

Perl 5.8.1 and 5.8.2:
ftp://ftp.cpan.org/pub/CPAN/authors/id/N/NW/NWCLARK/sprintf-5.8.2.patch

Perl 5.8.3:
ftp://ftp.cpan.org/pub/CPAN/authors/id/N/NW/NWCLARK/sprintf-5.8.3.patch

Perl 5.8.4 through 5.8.7:
ftp://ftp.cpan.org/pub/CPAN/authors/id/N/NW/NWCLARK/sprintf-5.8.7.patch

Provided and/or discovered by:
Jack Louis, Dyad Security.

Changelog:
2005-12-02: Added CVE reference.
2005-12-07: Added links to US-CERT vulnerability notes.
2005-12-22: Vendor released patch information. Updated "Critical", "Solution Status", "Solution" and "Original Advisory" sections.

Original Advisory:
Perl.org:
http://www.perlfoundation.org/news/2005/sprintf_patch_released.html

Dyad Security:
http://www.dyadsecurity.com/perl-0002.html

Other References:
VU#948385:
http://www.kb.cert.org/vuls/id/948385

VU#946969:
http://www.kb.cert.org/vuls/id/946969



Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.

7 Related Secunia Security Advisories

1. Perl "File::Path::rmtree" Insecure chmod on Symbolic Links
2. Perl Regular Expressions Unicode Data Buffer Overflow
3. Perl "File::Path::rmtree" Directory Permissions Race Condition
4. Perl "PERLIO_DEBUG" Privilege Escalation Vulnerabilities
5. Perl "File::Path::rmtree" Race Condition
6. Perl Multiple Scripts Insecure Temporary File Creation Vulnerabilities
7. Perl win32_stat Function Buffer Overflow Vulnerability


Send Feedback to Secunia

If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
OpenBSD BIND Query Port DNS Cache Poisoning
2.
Drupal Session Fixation Vulnerability
3.
Linux Kernel LDT Buffer Size Handling Vulnerability
4.
YouTube Blog Multiple Vulnerabilities
5.
Apple Safari Cross-Domain Cookie Injection Vulnerability
6.
dnsmasq Denial of Service and DNS Cache Poisoning
7.
Red Hat update for kernel
8.
Red Hat update for thunderbird
9.
Debian update for clamav
10.
Ubuntu update for php





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia