{"schemaVersion":3,"id":"CVE-2021-4040","aliases":["GHSA-gf8c-j759-86mg"],"status":"published","duplicateOf":null,"title":null,"description":"A flaw was found in AMQ Broker. This issue can cause a partial interruption to the availability of AMQ Broker via an Out of memory (OOM) condition. This flaw allows an attacker to partially disrupt availability to the broker through a sustained attack of maliciously crafted messages. The highest threat from this vulnerability is system availability.","dates":{"published":"2022-08-24T15:13:07.000Z","modified":"2024-08-03T17:16:03.705Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03194,"percentile":0.87915,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0.06700000000000039,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.03127},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03194,"percentile":0.87915}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03127,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03194,"percentile":0.87915}]},"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-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"apache","product":"artemis","name":"artemis","label":"artemis","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.19.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.19.1","eol":null,"hubHref":"/vendor/apache/artemis"},{"vendor":"org.apache.activemq","product":"artemis-core-client","name":"org.apache.activemq:artemis-core-client","label":"artemis-core-client","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.activemq/artemis-core-client","purlType":"maven","versions":[{"text":"< 2.19.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.19.1","eol":null,"hubHref":null},{"vendor":"redhat","product":"amq_broker","name":"amq broker","label":"amq_broker","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 7.10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.10.0","eol":null,"hubHref":"/vendor/redhat/amq_broker"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2028254","label":"bugzilla.redhat.com/show_bug.cgi?id=2028254","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","WEB","Issue Tracking","Vendor Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-4040","label":"access.redhat.com/security/cve/CVE-2021-4040","hostname":"access.redhat.com","tags":["X Refsource MISC","WEB","Vendor Advisory"]},{"url":"https://issues.apache.org/jira/browse/ARTEMIS-3593","label":"issues.apache.org/jira/browse/ARTEMIS-3593","hostname":"issues.apache.org","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/apache/activemq-artemis/pull/3871/commits","label":"github.com/apache/activemq-artemis/pull/3871/commits","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4040","label":"nvd.nist.gov/vuln/detail/CVE-2021-4040","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/activemq-artemis/pull/3862","label":"github.com/apache/activemq-artemis/pull/3862","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/activemq-artemis/pull/3871","label":"github.com/apache/activemq-artemis/pull/3871","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/activemq-artemis/pull/3871/commits/153d2e9a979aead8dff95fbc91d659ecc7d0fb82","label":"github.com/apache/activemq-artemis/pull/3871/commits/153d2e9a979aead8dff95fbc91d659ecc7d0fb82","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/activemq-artemis","label":"github.com/apache/activemq-artemis","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-08-24T15:13:07.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:16:03.705Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T05:26:14.374Z","stale":false,"partial":false}}