info: name: CouchDB Erlang Distribution - Remote Command Execution author: Mzack9999,pussycat0x severity: critical description: | In Apache CouchDB prior to 3.2.2, an attacker can access an improperly secured default installation without authenticating and gain admin privileges. impact: | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary commands on the affected system. remediation: | Upgrade to versions 3.2.2or newer. Starting from CouchDB 3.2.2, the previous default Erlang cookie value "monster" will be rejected upon startup. Upgraded installations will be required to select an alternative value. reference: - https://www.exploit-db.com/exploits/50914 - https://github.com/sadshade/CVE-2022-24706-CouchDB-Exploit/blob/main/CVE-2022-24706-Exploit.py - https://nvd.nist.gov/vuln/detail/CVE-2022-24706 - http://www.openwall.com/lists/oss-security/2022/04/26/1 - http://www.openwall.com/lists/oss-security/2022/05/09/1 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H cvss-score:9.8 cve-id: CVE-2022-24706 cwe-id: CWE-1188 epss-score:0.94412 epss-percentile:0.99975 cpe: cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:* metadata: verified:"true" max-request:2 vendor: apache product: couchdb shodan-query: - product:"CouchDB" - product:"couchdb" - cpe:"cpe:2.3:a:apache:couchdb" tags: cve2022,network,cve,couch,rce,kev,couchdb,apache,tcp
matchers: -type: word part: raw words: -"uid" -"gid" -"groups" condition: and # digest: 4a0a0047304502204734da756639045be38d801b4df76f1c1c1ef05903fa15dbd8cef2295be58bdf022100c2d6efedf4a51a7a60be68b7f979be6dde7a87638113a78483ee4150a14439c0:922c64590222798bb761d5b6d8e72950