# Ubuntu patches Kaminari Rails pagination flaw (CVE-2020-11082) via ESM for 16.04-20.04

> **Key takeaway:** Kaminari's pagination link generation mishandled request parameters, allowing a remote attacker to inject arbitrary code into pages with pagination links; fixes ship only through Ubuntu Pro ESM Apps for 16.04, 18.04 and 20.04 LTS.

**Published:** 2026-12-01T17:21:57+00:00 
**Source:** Ubuntu Security & Release Notices 
**Category:** distro-news 
**Canonical URL:** https://fosswire.org/news/ubuntu-patches-kaminari-rails-pagination-flaw-cve-2020-11082 

## Summary
Ubuntu published USN-9340-1 on 1 December 2026 covering a security fix in Kaminari, the pagination engine plugin for Ruby on Rails. The advisory states that Kaminari incorrectly handled certain request parameters when generating pagination links, and that a remote attacker could possibly exploit this to inject arbitrary code into pages containing pagination links. The issue is tracked as CVE-2020-11082 and affects the ruby-kaminari package on Ubuntu 16.04 LTS and 18.04 LTS, and the ruby-kaminari-core package on Ubuntu 20.04 LTS.

All three releases are past their standard support windows, so the corrected packages are delivered through Ubuntu Pro's Expanded Security Maintenance for Applications rather than the regular archive. The fixed builds are ruby-kaminari 0.16.3-1ubuntu0.1~esm1 for xenial, ruby-kaminari 0.17.0-3ubuntu0.1~esm1 for bionic, and ruby-kaminari-core 1.0.1-5ubuntu0.1~esm1 for focal. Ubuntu notes that a community fix might become publicly available in the future, but at publication the remedy is tied to an Ubuntu Pro subscription; a standard system update applies the changes once the ESM pocket is enabled.

## What the Kaminari pagination fix covers
- **Defect class:** Kaminari mishandled request parameters during pagination link generation, which the advisory describes as enabling a remote attacker to inject arbitrary code into pages that render pagination links.
- **Affected packages and releases:** ruby-kaminari on Ubuntu 16.04 LTS (xenial) and 18.04 LTS (bionic), and ruby-kaminari-core on Ubuntu 20.04 LTS (focal); the package is described as a pagination engine plugin for Rails.
- **Fixed versions:** 0.16.3-1ubuntu0.1~esm1 (xenial), 0.17.0-3ubuntu0.1~esm1 (bionic) and 1.0.1-5ubuntu0.1~esm1 (focal), all published through Ubuntu Pro ESM Apps.
- **Attack vector:** remote and unauthenticated from the advisory's wording, requiring only that a vulnerable application expose pages containing Kaminari-generated pagination links.
- **Remediation:** enable the ESM Apps pocket and apply a standard system update; Ubuntu states a community fix might appear publicly in the future but does not commit to a date.

## Why it matters
Kaminari is a long-standing dependency in Rails applications, so administrators still running Ruby web stacks on 16.04, 18.04 or 20.04 LTS must either attach those hosts to Ubuntu Pro or accept an unpatched pagination layer. The advisory also illustrates how older LTS images keep receiving security maintenance only through ESM Apps, which matters for teams planning upgrades to current Ubuntu releases.