GHSA-v3mr-gp7j-pw5w: Terminal42/contao tablelookupwizard SQL Injection Vulnerability

CRITICAL
CVSS 9.8
CWE-89
Published
Advisory Summary

GHSA-v3mr-gp7j-pw5w is a CRITICAL (CVSS 9.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Terminal42/contao tablelookupwizard libraries in the Packagist ecosystem. The issue involves possible sql injection in tablelookupwizard contao extension. Remediation is available by upgrading affected packages to version 3.3.5.

GHSA-v3mr-gp7j-pw5w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-v3mr-gp7j-pw5w
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Terminal42/contao tablelookupwizard
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-v3mr-gp7j-pw5w

To remediate this vulnerability, upgrade all affected Terminal42/contao tablelookupwizard dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

terminal42/contao-tablelookupwizard fixed: 3.3.5
Upgrade terminal42/contao-tablelookupwizard to 3.3.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for terminal42/contao-tablelookupwizard

How to Check if You Are Affected

To determine whether your application is affected by GHSA-v3mr-gp7j-pw5w, inspect your project dependencies for Terminal42/contao tablelookupwizard:

inspect dependencies for terminal42/contao-tablelookupwizard

Analyze the terminal output to locate any version of Terminal42/contao tablelookupwizard in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Terminal42/contao tablelookupwizard, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The currently selected widget values were not correctly sanitized before passing it to the database, leading to an SQL injection possibility. ### Patches The issue has been patched in `tablelookupwizard` version 3.3.5 and version 4.0.0. ### For more information If you have any questions or comments about this advisory: * Open an issue in https://github.com/terminal42/contao-tablelookupwizard * Email us at [info@terminal42.ch](mailto:info@terminal42.ch)

GHSA-v3mr-gp7j-pw5w Affected Terminal42/contao tablelookupwizard Versions

1 component(s)
Fixed Versions:
3.3.5
Product / Package Ecosystem Affected Versions Fixed Version
terminal42/contao-tablelookupwizard
Packagist
< 3.3.5
3.3.5

References

Frequently Asked Questions

What is GHSA-v3mr-gp7j-pw5w?
GHSA-v3mr-gp7j-pw5w is a security vulnerability in Terminal42/contao tablelookupwizard involving Possible SQL injection in tablelookupwizard Contao Extension under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Terminal42/contao tablelookupwizard versions are affected?
Affected versions include releases prior to 3.3.5 across affected packages: terminal42/contao-tablelookupwizard.
What version fixes GHSA-v3mr-gp7j-pw5w?
Upgrading to 3.3.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is terminal42/contao-tablelookupwizard affected?
Yes, terminal42/contao-tablelookupwizard is affected in releases prior to 3.3.5. Upgrade your dependency to 3.3.5 or later.
What is the CVSS score of GHSA-v3mr-gp7j-pw5w?
GHSA-v3mr-gp7j-pw5w has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-v3mr-gp7j-pw5w?
GHSA-v3mr-gp7j-pw5w is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check Packagist dependencies for GHSA-v3mr-gp7j-pw5w?
Run the dependency tree command: 'inspect dependencies for terminal42/contao-tablelookupwizard'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-v3mr-gp7j-pw5w",
  "modified" : "2026-01-23T21:31:05Z",
  "published" : "2022-02-10T22:33:46Z",
  "aliases" : [ ],
  "summary" : "Possible SQL injection in tablelookupwizard Contao Extension",
  "details" : "### Impact\nThe currently selected widget values were not correctly sanitized before passing it to the database, leading to an SQL injection possibility.\n\n### Patches\nThe issue has been patched in `tablelookupwizard` version 3.3.5 and version 4.0.0.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/terminal42/contao-tablelookupwizard\n* Email us at [info@terminal42.ch](mailto:info@terminal42.ch)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "terminal42/contao-tablelookupwizard"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/terminal42/contao-tablelookupwizard/security/advisories/GHSA-v3mr-gp7j-pw5w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/terminal42/contao-tablelookupwizard/commit/a5e723a28f110b7df8ffc4175cef9b061d3cc717"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/terminal42/contao-tablelookupwizard/2022-02-04-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/terminal42/contao-tablelookupwizard"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-02-04T17:26:40Z",
    "nvd_published_at" : null
  }
}