<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://cve.radiocsirt.org</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 09 Oct 2026 11:56:02 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-32714 — SciTokens vulnerable to SQL Injection in KeyCache</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2026-32714</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; scitokens&lt;/p&gt;
&lt;p&gt;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&amp;#39;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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; scitokens&lt;/p&gt;
&lt;p&gt;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&amp;#39;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2026-32714</guid>
    </item>
    <item>
      <title>GHSA-rh5m-2482-966c — SciTokens is vulnerable to SQL Injection in KeyCache</title>
      <link>https://cve.radiocsirt.org/vuln/ghsa-rh5m-2482-966c</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: scitokens&lt;/p&gt;
&lt;p&gt;### Summary
The `KeyCache` class in `scitokens` was vulnerable to SQL Injection because it used Python&amp;#39;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.&lt;/p&gt;
&lt;p&gt;Ran the POC below locally.&lt;/p&gt;
&lt;p&gt;### Details
**File:** `src/scitokens/utils/keycache.py`&lt;/p&gt;
&lt;p&gt;### Vulnerable Code Snippets&lt;/p&gt;
&lt;p&gt;**1. In `addkeyinfo` (around line 74):**
```python
curs.execute(&amp;#34;DELETE FROM keycache WHERE issuer = &amp;#39;{}&amp;#39; AND key_id = &amp;#39;{}&amp;#39;&amp;#34;.format(issuer, key_id))
```&lt;/p&gt;
&lt;p&gt;**2. In `_addkeyinfo` (around lines 89 and 94):**
```python
insert_key_statement = &amp;#34;INSERT OR REPLACE INTO keycache VALUES(&amp;#39;{issuer}&amp;#39;, &amp;#39;{expiration}&amp;#39;, &amp;#39;{key_id}&amp;#39;, \
                       &amp;#39;{keydata}&amp;#39;, &amp;#39;{next_update}&amp;#39;)&amp;#34;
# ...
curs.execute(insert_key_statement.format(issuer=issuer, expiration=time.time()+cache_timer, key_id=key_id,
                                         keydata=json.dumps(keydata), next_update=time.time()+next_update))
```&lt;/p&gt;
&lt;p&gt;**3. In `_delete_cache_entry` (around line 128):**
```python
curs.execute(&amp;#34;DELETE FROM keycache WHERE issuer = &amp;#39;{}&amp;#39; AND key_id = &amp;#39;{}&amp;#39;&amp;#34;.format(issuer,
            key_id))
```&lt;/p&gt;
&lt;p&gt;**4. In `_add_negative_cache_entry` (around lines 148 and 152):**
```python
insert_key_statement = &amp;#34;INSERT OR REPLACE INTO keycache VALUES(&amp;#39;{issuer}&amp;#39;, &amp;#39;{expiration}&amp;#39;, &amp;#39;{key_id}&amp;#39;, \
                    &amp;#39;{keydata}&amp;#39;, &amp;#39;{next_update}&amp;#39;)&amp;#34;
# ...
curs.execute(insert_key_statement.format(issuer=issuer, expiration=time.ti…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: scitokens&lt;/p&gt;
&lt;p&gt;### Summary
The `KeyCache` class in `scitokens` was vulnerable to SQL Injection because it used Python&amp;#39;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.&lt;/p&gt;
&lt;p&gt;Ran the POC below locally.&lt;/p&gt;
&lt;p&gt;### Details
**File:** `src/scitokens/utils/keycache.py`&lt;/p&gt;
&lt;p&gt;### Vulnerable Code Snippets&lt;/p&gt;
&lt;p&gt;**1. In `addkeyinfo` (around line 74):**
```python
curs.execute(&amp;#34;DELETE FROM keycache WHERE issuer = &amp;#39;{}&amp;#39; AND key_id = &amp;#39;{}&amp;#39;&amp;#34;.format(issuer, key_id))
```&lt;/p&gt;
&lt;p&gt;**2. In `_addkeyinfo` (around lines 89 and 94):**
```python
insert_key_statement = &amp;#34;INSERT OR REPLACE INTO keycache VALUES(&amp;#39;{issuer}&amp;#39;, &amp;#39;{expiration}&amp;#39;, &amp;#39;{key_id}&amp;#39;, \
                       &amp;#39;{keydata}&amp;#39;, &amp;#39;{next_update}&amp;#39;)&amp;#34;
# ...
curs.execute(insert_key_statement.format(issuer=issuer, expiration=time.time()+cache_timer, key_id=key_id,
                                         keydata=json.dumps(keydata), next_update=time.time()+next_update))
```&lt;/p&gt;
&lt;p&gt;**3. In `_delete_cache_entry` (around line 128):**
```python
curs.execute(&amp;#34;DELETE FROM keycache WHERE issuer = &amp;#39;{}&amp;#39; AND key_id = &amp;#39;{}&amp;#39;&amp;#34;.format(issuer,
            key_id))
```&lt;/p&gt;
&lt;p&gt;**4. In `_add_negative_cache_entry` (around lines 148 and 152):**
```python
insert_key_statement = &amp;#34;INSERT OR REPLACE INTO keycache VALUES(&amp;#39;{issuer}&amp;#39;, &amp;#39;{expiration}&amp;#39;, &amp;#39;{key_id}&amp;#39;, \
                    &amp;#39;{keydata}&amp;#39;, &amp;#39;{next_update}&amp;#39;)&amp;#34;
# ...
curs.execute(insert_key_statement.format(issuer=issuer, expiration=time.ti…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/ghsa-rh5m-2482-966c</guid>
    </item>
  </channel>
</rss>
