GHSA-7fpj-wc8v-9cgc: Duplicate Advisory SQL Injection Vulnerability

CRITICAL
CVSS 9.8
CWE-89
Published
Advisory Summary

GHSA-7fpj-wc8v-9cgc is a CRITICAL (CVSS 9.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Duplicate Advisory libraries in the Packagist ecosystem. The issue involves terminal42/contao-tablelookupwizard possible sql injection in widget field value. Remediation is available by upgrading affected packages to version 3.3.5.

GHSA-7fpj-wc8v-9cgc at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7fpj-wc8v-9cgc
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 Duplicate Advisory
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-7fpj-wc8v-9cgc

To remediate this vulnerability, upgrade all affected Duplicate Advisory 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-7fpj-wc8v-9cgc, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for terminal42/contao-tablelookupwizard

Analyze the terminal output to locate any version of Duplicate Advisory 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 Duplicate Advisory, 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-v3mr-gp7j-pw5w. This link is maintained to preserve external references. ## Original Description ## 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

GHSA-7fpj-wc8v-9cgc Affected Duplicate Advisory Versions

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

References

Frequently Asked Questions

What is GHSA-7fpj-wc8v-9cgc?
GHSA-7fpj-wc8v-9cgc is a security vulnerability in Duplicate Advisory involving terminal42/contao-tablelookupwizard possible SQL injection in widget field value under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 3.3.5 across affected packages: terminal42/contao-tablelookupwizard.
What version fixes GHSA-7fpj-wc8v-9cgc?
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-7fpj-wc8v-9cgc?
GHSA-7fpj-wc8v-9cgc 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-7fpj-wc8v-9cgc?
GHSA-7fpj-wc8v-9cgc 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-7fpj-wc8v-9cgc?
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-7fpj-wc8v-9cgc",
  "modified" : "2026-01-23T22:53:11Z",
  "published" : "2024-05-30T13:12:13Z",
  "withdrawn" : "2026-01-23T22:53:11Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: terminal42/contao-tablelookupwizard possible SQL injection in widget field value",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-v3mr-gp7j-pw5w. This link is maintained to preserve external references.\n\n## Original Description\n## 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\n- Open an issue in https://github.com/terminal42/contao-tablelookupwizard\n- Email us at 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" : "1.0.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" : "2024-05-30T13:12:13Z",
    "nvd_published_at" : null
  }
}