{"id":"CVE-2026-121265","kind":"vulnerability","aliases":["CVE-2026-121265"],"related":[],"title":"SQL::Abstract for Perl: arrayref column values allow SQL injection in insert and update","description":"SQL::Abstract versions before 2.000003 for Perl allow SQL injection via an arrayref column value in insert and update.\n\nWith the array_datatypes option off, which is the default, insert(), update() and values() treat an arrayref column value as literal SQL. Its first element goes into the SQL text unescaped and the rest become bind values. A JSON array, or a repeated form field decoded as an arrayref, is such a value.\n\nAn application that passes request data as column values to insert or update with the default options allows SQL injection.\n\nReleases before 2.000003 also treat an arrayref in generate() as literal SQL, including through AUTOLOAD when allow_autoload is on, whatever array_datatypes is set to.","summary":"SQL::Abstract, a Perl library that builds SQL queries, treats an array value passed as a column value as raw SQL text by default, so its first element goes into the query unescaped. An attacker who controls request data passed to insert or update can inject SQL and read or change database contents.","severity":"unknown","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["dbi","package","perl","sql-abstract","web-apps"],"not_affected_if":["array-datatypes-on","fixed-values-only","no-request-data-in-columns"],"how_to_check":"- Look for `SQL::Abstract` in `cpanfile`, `Makefile.PL`, or the installed module version with `perl -MSQL::Abstract -e 'print $SQL::Abstract::VERSION'`\n- Find code that passes request or form data directly as column values to `insert`, `update` or `values` with default options\n- Check whether `array_datatypes` is set; the default is off, which is the affected setting","fix":"- SQL::Abstract: move to `2.000003` or later","status":"open","published_at":"2026-11-07T12:17:44+00:00","first_seen_at":"2026-11-07T12:47:09+00:00","triaged_at":"2026-11-07T12:49:15+00:00","updated_at":"2026-11-07T12:49:15+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-07T12:49:15Z","model":"claude-haiku-5-5","output":{"fix":"- SQL::Abstract: move to `2.000003` or later","reach":"internet","title":"SQL::Abstract for Perl: arrayref column values allow SQL injection in insert and update","impact":"high","summary":"SQL::Abstract, a Perl library that builds SQL queries, treats an array value passed as a column value as raw SQL text by default, so its first element goes into the query unescaped. An attacker who controls request data passed to insert or update can inject SQL and read or change database contents.","audience":"developers","category":"package","nicknames":[],"who_cares":["perl","sql-abstract","dbi","web-apps"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"attacker reads or alters database contents through injected SQL","analyst_note":"","how_to_check":"- Look for `SQL::Abstract` in `cpanfile`, `Makefile.PL`, or the installed module version with `perl -MSQL::Abstract -e 'print $SQL::Abstract::VERSION'`\n- Find code that passes request or form data directly as column values to `insert`, `update` or `values` with default options\n- Check whether `array_datatypes` is set; the default is off, which is the affected setting","plain_action":"","needs_analyst":false,"not_affected_if":["array-datatypes-on","no-request-data-in-columns","fixed-values-only"],"who_is_affected":"Applications written in Perl that use SQL::Abstract with default options and pass request data, such as JSON arrays or repeated form fields, as column values to insert, update or values. Generate() calls with arrayref values are also affected in releases before 2.000003, including through AUTOLOAD when allow_autoload is on. Applications that only use fixed or validated values, or that set array_datatypes on, are less exposed.","user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"unknown"},"cost_usd":0.000761,"input_tokens":4349,"output_tokens":652,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-121265':17A,20A '-2026':16A,19A '2.000003':87C,177C 'abstract':2A,26B,31B,84C 'allow':8A,90C,172C,191C 'also':178C 'app':29B 'applic':156C 'array':41B,104C,141C,196C 'arrayref':5A,95C,118C,150C,181C 'attack':64B 'autoload':189C,192C 'becom':136C 'bind':137C 'build':36B 'chang':80B 'column':6A,46B,96C,119C,162C 'content':82B 'control':66B 'cve':15A,18A 'data':68B,160C 'databas':81B 'datatyp':105C,197C 'dbi':21B 'decod':147C 'default':53B,111C,170C 'element':57B,126C 'field':146C 'first':56B,125C 'form':145C 'generat':183C 'goe':58B,127C 'includ':187C 'inject':10A,75B,92C,174C 'insert':12A,71B,99C,112C,165C 'json':140C 'librari':34B 'liter':122C,185C 'option':106C,171C 'packag':22B 'pass':43B,69B,158C 'perl':4A,23B,33B,89C 'queri':38B,61B 'raw':49B 'read':78B 'releas':175C 'repeat':144C 'request':67B,159C 'rest':135C 'set':199C 'sql':1A,9A,25B,30B,37B,50B,76B,83C,91C,123C,130C,173C,186C 'sql-abstract':24B 'text':51B,131C 'treat':39B,116C,179C 'unescap':62B,132C 'updat':14A,73B,101C,113C,167C 'valu':7A,42B,47B,97C,115C,120C,138C,154C,163C 'version':85C 'via':93C 'web':28B 'web-app':27B 'whatev':195C","nicknames":[],"mitigations":[],"who_affected":"Applications written in Perl that use SQL::Abstract with default options and pass request data, such as JSON arrays or repeated form fields, as column values to insert, update or values. Generate() calls with arrayref values are also affected in releases before 2.000003, including through AUTOLOAD when allow_autoload is on. Applications that only use fixed or validated values, or that set array_datatypes on, are less exposed.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["dbi","package","perl","sqlabstract","unknown","webapps"],"campaign_type":null,"search_a":"'-121265':17A,20A '-2026':16A,19A 'abstract':2A 'allow':8A 'arrayref':5A 'column':6A 'cve':15A,18A 'inject':10A 'insert':12A 'perl':4A 'sql':1A,9A 'updat':14A 'valu':7A","search_b":"'abstract':26B,31B 'app':29B 'array':41B 'attack':64B 'build':36B 'chang':80B 'column':46B 'content':82B 'control':66B 'data':68B 'databas':81B 'dbi':21B 'default':53B 'element':57B 'first':56B 'goe':58B 'inject':75B 'insert':71B 'librari':34B 'packag':22B 'pass':43B,69B 'perl':23B,33B 'queri':38B,61B 'raw':49B 'read':78B 'request':67B 'sql':25B,30B,37B,50B,76B 'sql-abstract':24B 'text':51B 'treat':39B 'unescap':62B 'updat':73B 'valu':42B,47B 'web':28B 'web-app':27B","search_c":"'2.000003':87C,177C 'abstract':84C 'allow':90C,172C,191C 'also':178C 'applic':156C 'array':104C,141C,196C 'arrayref':95C,118C,150C,181C 'autoload':189C,192C 'becom':136C 'bind':137C 'column':96C,119C,162C 'data':160C 'datatyp':105C,197C 'decod':147C 'default':111C,170C 'element':126C 'field':146C 'first':125C 'form':145C 'generat':183C 'goe':127C 'includ':187C 'inject':92C,174C 'insert':99C,112C,165C 'json':140C 'liter':122C,185C 'option':106C,171C 'pass':158C 'perl':89C 'releas':175C 'repeat':144C 'request':159C 'rest':135C 'set':199C 'sql':83C,91C,123C,130C,173C,186C 'text':131C 'treat':116C,179C 'unescap':132C 'updat':101C,113C,167C 'valu':97C,115C,120C,138C,154C,163C 'version':85C 'via':93C 'whatev':195C","first_public_at":"2026-11-07T12:17:44+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-121265","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121265","severity":null,"published_at":"2026-11-07T12:17:44+00:00","modified_at":"2026-11-07T12:17:44+00:00","first_seen_at":"2026-11-07T12:47:09+00:00","fetched_at":"2026-11-07T12:47:09+00:00","note":null}],"documents":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}