USN-1643-1: Perl vulnerabilities

30 November 2012

perl vulnerabilities

A security issue affects these releases of Ubuntu and its derivatives:

  • Ubuntu 12.10
  • Ubuntu 12.04 LTS
  • Ubuntu 11.10
  • Ubuntu 10.04 LTS
  • Ubuntu 8.04 LTS

Summary

Perl programs could be made to crash or run programs if they receive specially crafted network traffic or other input.

Software Description

  • perl - Larry Wall’s Practical Extraction and Report Language

Details

It was discovered that the decode_xs function in the Encode module is vulnerable to a heap-based buffer overflow via a crafted Unicode string. An attacker could use this overflow to cause a denial of service. (CVE-2011-2939)

It was discovered that the ‘new’ constructor in the Digest module is vulnerable to an eval injection. An attacker could use this to execute arbitrary code. (CVE-2011-3597)

It was discovered that Perl’s ‘x’ string repeat operator is vulnerable to a heap-based buffer overflow. An attacker could use this to execute arbitrary code. (CVE-2012-5195)

Ryo Anazawa discovered that the CGI.pm module does not properly escape newlines in Set-Cookie or P3P (Platform for Privacy Preferences Project) headers. An attacker could use this to inject arbitrary headers into responses from applications that use CGI.pm. (CVE-2012-5526)

Update instructions

The problem can be corrected by updating your system to the following package versions:

Ubuntu 12.10
perl - 5.14.2-13ubuntu0.1
Ubuntu 12.04 LTS
perl - 5.14.2-6ubuntu2.2
Ubuntu 11.10
perl - 5.12.4-4ubuntu0.1
Ubuntu 10.04 LTS
perl - 5.10.1-8ubuntu2.2
Ubuntu 8.04 LTS
perl - 5.8.8-12ubuntu0.7

To update your system, please follow these instructions: https://wiki.ubuntu.com/Security/Upgrades.

Perl programs need to be restarted after a standard system update to make all the necessary changes.

References