CVE-2023-45725: Apache CouchDB, IBM Cloudant: Privilege Escalation Using _design Documents
Apache CouchDB could allow a local attacker to gain elevated privileges on the system, caused by a flaw when using design document functions. By sending a specially crafted HTTP request, an attacker could exploit this vulnerability to gain elevated privileges to insert the design documents into the database, then manipulate a user to access a function from that design document.
Other sources
Design document functions which receive a user http request object may expose authorization or session cookie headers of the user who accesses the document.
These design document functions are: list show rewrite update
An attacker can leak the session component using an HTML-like output, insert the session as an external resource (such as an image), or store the credential in a local document with an "update" function.
For the attack to succeed the attacker has to be able to insert the design documents into the database, then manipulate a user to access a function from that design document.
Workaround: Avoid using design documents from untrusted sources which may attempt to access or manipulate request object's headers
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2023-45725?
CVE-2023-45725 is considered a critical vulnerability due to the potential for local attackers to gain elevated privileges.
How do I fix CVE-2023-45725?
To fix CVE-2023-45725, users should upgrade Apache CouchDB to version 3.3.3 or later.
Who is affected by CVE-2023-45725?
CVE-2023-45725 affects Apache CouchDB versions up to and including 3.3.2 and IBM Planning Analytics Local versions 2.1 and 2.0.
Can CVE-2023-45725 be exploited remotely?
No, CVE-2023-45725 requires local access to the system to exploit the vulnerability.
What impact does CVE-2023-45725 have on affected systems?
CVE-2023-45725 allows an attacker to gain elevated privileges, which could lead to unauthorized access to sensitive data or system controls.