9.8critical
DBI::SQL::Nano versions from 1.42 before 1.651 for Perl have inverted <= and >= SQL operators on text
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.67% (higher than 47% of CVEs)
- Published
- Last changed
- Assigned by
- CPANSec
Description
DBI::SQL::Nano versions from 1.42 before 1.651 for Perl have inverted <= and >= SQL operators on text. DBI::SQL::Nano, DBI's built-in mini-SQL engine, evaluated WHERE predicates incorrectly in some cases. In the non-numeric string branch of the is_matched method, <= was evaluated using Perl's ge operator, and >= was evaluated using Perl's le operator. SQL::Nano is the fallback query engine for DBI's file-backed drivers (DBD::File, DBD::DBM, CSV-style drivers) whenever SQL::Statement is not installed, and is forced whenever DBI_SQL_NANO=1. Queries over such tables use these predicates directly. The impact depends on the context. Where an application relies on a WHERE clause to filter file-backed data for policy or authorization, an inverted <=/>= comparison silently returns the wrong rows.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| DBI | from 1.42 before 1.651 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
DBI::SQL::Nano versions from 1.42 before 1.651 for Perl have inverted <= and >= SQL operators on text. DBI::SQL::Nano, DBI's built-in mini-SQL engine, evaluated WHERE predicates incorrectly in some cases. In the non-numeric string branch of the is_matched method, <= was evaluated using Perl's ge operator, and >= was evaluated using Perl's le operator. SQL::Nano is the fallback query engine for DBI's file-backed drivers (DBD::File, DBD::DBM, CSV-style drivers) whenever SQL::Statement is not installed, and is forced whenever DBI_SQL_NANO=1. Queries over such tables use these predicates directly. The impact depends on the context. Where an application relies on a WHERE clause to filter file-backed data for policy or authorization, an inverted <=/>= comparison silently returns the wrong rows.
NVD (es)
Las versiones de DBI::SQL::Nano desde la 1.42 anteriores a la 1.651 para Perl tienen invertidos los operadores SQL <= y >= en texto. DBI::SQL::Nano, el motor mini-SQL integrado de DBI, evaluó predicados WHERE incorrectamente en algunos casos. En la rama de cadena no numérica del método is_matched, <= se evaluó usando el operador ge de Perl, y >= se evaluó usando el operador le de Perl. SQL::Nano es el motor de consulta de respaldo para los controladores de DBI respaldados por archivos (DBD::File, DBD::DBM, controladores de estilo CSV) siempre que SQL::Statement no esté instalado, y se fuerza siempre que DBI_SQL_NANO=1. Las consultas sobre dichas tablas usan estos predicados directamente. El impacto depende del contexto. Donde una aplicación depende de una cláusula WHERE para filtrar datos respaldados por archivos para políticas o autorización, una comparación <=/>= invertida devuelve silenciosamente las filas incorrectas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-15043 changed 2026-07-14 | CVE Terms of Use |
| NVD | CVE-2026-15043 changed 2026-10-24 | Public domain |