GHSA-29g5-m8v7-v564: Measured Path Traversal Vulnerability
MODERATEGHSA-29g5-m8v7-v564 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Measured libraries in the RubyGems ecosystem. The issue involves measured is vulnerable to path traversal attacks during class initialization. Remediation is available by upgrading affected packages to version 3.2.1.
GHSA-29g5-m8v7-v564 at a Glance
How to Fix GHSA-29g5-m8v7-v564
To remediate this vulnerability, upgrade all affected Measured 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 measured to 3.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for measured
How to Check if You Are Affected
To determine whether your application is affected by GHSA-29g5-m8v7-v564, inspect your project dependencies for Measured:
inspect dependencies for measured
Analyze the terminal output to locate any version of Measured in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.1), 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Measured, 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
GHSA-29g5-m8v7-v564 Affected Measured Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
measured
|
RubyGems |
< 3.2.1
|
3.2.1
|
References
Frequently Asked Questions
What is GHSA-29g5-m8v7-v564?
Which Measured versions are affected?
What version fixes GHSA-29g5-m8v7-v564?
Is measured affected?
What CWE is associated with GHSA-29g5-m8v7-v564?
How can I check RubyGems dependencies for GHSA-29g5-m8v7-v564?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-29g5-m8v7-v564",
"modified" : "2025-07-15T15:35:37Z",
"published" : "2025-07-15T15:35:37Z",
"aliases" : [ ],
"summary" : "Measured is vulnerable to Path Traversal attacks during class initialization",
"details" : "### Impact\nA path traversal vulnerability exists where an attacker with access to manipulate inputs when initializing the `Measured::Cache::Json class` would be able to instruct the library to read arbitrary files.\n\n### Patches\nUsers should update to the latest version.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "measured"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Shopify/measured/security/advisories/GHSA-29g5-m8v7-v564"
}, {
"type" : "WEB",
"url" : "https://github.com/Shopify/measured/commit/d6319985a2304d97c085e3dc45c98af554f4be76"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Shopify/measured"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-15T15:35:37Z",
"nvd_published_at" : null
}
}