{"schemaVersion":3,"id":"CVE-2023-40037","aliases":["GHSA-23qf-3jf9-h3q9","BIT-nifi-2023-40037"],"status":"published","duplicateOf":null,"title":null,"description":"Apache NiFi 1.21.0 through 1.23.0 support JDBC and JNDI JMS access in several Processors and Controller Services with connection URL validation that does not provide sufficient protection against crafted inputs. An authenticated and authorized user can bypass connection URL validation using custom input formatting. The resolution enhances connection URL validation and introduces validation for additional related properties. Upgrading to Apache NiFi 1.23.1 is the recommended mitigation.","dates":{"published":"2023-08-18T21:54:52.454Z","modified":"2025-02-13T17:03:21.877Z","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:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/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:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02085,"percentile":0.81282,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.017,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02102},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02085,"percentile":0.81282}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02102,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02085,"percentile":0.81282}]},"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-184","name":"Incomplete List of Disallowed Inputs","description":"The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/184.html"},{"id":"CWE-697","name":"Incorrect Comparison","description":"The product compares two entities in a security-relevant context, but the comparison is incorrect.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/697.html"}],"affected":[{"vendor":"apache software foundation","product":"apache nifi","name":"Apache NiFi","label":"apache nifi","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.21.0, ≤ 1.23.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.21.0, ≤ 1.23.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_nifi"},{"vendor":"apache","product":"nifi","name":"nifi","label":"nifi","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.21.0, < 1.23.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.21.0, < 1.23.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-nifi","label":"Apache NiFi","category":"server-app"}},"hubHref":"/vendor/apache/nifi"},{"vendor":"org.apache.nifi","product":"nifi-dbcp-base","name":"org.apache.nifi:nifi-dbcp-base","label":"nifi-dbcp-base","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.nifi/nifi-dbcp-base","purlType":"maven","versions":[{"text":"≥ 1.21.0, < 1.23.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.21.0, < 1.23.1","eol":null,"hubHref":null},{"vendor":"org.apache.nifi","product":"nifi-dbcp-service-api","name":"org.apache.nifi:nifi-dbcp-service-api","label":"nifi-dbcp-service-api","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.nifi/nifi-dbcp-service-api","purlType":"maven","versions":[{"text":"≥ 1.21.0, < 1.23.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.21.0, < 1.23.1","eol":null,"hubHref":null},{"vendor":"org.apache.nifi","product":"nifi-dbcp-service-bundle","name":"org.apache.nifi:nifi-dbcp-service-bundle","label":"nifi-dbcp-service-bundle","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.nifi/nifi-dbcp-service-bundle","purlType":"maven","versions":[{"text":"≥ 1.21.0, < 1.23.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.21.0, < 1.23.1","eol":null,"hubHref":null},{"vendor":"org.apache.nifi","product":"nifi-jms-processors","name":"org.apache.nifi:nifi-jms-processors","label":"nifi-jms-processors","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.nifi/nifi-jms-processors","purlType":"maven","versions":[{"text":"≥ 1.21.0, < 1.23.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.21.0, < 1.23.1","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://nifi.apache.org/security.html#CVE-2023-40037","label":"nifi.apache.org/security.html","hostname":"nifi.apache.org","tags":["Release Notes","WEB","Vendor Advisory"]},{"url":"https://lists.apache.org/thread/bqbjlrs2p5ghh8sbk5nsxb8xpf9l687q","label":"lists.apache.org/thread/bqbjlrs2p5ghh8sbk5nsxb8xpf9l687q","hostname":"lists.apache.org","tags":["Vendor Advisory","WEB","Mailing List"]},{"url":"http://www.openwall.com/lists/oss-security/2023/08/18/2","label":"www.openwall.com/lists/oss-security/2023/08/18/2","hostname":"www.openwall.com","tags":["WEB","Mailing List","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40037","label":"nvd.nist.gov/vuln/detail/CVE-2023-40037","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/nifi/pull/7586","label":"github.com/apache/nifi/pull/7586","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/nifi/commit/064550aacc189f39d7ddd2c0446068adf250f1bf","label":"github.com/apache/nifi/commit/064550aacc189f39d7ddd2c0446068adf250f1bf","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/nifi","label":"github.com/apache/nifi","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://issues.apache.org/jira/browse/NIFI-11920","label":"issues.apache.org/jira/browse/NIFI-11920","hostname":"issues.apache.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-08-18T21:54:52.454Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-13T17:03:21.877Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T06:14:09.055Z","stale":false,"partial":false}}