CVE-2020-15150: Paginator Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-w98m-2xqg-9cvj
Published
Advisory Summary

CVE-2020-15150 is a CRITICAL remote code execution vulnerability (General Security Weakness) affecting Paginator libraries in the Hex ecosystem. The issue involves remote code execution in paginator. Remediation is available by upgrading affected packages to version 1.0.0.

CVE-2020-15150 at a Glance

CVE Identifier CVE-2020-15150
GHSA Identifier GHSA-w98m-2xqg-9cvj
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Paginator
Package Ecosystem Hex
Published Date
Last Updated

How to Fix CVE-2020-15150

To remediate this vulnerability, upgrade all affected Paginator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

paginator fixed: 1.0.0
Upgrade paginator to 1.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for paginator

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-15150, inspect your project dependencies for Paginator:

inspect dependencies for paginator

Analyze the terminal output to locate any version of Paginator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Paginator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

There is a vulnerability in Paginator which makes it susceptible to Remote Code Execution (RCE) attacks via input parameters to the `paginate()` function. ### Impact There is a vulnerability in Paginator which makes it susceptible to Remote Code Execution (RCE) attacks via input parameters to the `paginate()` function. This will potentially affect all current users of `Paginator` prior to version >= 1.0.0. ### Patches The vulnerability has been patched in version 1.0.0 and all users should upgrade to this version immediately. Note that this patched version uses a dependency that requires an Elixir version >=1.5. ### Credits Thank you to Peter Stöckli.

CVE-2020-15150 Affected Paginator Versions

1 component(s)
Fixed Versions:
1.0.0
Product / Package Ecosystem Affected Versions Fixed Version
paginator
Hex
< 1.0.0
1.0.0

References

Frequently Asked Questions

What is CVE-2020-15150?
CVE-2020-15150 is a security vulnerability in Paginator involving Remote Code Execution in paginator under General Security Weakness.
Which Paginator versions are affected?
Affected versions include releases prior to 1.0.0 across affected packages: paginator.
What version fixes CVE-2020-15150?
Upgrading to 1.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is paginator affected?
Yes, paginator is affected in releases prior to 1.0.0. Upgrade your dependency to 1.0.0 or later.
What CWE is associated with CVE-2020-15150?
CVE-2020-15150 is classified under General Security Weakness.
How can I check Hex dependencies for CVE-2020-15150?
Run the dependency tree command: 'inspect dependencies for paginator'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w98m-2xqg-9cvj",
  "modified" : "2022-04-12T19:36:39Z",
  "published" : "2022-04-12T19:36:39Z",
  "aliases" : [ "CVE-2020-15150" ],
  "summary" : "Remote Code Execution in paginator",
  "details" : "There is a vulnerability in Paginator which makes it susceptible to Remote Code Execution (RCE) attacks via input parameters to the `paginate()` function.\n\n### Impact\nThere is a vulnerability in Paginator which makes it susceptible to Remote Code Execution (RCE) attacks via input parameters to the `paginate()` function. This will potentially affect all current users of `Paginator` prior to version >= 1.0.0.\n\n### Patches\nThe vulnerability has been patched in version 1.0.0 and all users should upgrade to this version immediately. Note that this patched version uses a dependency that requires an Elixir version >=1.5.\n\n### Credits\n\nThank you to Peter Stöckli.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Hex",
      "name" : "paginator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/duffelhq/paginator/security/advisories/GHSA-w98m-2xqg-9cvj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15150"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/duffelhq/paginator/commit/bf45e92602e517c75aea0465efc35cd661d9ebf8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/duffelhq/paginator"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/duffelhq/paginator/blob/ccf0f37fa96347cc8c8a7e9eb2c64462cec4b2dc/README.md#security-considerations"
  }, {
    "type" : "WEB",
    "url" : "https://hex.pm/packages/paginator"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-04-12T19:36:39Z",
    "nvd_published_at" : "2020-09-01T17:15:00Z"
  }
}