Skip to main content

Shelf CVE-2026-44204

| EUVDEUVD-2026-29728 MEDIUM
Improper Input Validation (CWE-20)
2026-05-12 security-advisories@github.com
6.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid Shelf account (any role)
  2. Delivery
    Send crafted GET /assets?sortBy=field:asc,(SUBQUERY)
  3. Exploit
    Unsanitized direction interpolated into Prisma.raw() ORDER BY clause
  4. Execution
    Database evaluates attacker-controlled SQL subquery
  5. Persist
    Read arbitrary tables including cross-organization data
  6. Impact
    Exfiltrate sensitive asset and user records

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires a valid authenticated session in the Shelf application - any user role is sufficient, including the lowest-privilege role, as the vulnerability description explicitly states 'any authenticated user (any role).' The vulnerable endpoint is GET /assets and the injection vector is the sortBy query parameter's direction component (the value after the colon separator, e.g., field:INJECT_HERE). No special server configuration, non-default feature flag, or elevated privilege is required. Exploitation is limited by: (1) requirement for a valid Shelf account; (2) SSVC rates the attack Automatable:no, indicating the injection requires manual crafting rather than generic scanning payloads; (3) the impact is strictly read-only - no INSERT, UPDATE, or DELETE capability is implied by the vector.

Impact

CVSS 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) accurately reflects the threat profile: network-reachable, low complexity, requiring only a valid authenticated session, with high confidentiality impact but no write or availability consequence. The most severe real-world impact is cross-organizational data exfiltration - the database is multi-tenant and the injected SQL is not scoped to the authenticated user's organization. EPSS at 0.04% (11th percentile) is low, consistent with SSVC's Automatable:no rating, indicating that while exploitation is technically straightforward once authenticated, mass automated scanning is not observed. SSVC Technical Impact is rated partial, which somewhat understates the cross-tenant read risk but reflects the read-only scope. The PoC is confirmed via regression tests in the vendor fix commit, not from an independent public exploit database - POC existence is confirmed but active weaponized exploitation is not. Authentication as a limiting factor meaningfully reduces blast radius compared to unauthenticated SQLi, but the absence of role restrictions means any account holder - including lowest-privilege roles - is a viable attacker.

Exploit ScenarioDerived

An attacker with any valid Shelf account sends a GET request to /assets?sortBy=createdAt:asc,(SELECT+table_name+FROM+information_schema.tables+LIMIT+1), embedding a SQL subquery in the sort direction field. The application parses the direction as the string 'asc,(SELECT ...)' and interpolates it unsanitized into a Prisma.raw() ORDER BY clause, causing the database to evaluate the subquery and potentially reflect results or trigger time-based inference. By iterating subqueries, the attacker can enumerate and dump all tables and rows in the database, including asset records, user data, and configuration belonging to other organizations sharing the same database instance.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

SQL injection in shelf.nu's /assets route exposes cross-organizational database contents to any authenticated user regardless of role, affecting versions 1.12 through 1.20.0. The injection point is the sortBy query parameter's direction component, where unsanitized input is passed directly into Prisma.raw() SQL construction. A PoC is confirmed by regression tests in the fix commit (GHSA-69xv-wmgg-3qp3); no CISA KEV listing exists and EPSS sits at 0.04%, indicating limited observed exploitation activity at time of analysis.

RemediationAI

Upgrade to shelf.nu version 1.20.1, which is the vendor-confirmed patched release per advisory GHSA-69xv-wmgg-3qp3. The underlying fix is in commit 5d35c15856dbf267fab4dccafd077ee7a6fa6f40, which centralizes SQL identifier validation via a shared isSafeSqlIdentifier utility and adds strict direction-value allowlisting with regression coverage. If an immediate upgrade is not feasible, restrict access to the /assets route to the smallest possible set of trusted users via network controls or application-layer authentication gating - this does not eliminate the vulnerability but limits the pool of accounts that can exploit it. Deploying a WAF rule to reject sortBy parameter values containing semicolons, parentheses, or SQL keywords can provide additional defense-in-depth but may block legitimate future sorting features and is not a substitute for patching. See https://github.com/Shelf-nu/shelf.nu/security/advisories/GHSA-69xv-wmgg-3qp3 for full vendor guidance.

Affected VersionsENISA

shelf.nu 1.12, < 1.20.1

Affected Packages

euvd shelf_nu_1_12 fix: 1.20.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Shelf (shelf.nu) is an open-source physical asset tracking web application. The vulnerability resides in apps/webapp/app/modules/asset/filter-parsing.ts, where the sortBy query parameter is parsed into a column name and sort direction before being interpolated into raw SQL via Prisma's Prisma.raw() method. The column name segment had a local SAFE_SQL_IDENTIFIER regex guard, but the direction segment (expected to be 'asc' or 'desc') received no equivalent validation, allowing attackers to append arbitrary SQL subqueries such as asc,(SELECT CASE WHEN 1=2 THEN 1 ELSE 1/0 END). CWE-20 (Improper Input Validation) captures this root cause: the application failed to validate that the direction token was strictly one of the allowed values before constructing raw SQL. The fix in commit 5d35c15856dbf267fab4dccafd077ee7a6fa6f40 centralizes identifier validation through a shared isSafeSqlIdentifier utility and adds strict allowlisting of the direction value, with regression tests covering the exact reporter PoC payload shape.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

Network-accessible /assets endpoint requires only a valid authenticated session (PR:L); read-only SQL injection grants high confidentiality impact with no integrity or availability consequence.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
May 12, 2026 - 19:18 EUVD
CVE Published
May 12, 2026 - 18:17 nvd
MEDIUM 6.5

DescriptionGitHub Advisory

Shelf is a platform for tracking physical assets. From 1.12 to before 1.20.1, a SQL injection vulnerability in the sortBy query parameter on the /assets route allows any authenticated user (any role) to execute arbitrary SQL and read data from any table in the database, including data belonging to other organizations. This vulnerability is fixed in 1.20.1.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Prevalence
Low
niche open-source physical asset tracker, limited enterprise footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy