Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious SciToken with SQL payload in issuer field
-
DeliverySubmit token to vulnerable KeyCache class
-
Exploitstr.format() injects payload into SQL query
-
ExecutionExecute arbitrary SQL commands on SQLite database
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub 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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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 3Authorization bypass in scitokens-cpp library (all versions prior to 1.4.1) allows authenticated attackers to escape pat
Authorization bypass in SciTokens C++ library (versions prior to 1.4.1) allows authenticated attackers to access unautho
EUVD-2026-17293
GHSA-rh5m-2482-966c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB