Skip to main content

Scitokens EUVDEUVD-2026-17293

| CVE-2026-32714 CRITICAL
SQL Injection (CWE-89)
2026-03-31 GitHub_M GHSA-rh5m-2482-966c
9.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious SciToken with SQL payload in issuer field
  2. Delivery
    Submit token to vulnerable KeyCache class
  3. Exploit
    str.format() injects payload into SQL query
  4. Execution
    Execute arbitrary SQL commands on SQLite database
  5. Impact
    Exfiltrate sensitive data or modify database

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Remote unauthenticated attacker can exploit SciTokens library versions prior to 1.9.6 by supplying malicious issuer or key_id values to KeyCache class. Requires application using vulnerable SciTokens to process attacker-controlled token data. No user interaction needed.

Impact

The CVSS 9.8 Critical rating reflects maximum exploitability: network-accessible (AV:N), low attack complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), with full confidentiality, integrity, and availability impact. However, real-world risk depends on deployment context. The SQLite database is local to the application, so direct impact is limited to data SciTokens processes-primarily cached public keys and validation metadata. An attacker could poison the cache to accept forged tokens or exfiltrate cached keys, undermining the entire authorization framework in scientific computing workflows. No CISA KEV entry exists, indicating no confirmed active exploitation. The public GitHub commit (3dba108853f2f4a6c0f2325c03779bf083c41cf2) and security advisory provide full technical details, lowering the barrier for exploit development. EPSS data not provided, but SQL injection vulnerabilities with public patches typically see rapid weaponization. SSVC factors: exploitation status is publicly available exploit code may exist given the patch transparency; automatable (yes, SQLi is mechanically exploitable); technical impact is total in the authorization domain. Priority: High for environments using SciTokens in production; organizations should treat this as an urgent patch cycle given the authentication bypass potential.

Exploit ScenarioDerived

An attacker crafts a malicious SciToken with a weaponized issuer field such as 'https://evil.com' OR 1=1; DROP TABLE keys; --' and submits it to a service using the vulnerable SciTokens library for validation. When the KeyCache class attempts to query cached keys, the injected SQL executes, deleting the key cache table. In a more sophisticated attack, the attacker uses UNION-based injection to extract all cached public keys and validation metadata, then forges tokens that pass validation checks, gaining unauthorized access to protected scientific data repositories or compute resources. Given the unauthenticated network attack vector and the prevalence of SciTokens in federated scientific computing, automated scanning for vulnerable endpoints is feasible once exploit code is developed from the public patch details.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 – Mar 31, 2026

SQL injection in SciTokens Python library allows unauthenticated remote code execution against the local SQLite database. The KeyCache class improperly uses str.format() to construct SQL queries with attacker-controlled issuer and key_id parameters, enabling arbitrary SQL command execution. Affects all versions prior to 1.9.6. CVSS 9.8 (Critical) with network attack vector, low complexity, and no privileges required. No CISA KEV listing indicates no confirmed active exploitation at time of analysis, though the straightforward nature of SQL injection and public patch details increase exploitation risk.

RemediationAI

Upgrade to SciTokens version 1.9.6 or later immediately. The fix replaces str.format() SQL construction with parameterized queries using SQLite's parameter substitution, eliminating injection vectors. Installation via pip: 'pip install --upgrade scitokens>=1.9.6'. Verify the installed version with 'pip show scitokens'. The patched release is available at https://github.com/scitokens/scitokens/releases/tag/v1.9.6. No workarounds are recommended; the SQL injection is structural and cannot be mitigated through configuration changes. If immediate patching is not feasible, consider isolating SciTokens-dependent services from untrusted networks and implementing strict input validation at application boundaries, though these are stopgap measures only. Review application logs for suspicious issuer or key_id values containing SQL metacharacters (quotes, semicolons, UNION keywords) as potential indicators of exploitation attempts.

Affected VersionsENISA

scitokens < 1.9.6

Affected Packages

pypi scitokens fix: 1.9.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

SciTokens is a Python reference library for generating and validating SciTokens (distributed authorization tokens used in scientific computing environments). The vulnerability resides in the KeyCache class, which stores cryptographic key material in a local SQLite database. Python's str.format() method was used to dynamically build SQL queries incorporating user-supplied fields like issuer URL and key_id from incoming tokens. Unlike parameterized queries, str.format() performs simple string substitution without sanitization, allowing attackers to inject SQL metacharacters and commands. This is a textbook CWE-89 (SQL Injection) vulnerability. The affected product per CPE is scitokens:scitokens (Python package), with the vulnerability present in all versions before 1.9.6. SQLite's limited privilege model confines the attack surface to the application's database, but attackers can still read sensitive cached keys, modify validation logic, or potentially achieve local code execution through SQLite extensions if enabled.

Know when Scitokens gets its next vulnerability

  • 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 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SUSE CRITICAL

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch released
Apr 01, 2026 - 02:30 nvd
Patch available
CVE Published
Mar 31, 2026 - 01:31 nvd
CRITICAL 9.8

DescriptionGitHub Advisory

SciTokens is a reference library for generating and using SciTokens. Prior to version 1.9.6, the KeyCache class in scitokens was vulnerable to SQL Injection because it used Python's str.format() to construct SQL queries with user-supplied data (such as issuer and key_id). This allowed an attacker to execute arbitrary SQL commands against the local SQLite database. This issue has been patched in version 1.9.6.

Executive ViewAI

Why It Matters

CVE-2026-32714 is a critical SQL injection vulnerability in SciTokens Python library versions prior to 1.9.6 that permits unauthenticated remote code execution against local SQLite databases through malformed token parameters. Organizations using SciTokens in authentication or token validation workflows face immediate risk of data exfiltration, unauthorized database modification, and potential lateral movement, particularly in research computing and federated identity environments where this library is commonly deployed.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to SciTokens services to authenticated, trusted token issuers only via firewall rules; (2) Implement Web Application Firewall rules to block SQL metacharacters in issuer and key_id URL parameters; (3) Enable SQLite query logging and audit all database access for anomalous commands; (4) Run SciTokens with minimal database privileges (read-only access where operationally feasible); (5) Monitor for and immediately revoke any tokens issued by untrusted sources. These controls reduce but do not eliminate risk-vendor patch is mandatory for full remediation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
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.

Related Vulnerabilities in SciTokens Library Vulnerabilities

View all 3

Vendor StatusVendor

SUSE

Severity: Critical

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