CVE-2020-15005: Mediawiki/core Img_auth.php May Leak Private Extension Vulnerability

MODERATE
Advisory Identifier: GHSA-xpv7-93cm-4mxv
CWE-200
Published
Advisory Summary

CVE-2020-15005 is a MODERATE img_auth.php may leak private extension vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Mediawiki/core libraries in the Packagist ecosystem. The issue involves img_auth.php may leak private extension images into the public cache. Remediation is available by upgrading affected packages to version 1.31.8, 1.33.4, 1.34.2.

CVE-2020-15005 at a Glance

CVE Identifier CVE-2020-15005
GHSA Identifier GHSA-xpv7-93cm-4mxv
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Mediawiki/core
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2020-15005

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

mediawiki/core fixed: 1.31.8
Upgrade mediawiki/core to 1.31.8
mediawiki/core fixed: 1.33.4
Upgrade mediawiki/core to 1.33.4
mediawiki/core fixed: 1.34.2
Upgrade mediawiki/core to 1.34.2
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 mediawiki/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-15005, inspect your project dependencies for Mediawiki/core:

inspect dependencies for mediawiki/core

Analyze the terminal output to locate any version of Mediawiki/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.31.8), 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 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Mediawiki/core, 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

In MediaWiki before 1.31.8, 1.32.x and 1.33.x before 1.33.4, and 1.34.x before 1.34.2, private wikis behind a caching server using the img_auth.php image authorization security feature may have had their files cached publicly, so any unauthorized user could view them. This occurs because Cache-Control and Vary headers were mishandled.

CVE-2020-15005 Affected Mediawiki/core Versions

3 component(s)
Fixed Versions:
1.31.81.33.41.34.2
Product / Package Ecosystem Affected Versions Fixed Version
mediawiki/core
Packagist
< 1.31.8
1.31.8
mediawiki/core
Packagist
≥ 1.32.0
< 1.33.4
1.33.4
mediawiki/core
Packagist
≥ 1.34.0
< 1.34.2
1.34.2

References

Frequently Asked Questions

What is CVE-2020-15005?
CVE-2020-15005 is a security vulnerability in Mediawiki/core involving img_auth.php may leak private extension images into the public cache under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Mediawiki/core versions are affected?
Affected versions include releases prior to 1.31.8, 1.33.4, 1.34.2 across affected packages: mediawiki/core.
What version fixes CVE-2020-15005?
Upgrading to 1.31.8, 1.33.4, 1.34.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mediawiki/core affected?
Yes, mediawiki/core is affected in releases prior to 1.31.8, 1.33.4, 1.34.2. Upgrade your dependency to 1.31.8, 1.33.4, 1.34.2 or later.
What CWE is associated with CVE-2020-15005?
CVE-2020-15005 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Packagist dependencies for CVE-2020-15005?
Run the dependency tree command: 'inspect dependencies for mediawiki/core'. 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-xpv7-93cm-4mxv",
  "modified" : "2024-11-01T23:09:01Z",
  "published" : "2022-05-24T17:21:40Z",
  "aliases" : [ "CVE-2020-15005" ],
  "summary" : "img_auth.php may leak private extension images into the public cache",
  "details" : "In MediaWiki before 1.31.8, 1.32.x and 1.33.x before 1.33.4, and 1.34.x before 1.34.2, private wikis behind a caching server using the img_auth.php image authorization security feature may have had their files cached publicly, so any unauthorized user could view them. This occurs because Cache-Control and Vary headers were mishandled.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mediawiki/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.31.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mediawiki/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.32.0"
      }, {
        "fixed" : "1.33.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mediawiki/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.34.0"
      }, {
        "fixed" : "1.34.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15005"
  }, {
    "type" : "WEB",
    "url" : "https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/REL1_31/RELEASE-NOTES-1.31"
  }, {
    "type" : "WEB",
    "url" : "https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/REL1_33/RELEASE-NOTES-1.33"
  }, {
    "type" : "WEB",
    "url" : "https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/REL1_34/RELEASE-NOTES-1.34"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wikimedia/mediawiki"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2020/12/msg00034.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EEZIMLJMJS72SJXPYL736XMUAVCRQD2H"
  }, {
    "type" : "WEB",
    "url" : "https://lists.wikimedia.org/pipermail/wikitech-l/2020-June/093535.html"
  }, {
    "type" : "WEB",
    "url" : "https://phabricator.wikimedia.org/T248947"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2020/dsa-4767"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-01T23:09:01Z",
    "nvd_published_at" : "2020-06-24T23:15:00Z"
  }
}