CVE-2021-43823 Side-channel attack in Sourcegraph

Medium 6.5 Published Updated

Authenticated attackers can guess private source code strings, such as API keys, via side-channel attacks in Saved Searches and Code Monitoring features.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-43823?

CVE-2021-43823 is a medium-severity vulnerability in sourcegraph, published on 13 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Sourcegraph is a code search and navigation engine. Sourcegraph prior to version 3.33.2 is vulnerable to a side-channel attack where strings in private source code could be guessed by an authenticated but unauthorized actor. This issue affects the Saved Searches and Code Monitoring features. A successful attack would require an authenticated bad actor to create many Saved Searches or Code Monitors to receive confirmation that a specific string exists. This could allow an attacker to guess formatted tokens in source code, such as API keys. This issue was patched in version 3.33.2 and any future versions of Sourcegraph. We strongly encourage upgrading to secure versions. If you are unable to, you may disable Saved Searches and Code Monitors.

Weakness: CWE-203, CWE-200

Which versions are affected by CVE-2021-43823?

It affects 1 product.

Products include Sourcegraph Sourcegraph.

How do I fix CVE-2021-43823?

No fix has been published for CVE-2021-43823 yet. Limit exposure of the affected software until one is available.

Is CVE-2021-43823 being exploited?

There is no known exploitation of CVE-2021-43823 in the wild and no public exploit code.

Sources

Is CVE-2021-43823 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free