{"schemaVersion":4,"id":"CVE-2023-40712","aliases":["GHSA-mjqh-v5f2-g2mw","BIT-airflow-2023-40712","PYSEC-2023-171"],"status":"published","duplicateOf":null,"title":"Apache Airflow: Secrets can be unmasked in the \"Rendered Template\"","description":"Apache Airflow, versions before 2.7.1, is affected by a vulnerability that allows authenticated users who have access to see the task/dag in the UI, to craft a URL, which could lead to unmasking the secret configuration of the task that otherwise would be masked in the UI.\n\nUsers are strongly advised to upgrade to version 2.7.1 or later which has removed the vulnerability.","dates":{"published":"2023-09-12T11:05:48.763Z","modified":"2024-09-25T15:23:45.803Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":7.1,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/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.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02,"percentile":0.81437,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.02},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.02,"percentile":0.81437}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.02,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.02,"percentile":0.81437}]},"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-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"}],"affected":[{"vendor":"apache software foundation","product":"apache airflow","name":"Apache Airflow","label":"apache airflow","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.7.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.7.1","endInclusive":false}}],"versionsText":"< 2.7.1","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_airflow"},{"vendor":"apache","product":"airflow","name":"Airflow","label":"airflow","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.7.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.7.1","endInclusive":false}}],"versionsText":"< 2.7.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-airflow","label":"Apache Airflow","category":"framework"}},"hubHref":"/vendor/apache/airflow"},{"vendor":"PyPI","product":"apache-airflow","name":"apache-airflow","label":"apache-airflow","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/apache-airflow","purlType":"pypi","versions":[{"text":"< 2.7.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.7.1","endInclusive":false}}],"versionsText":"< 2.7.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/apache/airflow/pull/33512","label":"github.com/apache/airflow/pull/33512","hostname":"github.com","tags":["Patch","WEB","Vendor Advisory"]},{"url":"https://github.com/apache/airflow/pull/33516","label":"github.com/apache/airflow/pull/33516","hostname":"github.com","tags":["Patch","WEB","Vendor Advisory"]},{"url":"https://lists.apache.org/thread/jw1yv4lt6hpowqbb0x4o3tdp0jhx2bts","label":"lists.apache.org/thread/jw1yv4lt6hpowqbb0x4o3tdp0jhx2bts","hostname":"lists.apache.org","tags":["Vendor Advisory","WEB","Mailing List"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40712","label":"nvd.nist.gov/vuln/detail/CVE-2023-40712","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/airflow/commit/4390524a41fdfd2d57f1d2dc98ad7b4009c8399e","label":"github.com/apache/airflow/commit/4390524a41fdfd2d57f1d2dc98ad7b4009c8399e","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/airflow/commit/d9814eb3a2fc1dbbb885a0a2c1b7a23ce1cfa148","label":"github.com/apache/airflow/commit/d9814eb3a2fc1dbbb885a0a2c1b7a23ce1cfa148","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/airflow","label":"github.com/apache/airflow","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2023-171.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2023-171.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-mjqh-v5f2-g2mw","label":"github.com/advisories/GHSA-mjqh-v5f2-g2mw","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-09-12T11:05:48.763Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-25T15:23:45.803Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,2,65],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.02,"stale":false,"promoted":null},{"type":"cvss","source":"osv_pypi","date":"2024-09-25T15:23:45.803Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},{"type":"cvss","source":"osv_pypi","date":"2024-09-25T15:23:45.803Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-09-25T15:23:45.803Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1","headline":true},{"type":"adp","source":"cisa-adp","date":"2024-09-25T15:02:02.022Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.02,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T10:02:10.250Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T10:02:10.837Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T10:02:11.033Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T10:01:03.214Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T10:02:08.667Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T10:02:07.694Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:10:37.223Z","stale":false,"partial":false}}