CVE-2023-45725: Design document functions which receive a user http request object may expose authorization or session cookie headers of the user who accesses the document.
Medium CVSS 5.7
- CVE id
- CVE-2023-45725
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Apache CouchDB Runtimes and servers |
<= 3.3.2 | after 3.3.2 |
How to fix it
Upgrade Apache CouchDB to a release newer than 3.3.2.
- Install the patched CouchDB release (the couchdb image tag or your packages).
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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
References
- CVE-2023-45725 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-45725
- Web: https://docs.couchdb.org/en/stable/cve/2023-45725.html
- Web: https://lists.apache.org/thread/pqjq9zt8vq9rsobkc1cow9sqm9vozlrg
- Web: https://docs.couchdb.org/en/stable/cve/2023-45725.html
- Web: https://lists.apache.org/thread/pqjq9zt8vq9rsobkc1cow9sqm9vozlrg
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.