{"answers":{"affected":"5 open source packages ship an affected version, including joomla/database and joomla. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-25226 in the wild and no public exploit code.","fix":"Upgrade joomla/database to a fixed version for your release line: 2.2.0 or 3.4.0.","what":"CVE-2025-25226 is a critical SQL injection vulnerability in Joomla Joomla\\!, published on 8 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-25226 and fix it if it is affected.\n\nWhat it is: CVE-2025-25226 is a critical SQL injection vulnerability in Joomla Joomla\\!, published on 8 Apr 2025. 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-2025-25226 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- joomla/database (Packagist): affected from 1.0.0; fixed in 2.2.0\n- joomla/database (Packagist): affected from 1.0.0; fixed in 2.2.0\n- joomla/database (Packagist): affected from 3.0.0; fixed in 3.4.0\n- joomla/database (Packagist): affected from 3.0.0; fixed in 3.4.0\n- joomla (Bitnami): affected from 1.0.0; fixed in 5.0.3\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-2025-25226/ (Markdown: https://insights.sbomify.com/CVE-2025-25226/index.md)","id":"CVE-2025-25226","markdown":"https://insights.sbomify.com/CVE-2025-25226/index.md","name":"CVE-2025-25226","record":{"aliases":["BIT-joomla-2025-25226","GHSA-44v2-prcf-pc3m"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Joomla Framework","requires_auth":"none","summary":"SQL injection in Joomla Framework's quoteNameStr method allows attackers to manipulate database queries if custom classes use this protected method.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Joomla","cpe":[{"product":"joomla\\!","vendor":"joomla"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"Improper handling of identifiers lead to a SQL injection vulnerability in the quoteNameStr method of the database package. Please note: the affected method is a protected method. It has no usages in the original packages in neither the 2.x nor 3.x branch and therefore the vulnerability in question can not be exploited when using the original database class. However, classes extending the affected class might be affected, if the vulnerable method is used.","ecosystems":["Bitnami","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":"[20250401] - Joomla Framework - SQL injection vulnerability in quoteNameStr method of Database package","id":"CVE-2025-25226","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"joomla:joomla\\!","products":["joomla:joomla\\!"],"type":"sql_injection","year":"2025"},"n_packages":5,"n_references":1,"next":{"headline":"[20250402] - Joomla Core - MFA Authentication Bypass","id":"CVE-2025-25227"},"packages":[{"ecosystem":"Bitnami","fixed":["5.0.3"],"introduced":["1.0.0"],"last_affected":[],"package":"joomla","purl":"pkg:bitnami/joomla","source":"BIT-joomla-2025-25226"},{"ecosystem":"Packagist","fixed":["2.2.0"],"introduced":["1.0.0"],"last_affected":[],"package":"joomla/database","purl":null,"source":"GHSA-44v2-prcf-pc3m"},{"ecosystem":"Packagist","fixed":["2.2.0"],"introduced":["1.0.0"],"last_affected":[],"package":"joomla/database","purl":"pkg:composer/joomla/database","source":"GHSA-44v2-prcf-pc3m"},{"ecosystem":"Packagist","fixed":["3.4.0"],"introduced":["3.0.0"],"last_affected":[],"package":"joomla/database","purl":null,"source":"GHSA-44v2-prcf-pc3m"},{"ecosystem":"Packagist","fixed":["3.4.0"],"introduced":["3.0.0"],"last_affected":[],"package":"joomla/database","purl":"pkg:composer/joomla/database","source":"GHSA-44v2-prcf-pc3m"}],"prev":{"headline":"Extension - hikashop.com - Privilege escalation vulnerability Hikashop component version 1.0.0 - 5.1.3 for Joomla","id":"CVE-2025-25225"},"products":["Joomla! Framework"],"published":"2025-04-08","related":[{"cvss_score":9.8,"headline":"PHPMailer Command Injection","id":"CVE-2016-10033","kev_date_added":"2025-07-07","published":"2016-12-30"},{"cvss_score":5.3,"headline":"Joomla! Improper Access Control","id":"CVE-2023-23752","kev_date_added":"2024-01-08","published":"2023-02-16"},{"cvss_score":9.8,"headline":"Joomla! Core - [20260518] - Transport encryption downgrade for password and username reset links","id":"CVE-2026-48902","kev_date_added":null,"published":"2026-05-26"},{"cvss_score":9.8,"headline":"[20220303] - Core - User row are not bound to a authentication mechanism","id":"CVE-2022-23795","kev_date_added":null,"published":"2022-03-30"},{"cvss_score":9.8,"headline":"[20220305] - Core - Inadequate filtering on the selected Ids","id":"CVE-2022-23797","kev_date_added":null,"published":"2022-03-30"},{"cvss_score":9.8,"headline":"[20220307] - Core - Variable Tampering on JInput $_REQUEST data","id":"CVE-2022-23799","kev_date_added":null,"published":"2022-03-30"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-21","vendors":["Joomla! Project"]},"summary":"SQL injection in Joomla Framework's quoteNameStr method allows attackers to manipulate database queries if custom classes use this protected method.","url":"https://insights.sbomify.com/CVE-2025-25226/"}