Distro News

Ubuntu patches rack-cors path traversal flaw (CVE-2019-18978) via ESM for 18.04 LTS

Key Takeaway

rack-cors mishandled relative file paths, letting an attacker reach arbitrary files over the network; the fix for Ubuntu 18.04 LTS ships only through Ubuntu Pro's ESM Apps channel.

Summary

Ubuntu published USN-9341-1 on 1 December 2026 covering a vulnerability in rack-cors, the Ruby library that adds Cross-Origin Resource Sharing support to Rack-based web applications. The advisory states that rack-cors did not properly handle relative file paths, which could allow an attacker to access arbitrary files over the network. The issue is tracked as CVE-2019-18978 and is linked to the earlier USN-4571-1 notice.

The only Ubuntu release listed in the notice is 18.04 LTS (bionic), where the corrected package is ruby-rack-cors 1.0.1-2ubuntu0.1~esm1. That version is delivered through Ubuntu Pro's ESM Apps, and the advisory notes that a community fix might become publicly available in the future. Standard system updates are described as sufficient once the fixed package is available to the system.

What CVE-2019-18978 means for Rack deployments

  • Defect class: rack-cors failed to properly handle relative file paths, a path-handling weakness that the advisory says can result in unintended access to files over the network.
  • Affected component: the ruby-rack-cors package, which provides Cross-Origin Resource Sharing support for Rack-compatible Ruby web applications; any app relying on it for CORS handling inherits the exposure.
  • Attack vector: remote and network-reachable, since the notice frames the impact as file access over the network rather than a local privilege issue; no authentication requirement is stated.
  • Fixed version: ruby-rack-cors 1.0.1-2ubuntu0.1~esm1 for Ubuntu 18.04 LTS bionic, available only with Ubuntu Pro via ESM Apps.
  • Remediation path: a standard system update applies the fix where the ESM repository is enabled; the advisory cross-references USN-4571-1 as a related notice.

Why it matters

Ruby on Rack remains a common stack for internal APIs and small web services, so a path-handling flaw in a CORS middleware library matters to anyone still running those apps on an LTS image. The practical wrinkle here is delivery: 18.04 LTS is past standard support, so administrators without Ubuntu Pro attached get no packaged fix from the archive, and the advisory only hints that a community build may appear later. That makes this a reminder to inventory Ruby dependencies on aging LTS hosts and confirm ESM coverage rather than assume apt upgrade closes the gap.

Original reference: ubuntu.com →