CVE-2026-33195
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedActive Storage allows users to attach cloud and local files in Rails applications. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, Active Storage's `DiskService#path_for` does not validate that the resolved filesystem path remains within the storage root directory. If a blob key containing path traversal sequences (e.g. `../`) is used, it could allow reading, writing, or deleting arbitrary files on the server. Blob keys are expected to be trusted strings, but some applications could be passing user input as keys and would be affected. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceActive Storage's DiskService#path_for method in Rails fails to validate that resolved filesystem paths remain within the designated storage root directory. By supplying blob keys containing path traversal sequences (e.g., ../../), an attacker can read, write, or delete arbitrary files on the server. Applications that pass user-controlled input directly as blob keys are vulnerable.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 7.2.3.1>= 8.0.0, < 8.0.4.1>= 8.1.0, < 8.1.2.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed Rails versionRun `rails --version` in your application root, or check the Gemfile.lock for the rails gem version numberAffected if The version is less than 7.2.3.1, OR between 8.0.0 and 8.0.4.1 inclusive, OR between 8.1.0 and 8.1.2.1 inclusive
-
Verify Active Storage disk service is configuredCheck config/storage.yml for a service config with `disk:` as the service type, or inspect Active Storage configuration in your Rails environmentAffected if Active Storage is configured to use the disk service for any storage bucket
-
Identify blob key source and usageSearch your codebase for where blob keys are created or assigned, particularly looking for cases where keys come from request parameters, user input, or external APIsAffected if Blob keys are derived from any untrusted or user-supplied input rather than generated internally by Rails
-
Inspect path_for method for traversal protectionExamine the Active Storage DiskService implementation in your Rails version by locating the path_for method in the gem, or check if the storage directory is validated to contain only resolved paths within the defined rootAffected if The path_for method does not validate that the resolved path stays within the configured storage root directory
You are affected if your Rails version falls within the vulnerable ranges AND Active Storage disk service is in use AND blob keys could originate from untrusted input.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped7.2.3.18.0.4.18.1.2.1
Upgrade Rails to versions 8.1.2.1, 8.0.4.1, or 7.2.3.1. Additionally, audit the codebase to ensure blob keys are only derived from trusted/internal sources and never from user input.
Rails 7.2.3.1, 8.0.4.1, or 8.1.2.1 (depending on your major version)
- Run `bundle update rails` to update to the latest patch version within your Rails series
- Alternatively, specify the exact fixed version in your Gemfile: `gem 'rails', '~> 7.2.3.1'` for 7.2.x, `gem 'rails', '~> 8.0.4.1'` for 8.0.x, or `gem 'rails', '~> 8.1.2.1'` for 8.1.x
- Run `bundle install` to install the updated gem
- Review your application for any code that passes user input directly as Active Storage blob keys, as blob keys should be trusted strings
- Deploy the updated version to production
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing5.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,752.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-33195 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-33195 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data