GHSA-9895-53fc-98v2 TYPO3 SQL Injection in dbal
Not scored
Published
Check this codebase for GHSA-9895-53fc-98v2 and fix it if it is affected.
What it is: GHSA-9895-53fc-98v2 is a SQL injection vulnerability in typo3/cms, published on 3 Jun 2024. It can be exploited over the network.
Exploitation: There is no known exploitation of GHSA-9895-53fc-98v2 in the wild and no public exploit code.
Affected packages and fixed versions:
- typo3/cms (Packagist): affected from 6.2.0; fixed in 6.2.18
- typo3/cms (Packagist): affected from 6.2.0; fixed in 6.2.18
Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.
Reference: https://insights.sbomify.com/GHSA-9895-53fc-98v2/ (Markdown: https://insights.sbomify.com/GHSA-9895-53fc-98v2/index.md)
SQL injection in TYPO3 dbal extension allows attackers to manipulate database queries when MySQL passthrough mode is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not stated
- Attackable
- Over the internet
- Victim action needed
- Not stated
- Fix
- Available
What is GHSA-9895-53fc-98v2?
GHSA-9895-53fc-98v2 is a SQL injection vulnerability in typo3/cms, published on 3 Jun 2024. It can be exploited over the network.
Official description
A flaw in the database escaping API results in a SQL injection vulnerability when extension dbal is enabled and configured for MySQL passthrough mode in its extension configuration. All queries which use the DatabaseConnection::sql_query are vulnerable, even if arguments were properly escaped with DatabaseConnection::quoteStr beforehand.
Which versions are affected by GHSA-9895-53fc-98v2?
2 open source packages ship an affected version, including typo3/cms.
| Package | Affected | Fixed in |
|---|---|---|
typo3/cms Packagist | From 6.2.0 | 6.2.18 |
typo3/cms Packagist | From 6.2.0 | 6.2.18 |
How do I fix GHSA-9895-53fc-98v2?
Upgrade typo3/cms to 6.2.18 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is GHSA-9895-53fc-98v2 being exploited?
There is no known exploitation of GHSA-9895-53fc-98v2 in the wild and no public exploit code.