CVE-2026-15043: CWE-480 Use of Incorrect Operator in HMBRAND DBI::SQL::Nano
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.
AI Analysis
Technical Summary
DBI::SQL::Nano, the built-in mini-SQL engine for Perl's DBI module, incorrectly evaluates the <= and >= SQL operators on text values in versions from 1.42 before 1.651. Specifically, in the non-numeric string branch of the is_matched method, the <= operator is evaluated using Perl's ge operator, and the >= operator is evaluated using Perl's le operator, effectively inverting their intended logic. This flaw affects queries over file-backed tables using DBI::SQL::Nano as the query engine, which is used by default when SQL::Statement is not installed or when forced by the DBI_SQL_NANO environment variable. The incorrect evaluation can cause WHERE clauses to silently return incorrect rows, potentially undermining filtering for policy or authorization decisions.
Potential Impact
The vulnerability causes incorrect evaluation of text-based <= and >= predicates in SQL queries executed by DBI::SQL::Nano. Applications relying on these predicates to filter file-backed data for policy enforcement or authorization may receive incorrect query results, potentially exposing unauthorized data or causing logic errors. The impact depends on the application's reliance on these predicates and the use of DBI::SQL::Nano as the query engine.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid relying on DBI::SQL::Nano for critical filtering of file-backed data or consider installing SQL::Statement to avoid fallback to DBI::SQL::Nano. Review application logic that depends on <= and >= predicates for text comparisons in queries using DBI::SQL::Nano.
CVE-2026-15043: CWE-480 Use of Incorrect Operator in HMBRAND DBI::SQL::Nano
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.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
DBI::SQL::Nano, the built-in mini-SQL engine for Perl's DBI module, incorrectly evaluates the <= and >= SQL operators on text values in versions from 1.42 before 1.651. Specifically, in the non-numeric string branch of the is_matched method, the <= operator is evaluated using Perl's ge operator, and the >= operator is evaluated using Perl's le operator, effectively inverting their intended logic. This flaw affects queries over file-backed tables using DBI::SQL::Nano as the query engine, which is used by default when SQL::Statement is not installed or when forced by the DBI_SQL_NANO environment variable. The incorrect evaluation can cause WHERE clauses to silently return incorrect rows, potentially undermining filtering for policy or authorization decisions.
Potential Impact
The vulnerability causes incorrect evaluation of text-based <= and >= predicates in SQL queries executed by DBI::SQL::Nano. Applications relying on these predicates to filter file-backed data for policy enforcement or authorization may receive incorrect query results, potentially exposing unauthorized data or causing logic errors. The impact depends on the application's reliance on these predicates and the use of DBI::SQL::Nano as the query engine.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid relying on DBI::SQL::Nano for critical filtering of file-backed data or consider installing SQL::Statement to avoid fallback to DBI::SQL::Nano. Review application logic that depends on <= and >= predicates for text comparisons in queries using DBI::SQL::Nano.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-07-08T11:48:00.718Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a56095968715ace4346dd8a
Added to database: 07/14/2026, 10:03:05 UTC
Last enriched: 07/14/2026, 10:18:00 UTC
Last updated: 08/26/2026, 10:52:07 UTC
Views: 119
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.