{"answers":{"affected":"3 open source packages ship an affected version, including mariadb, mariadb-min and mysql-client. It affects 4 products.","exploited":"There is no known exploitation of CVE-2021-27928 in the wild and no public exploit code.","fix":"Upgrade mariadb to a fixed version for your release line: 10.2.37, 10.3.28, 10.4.18 or 10.5.9.","what":"CVE-2021-27928 is a high-severity code injection vulnerability in Debian Debian Linux, published on 19 Mar 2021. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-27928 and fix it if it is affected.\n\nWhat it is: CVE-2021-27928 is a high-severity code injection vulnerability in Debian Debian Linux, published on 19 Mar 2021. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-27928 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mariadb (Bitnami): affected from 10.2.0; fixed in 10.2.37, 10.3.28, 10.4.18, 10.5.9\n- mariadb-min (Bitnami): affected from 10.2.0; fixed in 10.2.37, 10.3.28, 10.4.18, 10.5.9\n- mysql-client (Bitnami): affected from 10.2.0; fixed in 10.2.37, 10.3.28, 10.4.18, 10.5.9\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-27928/ (Markdown: https://insights.sbomify.com/CVE-2021-27928/index.md)","id":"CVE-2021-27928","markdown":"https://insights.sbomify.com/CVE-2021-27928/index.md","name":"CVE-2021-27928","record":{"aliases":["ALPINE-CVE-2021-27928","ALSA-2021:1242","BIT-mariadb-2021-27928","BIT-mariadb-min-2021-27928","BIT-mysql-client-2021-27928","DEBIAN-CVE-2021-27928","DLA-2605-1","GHSA-2q7x-w5q3-rjxc","MINI-jqpw-hxh5-7q33","MINI-rwhc-r5fm-rcf5","RHSA-2021:1039","RHSA-2021:1240","RHSA-2021:1241","RHSA-2021:1242","RHSA-2021:2040","RLSA-2021:1242","UBUNTU-CVE-2021-27928"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"MariaDB database","requires_auth":"high_privilege","summary":"A database SUPER user can execute OS commands via eval injection in MariaDB by modifying specific configuration parameters.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"wsrep","vendor":"galeracluster"},{"product":"mariadb","vendor":"mariadb"},{"product":"percona_server","vendor":"percona"}],"cvss":{"score":7.2,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"A remote code execution issue was discovered in MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, and 10.5 before 10.5.9; Percona Server through 2021-03-03; and the wsrep patch through 2021-03-03 for MySQL. An untrusted search path leads to eval injection, in which a database SUPER user can execute OS commands after modifying wsrep_provider and wsrep_notify_cmd. NOTE: this does not affect an Oracle product.","ecosystems":["AlmaLinux:8","Bitnami","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Red Hat:openstack:13::el7","Red Hat:rhel_eus:8.1::appstream","Red Hat:rhel_eus:8.1::crb","Red Hat:rhel_eus:8.2::appstream","Red Hat:rhel_eus:8.2::crb","Red Hat:rhel_software_collections:3::el7","Rocky Linux:8"],"exploits":{"exploitdb":1,"first_seen":"2021-04-14","github_poc":3,"max_poc_stars":63,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-04-15T06:40:49Z","kind":"github_poc","ref":"https://github.com/Al1ex/CVE-2021-27928","stars":63,"title":"CVE-2021-27928 MariaDB/MySQL-'wsrep provider' 命令注入漏洞"},{"date":"2021-12-09T11:18:26Z","kind":"github_poc","ref":"https://github.com/shamo0/CVE-2021-27928-POC","stars":1,"title":"CVE-2021-27928-POC"},{"date":"2021-04-14","kind":"exploitdb","ref":"49765","stars":null,"title":"MariaDB 10.2 - 'wsrep_provider' OS Command Execution"},{"date":"2022-12-14T17:36:38Z","kind":"github_poc","ref":"https://github.com/LalieA/CVE-2021-27928","stars":0,"title":"A Proof of Concept for the CVE-2021-27928 flaw exploitation"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Code injection in n/a","id":"CVE-2021-27928","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"debian:debian_linux","products":["debian:debian_linux","mariadb:mariadb"],"type":"code_injection","year":"2021"},"n_packages":240,"n_references":9,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-27930"},"packages":[{"ecosystem":"Bitnami","fixed":["10.2.37","10.3.28","10.4.18","10.5.9"],"introduced":["10.2.0","10.3.0","10.4.0","10.5.0"],"last_affected":[],"package":"mariadb","purl":"pkg:bitnami/mariadb","source":"BIT-mariadb-2021-27928"},{"ecosystem":"Bitnami","fixed":["10.2.37","10.3.28","10.4.18","10.5.9"],"introduced":["10.2.0","10.3.0","10.4.0","10.5.0"],"last_affected":[],"package":"mariadb-min","purl":"pkg:bitnami/mariadb-min","source":"BIT-mariadb-min-2021-27928"},{"ecosystem":"Bitnami","fixed":["10.2.37","10.3.28","10.4.18","10.5.9"],"introduced":["10.2.0","10.3.0","10.4.0","10.5.0"],"last_affected":[],"package":"mysql-client","purl":"pkg:bitnami/mysql-client","source":"BIT-mysql-client-2021-27928"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.5-18.module_el8.3.0+2028+5e3224e9"],"introduced":["0"],"last_affected":[],"package":"Judy","purl":"pkg:rpm/almalinux/Judy","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.5-18.module_el8.5.0+2632+14ced695"],"introduced":["0"],"last_affected":[],"package":"Judy","purl":"pkg:rpm/almalinux/Judy","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.5-18.module_el8.6.0+2761+593e5e59"],"introduced":["0"],"last_affected":[],"package":"Judy","purl":"pkg:rpm/almalinux/Judy","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.5-18.module_el8.6.0+2867+72759d2f"],"introduced":["0"],"last_affected":[],"package":"Judy","purl":"pkg:rpm/almalinux/Judy","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.5-18.module_el8.3.0+2028+5e3224e9"],"introduced":["0"],"last_affected":[],"package":"Judy-devel","purl":"pkg:rpm/almalinux/Judy-devel","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.5-18.module_el8.6.0+2867+72759d2f"],"introduced":["0"],"last_affected":[],"package":"Judy-devel","purl":"pkg:rpm/almalinux/Judy-devel","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.5-18.module_el8.6.0+3072+3c630e87"],"introduced":["0"],"last_affected":[],"package":"Judy-devel","purl":"pkg:rpm/almalinux/Judy-devel","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["1.10.8-7.module_el8.6.0+2867+72759d2f"],"introduced":["0"],"last_affected":[],"package":"asio-devel","purl":"pkg:rpm/almalinux/asio-devel","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["1.10.8-7.module_el8.6.0+3072+3c630e87"],"introduced":["0"],"last_affected":[],"package":"asio-devel","purl":"pkg:rpm/almalinux/asio-devel","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["25.3.32-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"galera","purl":"pkg:rpm/almalinux/galera","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb","purl":"pkg:rpm/almalinux/mariadb","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-backup","purl":"pkg:rpm/almalinux/mariadb-backup","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-common","purl":"pkg:rpm/almalinux/mariadb-common","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-devel","purl":"pkg:rpm/almalinux/mariadb-devel","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-embedded","purl":"pkg:rpm/almalinux/mariadb-embedded","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-embedded-devel","purl":"pkg:rpm/almalinux/mariadb-embedded-devel","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-errmsg","purl":"pkg:rpm/almalinux/mariadb-errmsg","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-gssapi-server","purl":"pkg:rpm/almalinux/mariadb-gssapi-server","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-oqgraph-engine","purl":"pkg:rpm/almalinux/mariadb-oqgraph-engine","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-server","purl":"pkg:rpm/almalinux/mariadb-server","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-server-galera","purl":"pkg:rpm/almalinux/mariadb-server-galera","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-server-utils","purl":"pkg:rpm/almalinux/mariadb-server-utils","source":"ALSA-2021:1242"},{"ecosystem":"AlmaLinux:8","fixed":["3:10.3.28-1.module_el8.3.0+2177+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-test","purl":"pkg:rpm/almalinux/mariadb-test","source":"ALSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.0.5-18.module+el8+2765+cfa4f87b"],"introduced":["0"],"last_affected":[],"package":"Judy","purl":"pkg:rpm/redhat/Judy","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.0.5-18.module+el8+2765+cfa4f87b"],"introduced":["0"],"last_affected":[],"package":"Judy-debuginfo","purl":"pkg:rpm/redhat/Judy-debuginfo","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.0.5-18.module+el8+2765+cfa4f87b"],"introduced":["0"],"last_affected":[],"package":"Judy-debugsource","purl":"pkg:rpm/redhat/Judy-debugsource","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:25.3.32-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"galera","purl":"pkg:rpm/redhat/galera","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:25.3.32-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"galera-debuginfo","purl":"pkg:rpm/redhat/galera-debuginfo","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:25.3.32-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"galera-debugsource","purl":"pkg:rpm/redhat/galera-debugsource","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["3:10.3.28-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb","purl":"pkg:rpm/redhat/mariadb","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["3:10.3.28-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-backup","purl":"pkg:rpm/redhat/mariadb-backup","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["3:10.3.28-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-backup-debuginfo","purl":"pkg:rpm/redhat/mariadb-backup-debuginfo","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["3:10.3.28-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-common","purl":"pkg:rpm/redhat/mariadb-common","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["3:10.3.28-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-debuginfo","purl":"pkg:rpm/redhat/mariadb-debuginfo","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["3:10.3.28-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-debugsource","purl":"pkg:rpm/redhat/mariadb-debugsource","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["3:10.3.28-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-devel","purl":"pkg:rpm/redhat/mariadb-devel","source":"RHSA-2021:1242"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["3:10.3.28-1.module+el8.3.0+10472+7adc332a"],"introduced":["0"],"last_affected":[],"package":"mariadb-embedded","purl":"pkg:rpm/redhat/mariadb-embedded","source":"RHSA-2021:1242"}],"prev":{"headline":"Cross-site request forgery in n/a","id":"CVE-2021-27927"},"products":["n/a"],"published":"2021-03-19","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"Red Hat","prefix":"RHSA"},{"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"A database SUPER user can execute OS commands via eval injection in MariaDB by modifying specific configuration parameters.","url":"https://insights.sbomify.com/CVE-2021-27928/"}