Vulnerabilities in pkg:gem/administrate
PACKAGECVE-2016-3098 is a MODERATE (CVSS 5.4) administrate vulnerable to cross-site request vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Administrate libraries in the RubyGems ecosystem. The issue involves administrate vulnerable to cross-site request forgery. Remediation is available by upgrading affected packages to version 0.1.5.
pkg:gem/administrate
Vulnerability advisories affecting package pkg:gem/administrate. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-cc8c-26rj-v2vx | CVE-2016-3098 | MODERATE | administrate vulnerable to Cross-Site Request Forgery |
| GHSA-2p5p-m353-833w | CVE-2020-5257 | HIGH | Sort order SQL injection in Administrate |
CVE-2016-3098 at a Glance
Security Impact
CVSS: 5.4
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:R/S:U/C:L/I:L/A:N).
How to Fix CVE-2016-3098
To remediate this vulnerability, upgrade all affected Administrate 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 administrate to 0.1.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for administrate
How to Check if You Are Affected
To determine whether your application is affected by CVE-2016-3098, inspect your project dependencies for Administrate:
inspect dependencies for administrate
Analyze the terminal output to locate any version of Administrate in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Administrate, 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-2016-3098 Affected Administrate Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
administrate
|
RubyGems |
< 0.1.5
|
0.1.5
|
References
Frequently Asked Questions
What is CVE-2016-3098?
Which Administrate versions are affected?
What version fixes CVE-2016-3098?
Is administrate affected?
What is the CVSS score of CVE-2016-3098?
What CWE is associated with CVE-2016-3098?
How can I check RubyGems dependencies for CVE-2016-3098?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cc8c-26rj-v2vx",
"modified" : "2023-01-27T00:02:22Z",
"published" : "2022-08-06T00:00:47Z",
"aliases" : [ "CVE-2016-3098" ],
"summary" : "administrate vulnerable to Cross-Site Request Forgery",
"details" : "Cross-site request forgery (CSRF) vulnerability in administrate 0.1.4 and earlier allows remote attackers to hijack the user's OAuth autorization code.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "administrate"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.1.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-3098"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/administrate/CVE-2016-3098.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/thoughtbot/administrate"
}, {
"type" : "WEB",
"url" : "https://seclists.org/oss-sec/2016/q2/0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-27T00:02:22Z",
"nvd_published_at" : "2022-08-05T16:15:00Z"
}
}