{"schemaVersion":3,"id":"CVE-2025-27018","aliases":["GHSA-hhm6-jjf4-6pm3","PYSEC-2026-1151","CGA-43rr-gc8x-c6j8","CGA-4j32-2hj2-g6jw","CGA-vvhv-qwx3-cx9w","CGA-xgv3-fj6c-mc4x"],"status":"published","duplicateOf":null,"title":null,"description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Apache Airflow MySQL Provider.\n\nWhen user triggered a DAG with dump_sql or load_sql functions they could pass a table parameter from a UI, that could cause SQL injection by running SQL that was not intended.\nIt could lead to data corruption, modification and others.\nThis issue affects Apache Airflow MySQL Provider: before 6.2.0.\n\nUsers are recommended to upgrade to version 6.2.0, which fixes the issue.","dates":{"published":"2025-03-19T09:06:07.220Z","modified":"2025-03-25T17:45:20.580Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":5.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00911,"percentile":0.5934,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.01799999999999996,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00893},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00878,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00878,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00878,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00878,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00878,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00911,"percentile":0.5934}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00893,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00911,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00911,"percentile":0.5934}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"apache software foundation","product":"apache airflow mysql provider","name":"Apache Airflow MySQL Provider","label":"apache airflow mysql provider","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.2.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_airflow_mysql_provider"},{"vendor":"apache","product":"apache-airflow-providers-mysql","name":"apache-airflow-providers-mysql","label":"apache-airflow-providers-mysql","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.2.0","eol":null,"hubHref":"/vendor/apache/apache-airflow-providers-mysql"},{"vendor":"chainguard","product":"airflow","name":"airflow","label":"airflow","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/airflow","purlType":"apk","versions":[{"text":"< 2.10.5-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.10.5-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"airflow-bitnami-compat","name":"airflow-bitnami-compat","label":"airflow-bitnami-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/airflow-bitnami-compat","purlType":"apk","versions":[{"text":"< 2.10.5-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.10.5-r3","eol":null,"hubHref":null},{"vendor":"wolfi","product":"airflow","name":"airflow","label":"airflow","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/airflow","purlType":"apk","versions":[{"text":"< 2.10.5-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.10.5-r3","eol":null,"hubHref":null},{"vendor":"wolfi","product":"airflow-bitnami-compat","name":"airflow-bitnami-compat","label":"airflow-bitnami-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/airflow-bitnami-compat","purlType":"apk","versions":[{"text":"< 2.10.5-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.10.5-r3","eol":null,"hubHref":null},{"vendor":"PyPI","product":"apache-airflow-providers-mysql","name":"apache-airflow-providers-mysql","label":"apache-airflow-providers-mysql","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/apache-airflow-providers-mysql","purlType":"pypi","versions":[{"text":"< 6.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.2.0","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/apache/airflow/pull/47254","label":"github.com/apache/airflow/pull/47254","hostname":"github.com","tags":["Patch","WEB","FIX","Issue Tracking"]},{"url":"https://github.com/apache/airflow/pull/47255","label":"github.com/apache/airflow/pull/47255","hostname":"github.com","tags":["Patch","WEB","FIX","Issue Tracking"]},{"url":"https://lists.apache.org/thread/m8ohgkwz4mq9njohf66sjwqjdy28gvzf","label":"lists.apache.org/thread/m8ohgkwz4mq9njohf66sjwqjdy28gvzf","hostname":"lists.apache.org","tags":["Vendor Advisory","WEB","Advisory","Mailing List"]},{"url":"http://www.openwall.com/lists/oss-security/2025/03/19/4","label":"www.openwall.com/lists/oss-security/2025/03/19/4","hostname":"www.openwall.com","tags":["WEB","Mailing List"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27018","label":"nvd.nist.gov/vuln/detail/CVE-2025-27018","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/airflow","label":"github.com/apache/airflow","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/apache-airflow-providers-mysql","label":"pypi.org/project/apache-airflow-providers-mysql","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-hhm6-jjf4-6pm3","label":"github.com/advisories/GHSA-hhm6-jjf4-6pm3","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27018.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27018.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://pypi.org/project/apache-airflow-providers-mysql/","label":"pypi.org/project/apache-airflow-providers-mysql/","hostname":"pypi.org","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-5RG2-X745-M337","CGA-HJHG-834C-QPC6"]},"timeline":[{"kind":"published","date":"2025-03-19T09:06:07.220Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-25T17:45:20.580Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:07:01.682Z","stale":false,"partial":false}}