Vulnerabilities in pkg:gem/clockwork_web
PACKAGECVE-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.
pkg:gem/clockwork_web
Vulnerability advisories affecting package pkg:gem/clockwork_web. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-p4xx-w6fr-c4w9 | CVE-2023-25015 | MODERATE | Clockwork Web contains a Cross-Site Request Forgery Vulnerability with Rails < 5.2 |
CVE-2023-25015 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.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/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.
Upgrade clockwork_web to 0.1.2
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
CVE-2023-25015 Affected Clockwork web Versions
1 component(s)| 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?
Which Clockwork web versions are affected?
What version fixes CVE-2023-25015?
Is clockwork_web affected?
What is the CVSS score of CVE-2023-25015?
What CWE is associated with CVE-2023-25015?
How can I check RubyGems dependencies for CVE-2023-25015?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}