CVE-2023-25015: Clockwork web Clockwork Web Contains A Cross-Site Vulnerability

MODERATE
Advisory Identifier: GHSA-p4xx-w6fr-c4w9
CVSS 6.5
CWE-652 CWE-352
Published
Advisory Summary

CVE-2023-25015 is a MODERATE (CVSS 6.5) clockwork web contains a cross-site vulnerability (CWE-652: Improper Neutralization of Data within XQuery Expressions ('XQuery Injection')) affecting Clockwork web libraries in the RubyGems ecosystem. The issue involves clockwork web contains a cross-site request forgery vulnerability with rails < 5.2. Remediation is available by upgrading affected packages to version 0.1.2.

CVE-2023-25015 at a Glance

CVE Identifier CVE-2023-25015
GHSA Identifier GHSA-p4xx-w6fr-c4w9
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-652: Improper Neutralization of Data within XQuery Expressions ('XQuery Injection')
Affected Product Clockwork web
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:H/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 High (I:H)
Availability None (A:N)

How to Fix CVE-2023-25015

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

clockwork_web fixed: 0.1.2
Upgrade clockwork_web to 0.1.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 clockwork_web

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-25015, inspect your project dependencies for Clockwork web:

inspect dependencies for clockwork_web

Analyze the terminal output to locate any version of Clockwork web in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.2), 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-652: Improper Neutralization of Data within XQuery Expressions ('XQuery Injection'), where the product uses external input to dynamically construct an xquery expression used to retrieve data from an xml database, but it does not neutralize or incorrectly neutralizes that input. this allows an attacker to control the structure of the query. In Clockwork web, 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

Clockwork Web before 0.1.2, when used with Rails before 5.2 is used, allows Cross-Site Request Forgery (CSRF). A CSRF attack works by getting an authorized user to visit a malicious website and then performing requests on behalf of the user. In this instance, actions include enabling and disabling jobs. All users running an affected release on Rails < 5.2 should upgrade immediately.

CVE-2023-25015 Affected Clockwork web Versions

1 component(s)
Fixed Versions:
0.1.2
Product / Package Ecosystem Affected Versions Fixed Version
clockwork_web
RubyGems
< 0.1.2
0.1.2

References

Frequently Asked Questions

What is CVE-2023-25015?
CVE-2023-25015 is a security vulnerability in Clockwork web involving Clockwork Web contains a Cross-Site Request Forgery Vulnerability with Rails < 5.2 under CWE-652: Improper Neutralization of Data within XQuery Expressions ('XQuery Injection').
Which Clockwork web versions are affected?
Affected versions include releases prior to 0.1.2 across affected packages: clockwork_web.
What version fixes CVE-2023-25015?
Upgrading to 0.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is clockwork_web affected?
Yes, clockwork_web is affected in releases prior to 0.1.2. Upgrade your dependency to 0.1.2 or later.
What is the CVSS score of CVE-2023-25015?
CVE-2023-25015 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-25015?
CVE-2023-25015 is classified under CWE-652: Improper Neutralization of Data within XQuery Expressions ('XQuery Injection') (The product uses external input to dynamically construct an XQuery expression used to retrieve data from an XML database, but it does not neutralize or incorrectly neutralizes that input. This allows an attacker to control the structure of the query.).
How can I check RubyGems dependencies for CVE-2023-25015?
Run the dependency tree command: 'inspect dependencies for clockwork_web'. 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-p4xx-w6fr-c4w9",
  "modified" : "2025-03-26T19:49:06Z",
  "published" : "2023-02-02T06:30:26Z",
  "aliases" : [ "CVE-2023-25015" ],
  "summary" : "Clockwork Web contains a Cross-Site Request Forgery Vulnerability with Rails < 5.2",
  "details" : "Clockwork Web before 0.1.2, when used with Rails before 5.2 is used, allows Cross-Site Request Forgery (CSRF). A CSRF attack works by getting an authorized user to visit a malicious website and then performing requests on behalf of the user. In this instance, actions include enabling and disabling jobs. All users running an affected release on Rails < 5.2 should upgrade immediately.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "clockwork_web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25015"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ankane/clockwork_web/issues/4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ankane/clockwork_web/commit/ec2896503ee231588547c2fad4cb93a94e78f857"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ankane/clockwork_web"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ankane/clockwork_web/compare/v0.1.1...v0.1.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/clockwork_web/CVE-2023-25015.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352", "CWE-652" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-02T23:07:04Z",
    "nvd_published_at" : "2023-02-02T04:15:00Z"
  }
}