{"id":12231,"date":"2026-09-04T18:54:12","date_gmt":"2026-09-04T10:54:12","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-81728"},"modified":"2026-09-04T18:54:12","modified_gmt":"2026-09-04T10:54:12","slug":"cve-2026-81728","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-81728","title":{"rendered":"CVE-2026-81728 [HIGH] &#8211; Dolibarr before 24.0.0 contains a SQL injection in its CSV and XLSX import wizard. The wiz"},"content":{"rendered":"<p>Dolibarr before 24.0.0 contains a SQL injection in its CSV and XLSX import wizard. The wizard reads its update keys with GETPOST(&#8216;updatekeys&#8217;, &#8216;array&#8217;) in htdocs\/imports\/import.php, which applies only the generic alphanohtml filter: that strips HTML but leaves SQL keywords, comment markers, parentheses, spaces and quotes intact. import_insert() in htdocs\/core\/modules\/import\/import_csv.modules.php then iterates the submitted values and builds a filter with $where[] = $key.&#8217; = &#8216;.$data[$key], having first applied preg_replace(&#8216;\/^.*.\/i&#8217;, &#8221;, $key), an alias strip that does nothing to a value containing no dot. The assembled string is executed through $this-&gt;db-&gt;query(). The injected SELECT resolves the row id that the import then assigns to $lastinsertid, which becomes the WHERE target of a subsequent UPDATE, so a UNION SELECT returning an attacker-chosen integer both exfiltrates arbitrary table content and redirects which row the import overwrites; for category link tables the raw filter array is spliced into that UPDATE directly. The interface offers a fixed list of legitimate column codes but the server never checks the submitted values against it. A user holding the import permission can exploit this. Release 23.0.4 does not carry the fix; the allow-list test was added in 24.0.0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dolibarr before 24.0.0 contains a SQL injection in its CSV and XLSX import wizard. The wizard reads its update keys with GETPOST(&#8216;updatekeys&#8217;, &#8216;array&#8217;) in htdocs\/imports\/import.php, which applies only<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-12231","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/12231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}