<?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, 02 Oct 2026 15:38:55 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-44660 — UltraJSON: Memory Leak in ujson.dump() on Write Failure</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2026-44660</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; ultrajson&lt;/p&gt;
&lt;p&gt;UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; ultrajson&lt;/p&gt;
&lt;p&gt;UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2026-44660</guid>
    </item>
    <item>
      <title>GHSA-c38f-wx89-p2xg — UltraJSON has a Memory Leak in ujson.dump() on Write Failure</title>
      <link>https://cve.radiocsirt.org/vuln/ghsa-c38f-wx89-p2xg</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: ujson&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;When `ujson.dump()` writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload.&lt;/p&gt;
&lt;p&gt;Code that uses `ujson.dumps()` rather than `ujson.dump()` or only JSON load/decode methods is unaffected.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;**Vulnerability Location:**
- `src/ujson/python/objToJSON.c:913` - `objToJSONFile()` function start
- `src/ujson/python/objToJSON.c:931` - Error return on write failure
- `src/ujson/python/objToJSON.c:942` - Early return without cleanup
 
**Root Cause:**&lt;/p&gt;
&lt;p&gt;The `objToJSONFile()` function allocates a Python string object via `ujson_dumps_internal()`, calls the file&amp;#39;s `write()` method, and returns early if `write()` raises an exception—but never calls `Py_DECREF(string)` on the early exit path.&lt;/p&gt;
&lt;p&gt;### PoC
```python
import gc, tracemalloc, ujson&lt;/p&gt;
&lt;p&gt;class BadFile:
    def write(self, s):
        raise RuntimeError(&amp;#34;boom&amp;#34;)&lt;/p&gt;
&lt;p&gt;obj = {&amp;#34;x&amp;#34;: &amp;#34;A&amp;#34; * 200000}&lt;/p&gt;
&lt;p&gt;def run():
    try:
        ujson.dump(obj, BadFile())
    except RuntimeError:
        pass&lt;/p&gt;
&lt;p&gt;run()
tracemalloc.start()
gc.collect()
base = tracemalloc.get_traced_memory()[0]&lt;/p&gt;
&lt;p&gt;for i in range(5):
    run()
    gc.collect()
    cur = tracemalloc.get_traced_memory()[0]
    print(i, cur - base)
```&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;Any application that serializes data through `ujson.dump()` to an attacker-influenced file-like object that can fail can be driven into linear memory growth. An attacker…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: ujson&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;When `ujson.dump()` writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload.&lt;/p&gt;
&lt;p&gt;Code that uses `ujson.dumps()` rather than `ujson.dump()` or only JSON load/decode methods is unaffected.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;**Vulnerability Location:**
- `src/ujson/python/objToJSON.c:913` - `objToJSONFile()` function start
- `src/ujson/python/objToJSON.c:931` - Error return on write failure
- `src/ujson/python/objToJSON.c:942` - Early return without cleanup
 
**Root Cause:**&lt;/p&gt;
&lt;p&gt;The `objToJSONFile()` function allocates a Python string object via `ujson_dumps_internal()`, calls the file&amp;#39;s `write()` method, and returns early if `write()` raises an exception—but never calls `Py_DECREF(string)` on the early exit path.&lt;/p&gt;
&lt;p&gt;### PoC
```python
import gc, tracemalloc, ujson&lt;/p&gt;
&lt;p&gt;class BadFile:
    def write(self, s):
        raise RuntimeError(&amp;#34;boom&amp;#34;)&lt;/p&gt;
&lt;p&gt;obj = {&amp;#34;x&amp;#34;: &amp;#34;A&amp;#34; * 200000}&lt;/p&gt;
&lt;p&gt;def run():
    try:
        ujson.dump(obj, BadFile())
    except RuntimeError:
        pass&lt;/p&gt;
&lt;p&gt;run()
tracemalloc.start()
gc.collect()
base = tracemalloc.get_traced_memory()[0]&lt;/p&gt;
&lt;p&gt;for i in range(5):
    run()
    gc.collect()
    cur = tracemalloc.get_traced_memory()[0]
    print(i, cur - base)
```&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;Any application that serializes data through `ujson.dump()` to an attacker-influenced file-like object that can fail can be driven into linear memory growth. An attacker…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/ghsa-c38f-wx89-p2xg</guid>
    </item>
    <item>
      <title>PYSEC-2026-2293</title>
      <link>https://cve.radiocsirt.org/vuln/pysec-2026-2293</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: ujson&lt;/p&gt;
&lt;p&gt;UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: ujson&lt;/p&gt;
&lt;p&gt;UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/pysec-2026-2293</guid>
    </item>
  </channel>
</rss>
