{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-41187 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-41187 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-41187 is a high-severity SQL injection vulnerability in dhis2-core, published on 1 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-41187 and fix it if it is affected.\n\nWhat it is: CVE-2021-41187 is a high-severity SQL injection vulnerability in dhis2-core, published on 1 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-41187 in the wild and no public exploit code.\n\nAffected product: dhis2-core. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2021-41187/ (Markdown: https://insights.sbomify.com/CVE-2021-41187/index.md)","id":"CVE-2021-41187","markdown":"https://insights.sbomify.com/CVE-2021-41187/index.md","name":"CVE-2021-41187","record":{"aliases":["GHSA-fvm5-gp3j-c7c6"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"DHIS2 health information system","requires_auth":"low_privilege","summary":"Authenticated users can exploit SQL injection in DHIS2 Tracker API to read, edit, and delete data, requiring immediate patching.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dhis_2","vendor":"dhis2"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"DHIS 2 is an information system for data capture, management, validation, analytics and visualization. A SQL injection security vulnerability has been found in specific versions of DHIS2. This vulnerability affects the API endpoints for /api/trackedEntityInstances and api/events in DHIS2. The system is vulnerable to attack only from users that are logged in to DHIS2, and there is no known way of exploiting the vulnerability without first being logged in as a DHIS2 user. A successful exploit of this vulnerability could allow the malicious user to read, edit and delete data in the DHIS2 instance. There are no known exploits of the security vulnerabilities addressed by these patch releases. However, we strongly recommend that all DHIS2 implementations using versions 2.32, 2.33, 2.34, 2.35 and 2.36 install these patches as soon as possible. There is no straightforward known workaround for DHIS2 instances using the Tracker functionality other than upgrading the affected DHIS2 server to one of the patches in which this vulnerability has been fixed. For implementations which do NOT use Tracker functionality, it may be possible to block all network access to POST to the /api/trackedEntityInstance and /api/events endpoints as a temporary workaround while waiting to upgrade.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"SQL Injection in DHIS2 Tracker API","id":"CVE-2021-41187","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2021"},"n_packages":0,"n_references":1,"next":{"headline":"Authenticated Stored XSS in Administration","id":"CVE-2021-41188"},"packages":[],"prev":{"headline":"ReDoS vulnerability in parser_apache2","id":"CVE-2021-41186"},"products":["dhis2-core"],"published":"2021-11-01","related":[{"cvss_score":8.8,"headline":"SQL Injection in DHIS2's in OrgUnit program association","id":"CVE-2022-24848","kev_date_added":null,"published":"2022-06-01"},{"cvss_score":8.8,"headline":"SQL Injection in DHIS2 Tracker API","id":"CVE-2021-39179","kev_date_added":null,"published":"2021-10-29"},{"cvss_score":8.5,"headline":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in dhis2-core","id":"CVE-2021-32704","kev_date_added":null,"published":"2021-06-24"},{"cvss_score":7.1,"headline":"DHIS2 Core vulnerable to Improper Access Control with PATCH requests","id":"CVE-2023-31138","kev_date_added":null,"published":"2023-05-09"},{"cvss_score":6.7,"headline":"Privilege Chaining with the user admin role in dhis2-core","id":"CVE-2022-41948","kev_date_added":null,"published":"2022-12-08"},{"cvss_score":6.5,"headline":"Missing authorization in dhis2-core","id":"CVE-2023-32060","kev_date_added":null,"published":"2023-05-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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-04","vendors":["dhis2"]},"summary":"Authenticated users can exploit SQL injection in DHIS2 Tracker API to read, edit, and delete data, requiring immediate patching.","url":"https://insights.sbomify.com/CVE-2021-41187/"}