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

PackageAffected versionsFixed 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

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.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

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.