{"schemaVersion":4,"id":"CVE-2023-40037","aliases":["GHSA-23qf-3jf9-h3q9","BIT-nifi-2023-40037"],"status":"published","duplicateOf":null,"title":"Apache NiFi: Incomplete Validation of JDBC and JNDI Connection URLs","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.82207,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.02085},"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":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.02085,"percentile":0.82207}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01638,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.02085,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.02085,"percentile":0.82207}]},"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,"bounds":{"kind":"range","start":"1.21.0","startInclusive":true,"end":"1.23.0","endInclusive":true}}],"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,"bounds":{"kind":"range","start":"1.21.0","startInclusive":true,"end":"1.23.1","endInclusive":false}}],"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,"bounds":{"kind":"range","start":"1.21.0","startInclusive":true,"end":"1.23.1","endInclusive":false}}],"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,"bounds":{"kind":"range","start":"1.21.0","startInclusive":true,"end":"1.23.1","endInclusive":false}}],"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,"bounds":{"kind":"range","start":"1.21.0","startInclusive":true,"end":"1.23.1","endInclusive":false}}],"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,"bounds":{"kind":"range","start":"1.21.0","startInclusive":true,"end":"1.23.1","endInclusive":false}}],"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}],"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.02085,"stale":false,"promoted":null},{"type":"cvss","source":"osv_maven","date":"2025-02-13T17:03:21.877Z","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:N/I:H/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-02-13T17:03:21.877Z","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:N/I:H/A:N","version":"3.1","headline":true},{"type":"adp","source":"cisa-adp","date":"2024-09-27T20:06:15.715Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.02085,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T07:02:00.704Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T07:02:01.187Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T07:02:01.389Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T07:01:05.155Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T07:01:59.185Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T07:01:58.234Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:53:30.851Z","stale":false,"partial":false}}