Description
SQL injection vulnerability in the del_check parameter of the /ocsreports/?function=save_query_list endpoint. Input provided by an authenticated user with operator privileges is incorporated into an SQL query without proper parameterisation or validation, allowing the query to be manipulated and information to be extracted from the database using SQL injection techniques.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OCS Inventory NG | Ocsreports | 2.12.6 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | ocsinventory-server | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | ocsinventory-server | No fix yet | — |
| Ubuntu 22.04 LTS | ocsinventory-server | No fix yet | — |
| Ubuntu 20.04 LTS | ocsinventory-server | No fix yet | — |
| Ubuntu 18.04 LTS | ocsinventory-server | No fix yet | — |
| Ubuntu 16.04 LTS | ocsinventory-server | No fix yet | — |