Cloudanix VulnDB

CVE-2022-38862

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Sep 15, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in certain media playback tools lets attackers run harmful code on a computer if a user opens a specially crafted file.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Full Compromise
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Buffer overflow in play() function of libaf/af.c:639 leading to memory corruption in affected media processing components.

Why it matters to the business

Local attackers can achieve arbitrary code execution on systems running vulnerable versions, risking full host compromise; high ecosystem prevalence increases exposure across dependent installations.

How an attack unfolds

An attacker crafts a malicious input file or media stream that triggers the buffer overflow when processed via the play() function, requiring user interaction to open the content in the vulnerable player or encoder on a local system.

How to fix it

Upgrade all instances to the fixed commit f8469de7724a9449b43b514a99acefaf02430ad9 in the mattermost/mattermost (GIT) repository; rebuild and redeploy affected binaries from the patched source.

How to confirm the fix worked

Verify the installed version or source commit matches or exceeds f8469de7724a9449b43b514a99acefaf02430ad9; recompile from the fixed source and confirm the vulnerable play() path no longer exhibits overflow behavior under test inputs.

Typical attack path

  1. Identify or prepare a malicious media file designed to overflow the buffer in libaf/af.c
  2. Deliver the file to the target user or system
  3. User opens the file with the vulnerable mplayer or mencoder binary
  4. play() function processes the input triggering memory corruption
  5. Attacker gains arbitrary code execution on the local host

How to detect it

Review local process execution logs and file access records for invocations of mplayer or mencoder on untrusted media; look for crashes or abnormal memory behavior in libaf/af.c paths around the play() function.

What your security team should do

  • Immediately upgrade to the fixed commit f8469de7724a9449b43b514a99acefaf02430ad9 across all affected GIT-based deployments
  • Prioritize patching due to public exploit availability and 1493 days of exposure since 2022-09-15
  • Scan build pipelines and dependency graphs for any references to the vulnerable SVN-r38374-13.0.1 revisions
  • Implement application allow-listing for media processing tools to limit local execution surfaces

The record

Certain The MPlayer Project products are vulnerable to Buffer Overflow via function play() of libaf/af.c:639. This affects mplayer SVN-r38374-13.0.1 and mencoder SVN-r38374-13.0.1.

Affected packages

Ecosystem Package Introduced Fixed
Ubuntu:18.04:LTS mplayer 0 No fix
Ubuntu:20.04:LTS mplayer 0 No fix
Ubuntu:22.04:LTS mplayer 0 No fix
Ubuntu:24.04:LTS mplayer 0 No fix
Ubuntu:24.10 mplayer 0 No fix
Ubuntu:25.04 mplayer 0 No fix
Ubuntu:25.10 mplayer 0 No fix
Ubuntu:Pro:16.04:LTS mplayer 0 No fix
Ubuntu:Pro:18.04:LTS mplayer 0 No fix
Ubuntu:Pro:20.04:LTS mplayer 0 No fix

Related vulnerabilities