CVE-2012-5640 Null dereference in thttpd
Medium 5.5
Published
Updated
Check this codebase for CVE-2012-5640 and fix it if it is affected.
What it is: CVE-2012-5640 is a medium-severity vulnerability in thttpd, published on 25 Nov 2019. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2012-5640 in the wild and no public exploit code.
Affected product: thttpd. No package-level version data is available, so check the vendor advisory linked from the reference page.
Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.
Reference: https://insights.sbomify.com/CVE-2012-5640/ (Markdown: https://insights.sbomify.com/CVE-2012-5640/index.md)
A local attacker can cause a denial of service in thttpd by providing a specially crafted .htpasswd file, triggering a null pointer dereference.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-5640?
CVE-2012-5640 is a medium-severity vulnerability in thttpd, published on 25 Nov 2019. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
thttpd has a local DoS vulnerability via specially-crafted .htpasswd files
Weakness: CWE-476
Which versions are affected by CVE-2012-5640?
It affects 1 product.
Products include Acme Thttpd.
How do I fix CVE-2012-5640?
Apply the vendor's patch.
Is CVE-2012-5640 being exploited?
There is no known exploitation of CVE-2012-5640 in the wild and no public exploit code.
Other vulnerabilities in thttpd
Sources
Also known as GHSA-xg4h-q3qm-pp3c.