CVE-2026-137097: Net::WoRMS versions before 1.901 for Perl allow SQL injection via SOAP response fields in the SQL output of printRecord
Net::WoRMS versions before 1.901 for Perl allow SQL injection via SOAP response fields in the SQL output of printRecord.
Net::WoRMS is a tool for querying the World Register of Marine Species (WoRMS).
The SQL output format writes each record from the WoRMS SOAP service as an INSERT statement. String values escape ' as \', which standard SQL does not treat as an escape, and backslashes are left as they are. The AphiaID and validAphiaID values are written unquoted with no numeric check. The default endpoint uses plain HTTP.
An attacker who controls the SOAP response, including anyone on the network path to the default endpoint, can run arbitrary SQL when the generated script is loaded into a database.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Net::WoRMSto a version that resolves this vulnerability.Fixed in 1.901
Event History
Frequently Asked Questions
Who can exploit this in a typical deployment?
An attacker must control the WoRMS SOAP response. Because the default endpoint uses plain HTTP, anyone able to interfere with traffic on the network path to that endpoint can do so.
When does the vulnerability lead to SQL execution?
The issue becomes exploitable when printRecord generates SQL output from a malicious SOAP response and the resulting script is loaded into a database. The attacker can inject through string fields and through AphiaID or valid_AphiaID, which are emitted without quotes or numeric validation.
Is the default configuration exposed?
The default endpoint uses unencrypted HTTP, so its responses can be modified by an on-path attacker. Exposure still depends on using the SQL output format and loading the generated SQL into a database.
What should be done if this component is in use?
Upgrade Net::WoRMS to version 1.901 or later. Until then, avoid loading SQL generated from SOAP responses that could have been obtained over the default plain-HTTP endpoint.