{"answers":{"affected":"12 open source packages ship an affected version, including contao/contao, contao/core-bundle and contao/listing-bundle. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-16558 in the wild and no public exploit code.","fix":"Upgrade contao/contao to 4.4.8 or later.","what":"CVE-2017-16558 is a critical SQL injection vulnerability in n/a, published on 25 Apr 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-16558 and fix it if it is affected.\n\nWhat it is: CVE-2017-16558 is a critical SQL injection vulnerability in n/a, published on 25 Apr 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2017-16558 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- contao/contao (Packagist): affected from 3.0.0 up to 3.5.30; no fix listed\n- contao/contao (Packagist): affected from 3.0.0 up to 3.5.30; no fix listed\n- contao/contao (Packagist): affected from 4.0.0; fixed in 4.4.8\n- contao/contao (Packagist): affected from 4.0.0; fixed in 4.4.8\n- contao/core-bundle (Packagist): affected from 3.0.0 up to 3.5.30; no fix listed\n- contao/core-bundle (Packagist): affected from 3.0.0 up to 3.5.30; no fix listed\n- contao/core-bundle (Packagist): affected from 4.0.0; fixed in 4.4.8\n- contao/core-bundle (Packagist): affected from 4.0.0; fixed in 4.4.8\n- contao/listing-bundle (Packagist): affected from 3.0.0 up to 3.5.30; no fix listed\n- contao/listing-bundle (Packagist): affected from 3.0.0 up to 3.5.30; no fix listed\n- contao/listing-bundle (Packagist): affected from 4.0.0; fixed in 4.4.8\n- contao/listing-bundle (Packagist): affected from 4.0.0; fixed in 4.4.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2017-16558/ (Markdown: https://insights.sbomify.com/CVE-2017-16558/index.md)","id":"CVE-2017-16558","markdown":"https://insights.sbomify.com/CVE-2017-16558/index.md","name":"CVE-2017-16558","record":{"aliases":["GHSA-w38g-hj45-mjjp"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Contao CMS","requires_auth":"none","summary":"An SQL injection vulnerability in Contao CMS allows attackers to read or modify database contents via the back end or listing module.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"contao_cms","vendor":"contao"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"Contao 3.0.0 to 3.5.30 and 4.0.0 to 4.4.7 contains an SQL injection vulnerability in the back end as well as in the listing module.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Contao SQL injection in the backend and listing module","id":"CVE-2017-16558","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"sql_injection","year":"2017"},"n_packages":12,"n_references":2,"next":{"headline":"Information disclosure in n/a","id":"CVE-2017-16560"},"packages":[{"ecosystem":"Packagist","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.30"],"package":"contao/contao","purl":null,"source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.30"],"package":"contao/contao","purl":"pkg:composer/contao/contao","source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":["4.4.8"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/contao","purl":null,"source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":["4.4.8"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/contao","purl":"pkg:composer/contao/contao","source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.30"],"package":"contao/core-bundle","purl":null,"source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.30"],"package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":["4.4.8"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/core-bundle","purl":null,"source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":["4.4.8"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.30"],"package":"contao/listing-bundle","purl":null,"source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":[],"introduced":["3.0.0"],"last_affected":["3.5.30"],"package":"contao/listing-bundle","purl":"pkg:composer/contao/listing-bundle","source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":["4.4.8"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/listing-bundle","purl":null,"source":"GHSA-w38g-hj45-mjjp"},{"ecosystem":"Packagist","fixed":["4.4.8"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/listing-bundle","purl":"pkg:composer/contao/listing-bundle","source":"GHSA-w38g-hj45-mjjp"}],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2017-16557"},"products":["n/a"],"published":"2019-04-25","related":[{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2014-1860","kev_date_added":null,"published":"2020-01-08"},{"cvss_score":9.8,"headline":"Contao Does Not Invalidate Existing Sessions When Password Changes","id":"CVE-2019-10641","kev_date_added":null,"published":"2019-04-17"},{"cvss_score":9.8,"headline":"Contao Does Not Expire Tokens Correctly","id":"CVE-2019-10643","kev_date_added":null,"published":"2019-04-17"},{"cvss_score":8.8,"headline":"Contao CSRF Token Bypass","id":"CVE-2019-10642","kev_date_added":null,"published":"2019-04-17"},{"cvss_score":8.8,"headline":"Contao Core directory traversal vulnerability","id":"CVE-2017-10993","kev_date_added":null,"published":"2017-07-21"},{"cvss_score":6.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2012-1297","kev_date_added":null,"published":"2012-03-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"An SQL injection vulnerability in Contao CMS allows attackers to read or modify database contents via the back end or listing module.","url":"https://insights.sbomify.com/CVE-2017-16558/"}