CVE-2024-7106: Spina Cross-Site Request Forgery Vulnerability

MODERATE
Advisory Identifier: GHSA-wqw3-p83g-r24v
CVSS 4.3
CWE-352
Published
Advisory Summary

CVE-2024-7106 is a MODERATE (CVSS 4.3) cross-site request forgery vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Spina libraries in the RubyGems ecosystem. The issue involves cross-site request forgery in spina. Remediation is available in the latest vendor maintenance releases.

CVE-2024-7106 at a Glance

CVE Identifier CVE-2024-7106
GHSA Identifier GHSA-wqw3-p83g-r24v
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Spina
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 4.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:R/S:U/C:N/I:L/A:N).

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

How to Fix CVE-2024-7106

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

spina fixed: Latest secure release
Upgrade spina to Latest secure release
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 spina

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-7106, inspect your project dependencies for Spina:

inspect dependencies for spina

Analyze the terminal output to locate any version of Spina in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Spina, 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

A vulnerability classified as problematic was found in Spina CMS 2.18.0. Affected by this vulnerability is an unknown functionality of the file /admin/media_folders. The manipulation leads to cross-site request forgery. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The associated identifier of this vulnerability is VDB-272431. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.

CVE-2024-7106 Affected Spina Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
spina
RubyGems
≤ 2.18.0

References

Frequently Asked Questions

What is CVE-2024-7106?
CVE-2024-7106 is a security vulnerability in Spina involving Cross-Site Request Forgery in Spina under CWE-352: Cross-Site Request Forgery (CSRF).
Which Spina versions are affected?
Affected versions include releases prior to current release patches across affected packages: spina.
What version fixes CVE-2024-7106?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is spina affected?
Yes, spina is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-7106?
CVE-2024-7106 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2024-7106?
CVE-2024-7106 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (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.).
How can I check RubyGems dependencies for CVE-2024-7106?
Run the dependency tree command: 'inspect dependencies for spina'. 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-wqw3-p83g-r24v",
  "modified" : "2024-08-14T22:16:13Z",
  "published" : "2024-07-25T21:31:20Z",
  "aliases" : [ "CVE-2024-7106" ],
  "summary" : "Cross-Site Request Forgery in Spina",
  "details" : "A vulnerability classified as problematic was found in Spina CMS 2.18.0. Affected by this vulnerability is an unknown functionality of the file /admin/media_folders. The manipulation leads to cross-site request forgery. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The associated identifier of this vulnerability is VDB-272431. NOTE: The vendor was contacted early about this disclosure but did not respond in any way.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "spina"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.18.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-7106"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/SpinaCMS/Spina"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/topsky979/Security-Collections/blob/main/cve3/README.md"
  }, {
    "type" : "WEB",
    "url" : "https://rubysec.com/advisories/CVE-2024-7106"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.272431"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.272431"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.376769"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-13T20:23:06Z",
    "nvd_published_at" : "2024-07-25T21:15:12Z"
  }
}