<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Database on kalfaoglu.net</title><link>https://blog.kalfaoglu.net/tags/database/</link><description>Recent content in Database on kalfaoglu.net</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 09 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.kalfaoglu.net/tags/database/index.xml" rel="self" type="application/rss+xml"/><item><title>When AI Reads Your Database Code: MariaDB's CVE-2026-32710 and What to Do About It</title><link>https://blog.kalfaoglu.net/posts/2026-05-09-mariadb-cve-2026-32710-json-schema-en/</link><pubDate>Sat, 09 May 2026 00:00:00 +0000</pubDate><guid>https://blog.kalfaoglu.net/posts/2026-05-09-mariadb-cve-2026-32710-json-schema-en/</guid><description>&lt;p&gt;A heap buffer overflow in MariaDB&amp;rsquo;s &lt;code&gt;JSON_SCHEMA_VALID()&lt;/code&gt; function went unnoticed for years — until AI-assisted code analysis flagged it earlier this year. The flaw, now tracked as &lt;a href="https://nvd.nist.gov/vuln/detail/CVE-2026-32710"&gt;CVE-2026-32710&lt;/a&gt;, was &lt;a href="https://securityonline.info/mariadb-json-schema-validation-buffer-overflow-vulnerability-cve-2026-32710/"&gt;disclosed on March 19, 2026&lt;/a&gt;, and patches landed the same day. If your server runs MariaDB 11.4.x or 11.8.x and you haven&amp;rsquo;t applied the update yet, this is the one to prioritise this week.&lt;/p&gt;
&lt;h2 id="what-the-bug-actually-does"&gt;What the Bug Actually Does&lt;/h2&gt;
&lt;p&gt;The problem lives in &lt;code&gt;json_get_normalized_string()&lt;/code&gt; inside &lt;code&gt;sql/json_schema_helper.cc&lt;/code&gt;. The function allocates a fixed 128-byte heap buffer and then copies a JSON string value into it using &lt;code&gt;strncpy&lt;/code&gt; — without first checking whether the value fits. If an attacker crafts a JSON schema with a string field longer than that buffer, the heap overflows.&lt;/p&gt;</description></item></channel></rss>