Distro News

TZInfo path traversal vulnerability affects Ubuntu LTS releases

Key Takeaway

A path traversal flaw in the TZInfo library allows for arbitrary code execution when using the Ruby data source.

Summary

A security vulnerability has been identified in the TZInfo library, a daylight-savings aware timezone library. The flaw stems from improper validation of timezone identifiers, which can be exploited to perform path traversal attacks.

When the library is utilized with the Ruby data source, an attacker can provide a specially crafted identifier to load unintended files. This vulnerability potentially enables the execution of arbitrary code on affected systems. The security advisory impacts several legacy Ubuntu Long Term Support (LTS) releases, including 20.04, 18.04, and 16.04.

Vulnerability details and affected versions

  • Defect Class: The issue is a path traversal vulnerability caused by insufficient validation of timezone identifier strings.
  • Attack Vector: An attacker can use specially crafted identifiers to trigger the loading of unauthorized files via the Ruby data source, leading to potential arbitrary code execution.
  • Affected Software: The vulnerability is tracked under CVE-2022-31163 and specifically impacts the ruby-tzinfo package.
  • Mitigation: Fixes are provided through Ubuntu Pro via ESM Apps for versions 20.04 LTS (1.2.6-1ubuntu0.1~esm1), 18.04 LTS (1.2.5-1ubuntu0.1~esm1), and 16.04 LTS (1.2.2-1ubuntu0.1~esm1).

Why it matters

This vulnerability is particularly significant for administrators running older Ubuntu LTS environments that rely on Ruby-based applications. Because the fix for these legacy versions is delivered via Ubuntu Pro's ESM Apps, users must have an active Ubuntu Pro subscription to receive the security patch for these specific package versions.

Original reference: ubuntu.com →