CVE-2024-47913: Mediawiki/abuse filter Improper Permissions Handling Vulnerability

MODERATE
Advisory Identifier: GHSA-rmcp-9fhq-58pv
CVSS 5.3
CWE-532
Published
Advisory Summary

CVE-2024-47913 is a MODERATE (CVSS 5.3) improper permissions handling vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Mediawiki/abuse filter libraries in the Packagist ecosystem. The issue involves improper permissions handling in mediawiki abusefilter. Remediation is available by upgrading affected packages to version 1.39.9, 1.41.3, 1.42.2.

CVE-2024-47913 at a Glance

CVE Identifier CVE-2024-47913
GHSA Identifier GHSA-rmcp-9fhq-58pv
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Mediawiki/abuse filter
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-47913

To remediate this vulnerability, upgrade all affected Mediawiki/abuse filter 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/abuse-filter fixed: 1.39.9
Upgrade mediawiki/abuse-filter to 1.39.9
mediawiki/abuse-filter fixed: 1.41.3
Upgrade mediawiki/abuse-filter to 1.41.3
mediawiki/abuse-filter fixed: 1.42.2
Upgrade mediawiki/abuse-filter to 1.42.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/abuse-filter

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-47913, inspect your project dependencies for Mediawiki/abuse filter:

inspect dependencies for mediawiki/abuse-filter

Analyze the terminal output to locate any version of Mediawiki/abuse filter in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.39.9), 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Mediawiki/abuse filter, 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

An issue was discovered in the AbuseFilter extension for MediaWiki before 1.39.9, 1.40.x and 1.41.x before 1.41.3, and 1.42.x before 1.42.2. An API caller can match a filter condition against AbuseFilter logs even if the caller is not authorized to view the log details for the filter.

CVE-2024-47913 Affected Mediawiki/abuse filter Versions

3 component(s)
Fixed Versions:
1.39.91.41.31.42.2
Product / Package Ecosystem Affected Versions Fixed Version
mediawiki/abuse-filter
Packagist
< 1.39.9
1.39.9
mediawiki/abuse-filter
Packagist
≥ 1.40.0
< 1.41.3
1.41.3
mediawiki/abuse-filter
Packagist
≥ 1.42.0
< 1.42.2
1.42.2

References

Frequently Asked Questions

What is CVE-2024-47913?
CVE-2024-47913 is a security vulnerability in Mediawiki/abuse filter involving Improper permissions handling in MediaWiki AbuseFilter under CWE-532: Insertion of Sensitive Information into Log File.
Which Mediawiki/abuse filter versions are affected?
Affected versions include releases prior to 1.39.9, 1.41.3, 1.42.2 across affected packages: mediawiki/abuse-filter.
What version fixes CVE-2024-47913?
Upgrading to 1.39.9, 1.41.3, 1.42.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mediawiki/abuse-filter affected?
Yes, mediawiki/abuse-filter is affected in releases prior to 1.39.9, 1.41.3, 1.42.2. Upgrade your dependency to 1.39.9, 1.41.3, 1.42.2 or later.
What is the CVSS score of CVE-2024-47913?
CVE-2024-47913 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-47913?
CVE-2024-47913 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Packagist dependencies for CVE-2024-47913?
Run the dependency tree command: 'inspect dependencies for mediawiki/abuse-filter'. 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-rmcp-9fhq-58pv",
  "modified" : "2024-12-06T22:11:48Z",
  "published" : "2024-10-05T00:34:19Z",
  "aliases" : [ "CVE-2024-47913" ],
  "summary" : "Improper permissions handling in MediaWiki AbuseFilter",
  "details" : "An issue was discovered in the AbuseFilter extension for MediaWiki before 1.39.9, 1.40.x and 1.41.x before 1.41.3, and 1.42.x before 1.42.2. An API caller can match a filter condition against AbuseFilter logs even if the caller is not authorized to view the log details for the filter.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mediawiki/abuse-filter"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.39.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mediawiki/abuse-filter"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.40.0"
      }, {
        "fixed" : "1.41.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mediawiki/abuse-filter"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.42.0"
      }, {
        "fixed" : "1.42.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47913"
  }, {
    "type" : "WEB",
    "url" : "https://gerrit.wikimedia.org/r/c/mediawiki/extensions/AbuseFilter/+/1076855"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wikimedia/mediawiki-extensions-AbuseFilter"
  }, {
    "type" : "WEB",
    "url" : "https://phabricator.wikimedia.org/T372998"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-06T22:11:48Z",
    "nvd_published_at" : "2024-10-04T22:15:02Z"
  }
}