CVE-2018-0504: Mediawiki/core Mediawiki Information Disclosure Vulnerability Vulnerability
MODERATECVE-2018-0504 is a MODERATE (CVSS 6.5) mediawiki information disclosure vulnerability vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Mediawiki/core libraries in the Packagist ecosystem. The issue involves mediawiki information disclosure vulnerability. Remediation is available by upgrading affected packages to version 1.27.5, 1.29.3, 1.30.1, 1.31.1.
CVE-2018-0504 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2018-0504
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.
Upgrade mediawiki/core to 1.27.5
Upgrade mediawiki/core to 1.29.3
Upgrade mediawiki/core to 1.30.1
Upgrade mediawiki/core to 1.31.1
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-2018-0504, 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.27.5), 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/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
CVE-2018-0504 Affected Mediawiki/core Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mediawiki/core
|
Packagist |
≥ 1.27.0
< 1.27.5
|
1.27.5
|
|
mediawiki/core
|
Packagist |
≥ 1.29.0
< 1.29.3
|
1.29.3
|
|
mediawiki/core
|
Packagist |
≥ 1.30.0
< 1.30.1
|
1.30.1
|
|
mediawiki/core
|
Packagist |
≥ 1.31.0
< 1.31.1
|
1.31.1
|
References
Frequently Asked Questions
What is CVE-2018-0504?
Which Mediawiki/core versions are affected?
What version fixes CVE-2018-0504?
Is mediawiki/core affected?
What is the CVSS score of CVE-2018-0504?
What CWE is associated with CVE-2018-0504?
How can I check Packagist dependencies for CVE-2018-0504?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hr8v-f4g2-p66f",
"modified" : "2024-05-15T22:53:00Z",
"published" : "2022-05-13T01:30:59Z",
"aliases" : [ "CVE-2018-0504" ],
"summary" : "Mediawiki information disclosure vulnerability",
"details" : "Mediawiki 1.31 before 1.31.1, 1.30.1, 1.29.3 and 1.27.5 contains an information disclosure flaw in the Special:Redirect/logid",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "mediawiki/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.27.0"
}, {
"fixed" : "1.27.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "mediawiki/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.29.0"
}, {
"fixed" : "1.29.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "mediawiki/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.30.0"
}, {
"fixed" : "1.30.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "mediawiki/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.31.0"
}, {
"fixed" : "1.31.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-0504"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:3238"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:3813"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/mediawiki/core/CVE-2018-0504.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wikimedia/mediawiki"
}, {
"type" : "WEB",
"url" : "https://lists.wikimedia.org/pipermail/wikitech-l/2018-September/090849.html"
}, {
"type" : "WEB",
"url" : "https://phabricator.wikimedia.org/T187638"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2018/dsa-4301"
}, {
"type" : "WEB",
"url" : "http://www.securitytracker.com/id/1041695"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T22:53:00Z",
"nvd_published_at" : "2018-10-04T20:29:00Z"
}
}