Vulnerability Note VU#723910

MPlayer contains a buffer overflow in the HTTP parser

Original Release date: 09 Apr 2004 | Last revised: 09 Apr 2004

Overview

MPlayer fails to properly allocate a memory buffer for URL strings containing characters that need to be escaped.

Description

MPlayer is a movie player for Linux and other Unix-based operating systems. MPlayer fails to properly allocate a memory buffer for URL strings containing characters that need to be escaped. When escaping characters in a URL, a single character may be replaced by three. For instance, the space character may be replaced by %20. There is a vulnerability in the way MPlayer allocates memory to store the escaped representation of the URL. By sending a "Location" HTTP header containing an overly long URL with many un-escaped characters, an attacker can trigger a buffer overflow.

According to the MPlayer Advisory, the following versions are affected:

  • MPlayer 0.90pre series
  • MPlayer 0.90rc series
  • MPlayer 0.90
  • MPlayer 0.91
  • MPlayer 1.0pre1
  • MPlayer 1.0pre2
  • MPlayer 1.0pre3

Impact

By convincing a user to play a media file containing a specially crafted "Location" HTTP header, an attacker could cause MPlayer to crash or potentially execute code of the attacker's choice with privileges of the victim.

Solution

Upgrade
According to the MPlayer Advisory, users of MPlayer 1.0pre3 should upgrade to the latest CVS. MPlayer 0.92 (and below) users should upgrade to 0.92.1 or the latest CVS.

Apply Patch

Apply a patch as specified by your vendor. If a patch is unavailable from your vendor, the maintainers of MPlayer have provided a patch for all vulnerable versions. This patch can be obtained from:

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
MPLAYERHQAffected-09 Apr 2004
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A N/A

References

Credit

This vulnerability was reported by blexim.

This document was written by Damon Morda.

Other Information

  • CVE IDs: Unknown
  • Date Public: 31 Mar 2004
  • Date First Published: 09 Apr 2004
  • Date Last Updated: 09 Apr 2004
  • Severity Metric: 1.35
  • Document Revision: 16

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.