LiveActive security incident?Get immediate response
CVE Record

CVE-2026-34785: Rack: Local file inclusion in `Rack::Static` via URL Prefix Matching

Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Static determines whether a request should be served as a static file using a simple string prefix check. When configured with URL prefixes such as "/css", it matches any request path that begins with that string, including unrelated paths such as "/css-config.env" or "/css-backup.sql". As a result, files under the static root whose names merely share the configured prefix may be served unintentionally, leading to information disclosure. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Rack can accidentally publish files from an application’s static file directory when URL prefixes are configured too broadly. A path intended for assets like “/css” may also match unrelated filenames that begin the same way. The business risk is unintended disclosure of files such as backups, configuration fragments, or other sensitive material stored under the static root.

Executive priority

Prioritize remediation for internet-facing Ruby applications and any environment where static directories may contain operational files. The issue does not indicate system takeover, but accidental disclosure of secrets or backups can materially worsen incident impact.

Technical view

Affected Rack versions use simple string prefix matching in Rack::Static. Configured prefixes such as “/css” can match other request paths beginning with the same string, causing matching files under the static root to be served unintentionally. The issue is confidentiality-only with CVSS 7.5 and is patched in Rack 2.2.23, 3.1.21, and 3.2.6.

Likely exposure

Ruby applications using Rack::Static on affected Rack versions are exposed when static roots contain sensitive files whose names share configured URL prefixes.

Exploitation context

The source bundle rates this as network-reachable, low complexity, unauthenticated, and no user interaction. KEV is false, and no provided source states active exploitation.

Researcher notes

Map findings to CWE-187, CWE-200, and CWE-552. Focus validation on Rack::Static configuration, affected version ranges, and static root contents. Do not assume exploitation without external evidence; the supplied KEV status is false.

Mitigation direction

  • Upgrade Rack to 2.2.23, 3.1.21, 3.2.6, or later as applicable.
  • Review Rack::Static URL prefix configuration for ambiguous or overly broad prefixes.
  • Remove secrets, backups, database dumps, and configuration files from static roots.
  • Check Red Hat or distribution guidance for packaged Rack remediation status.
  • Add deployment checks preventing sensitive file types in public static directories.

Validation and detection

  • Inventory applications using Rack::Static and record resolved Rack versions.
  • Confirm dependency manifests resolve to a patched Rack release.
  • Review static roots for sensitive filenames sharing configured URL prefixes.
  • Review application and web logs for suspicious requests to sensitive-looking static paths.
  • Verify public routes serve only intended static assets after remediation.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-187: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-200: Information exposure and cloud metadata lookup

Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · low confidence lookup

CWE-552: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-34785 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
5Timeline events
2ADP providers
5Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: yesTechnical Impact: partial

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N3.93.6GitHub_M
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N3.93.6redhat-SADP

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2026-34785Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Made public.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. ADP timelineredhat-SADP

    Reported to Red Hat.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
redhat-SADPgithub.com/rack/rack: Rack: Information disclosure via incorrect static file serving prefix check
other:Red Hat severity ratingcvssV3_1
  • 2026-04-02T18:01:13.485Z: Reported to Red Hat.
  • 2026-04-02T16:44:17.134Z: Made public.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
rackrack< 2.2.23, >= 3.0.0.beta1, < 3.1.21, >= 3.2.0, < 3.2.6Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-187 · source CWE mapping

Partial String Comparison

Partial String Comparison represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-200 · source CWE mapping

Exposure of Sensitive Information to an Unauthorized Actor

Exposure of Sensitive Information to an Unauthorized Actor represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-552 · source CWE mapping

Files or Directories Accessible to External Parties

Files or Directories Accessible to External Parties represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.