CVE-2018-0505: Mediawiki/core Mediawiki BotPassword Can Bypass CentralAuth's Vulnerability
MODERATECVE-2018-0505 is a MODERATE (CVSS 6.5) mediawiki botpassword can bypass centralauth's vulnerability (CWE-287: Improper Authentication) affecting Mediawiki/core libraries in the Packagist ecosystem. The issue involves mediawiki botpassword can bypass centralauth's account lock. Remediation is available by upgrading affected packages to version 1.27.5, 1.29.3, 1.30.1, 1.31.1.
CVE-2018-0505 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:N/I:H/A:N).
How to Fix CVE-2018-0505
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-0505, 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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-0505 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-0505?
Which Mediawiki/core versions are affected?
What version fixes CVE-2018-0505?
Is mediawiki/core affected?
What is the CVSS score of CVE-2018-0505?
What CWE is associated with CVE-2018-0505?
How can I check Packagist dependencies for CVE-2018-0505?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5c6w-f4w2-2grp",
"modified" : "2024-05-15T22:53:21Z",
"published" : "2022-05-13T01:31:04Z",
"aliases" : [ "CVE-2018-0505" ],
"summary" : "Mediawiki BotPassword can bypass CentralAuth's account lock",
"details" : "Mediawiki 1.31 before 1.31.1, 1.30.1, 1.29.3 and 1.27.5 contains a flaw where BotPasswords can bypass CentralAuth's account lock",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/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-0505"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:3142"
}, {
"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-0505.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/T194605"
}, {
"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-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T22:53:21Z",
"nvd_published_at" : "2018-10-04T20:29:00Z"
}
}