Security advisory
An issue was discovered in sthttpd through 2.27.1. On systems where the strcpy function is implemented with memcpy, the de_dotdot function may cause a Denial-of-Service (daemon crash) due to overlapping memory ranges being passed to memcpy. This can triggered with an HTTP GET request for a crafted filename. NOTE: this is similar to CVE-2017-10671, but occurs in a different part of the de_dotdot function.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-26843
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:42 UTC · Revision 1
Source evidence
An issue was discovered in sthttpd through 2.27.1. On systems where the strcpy function is implemented with memcpy, the de_dotdot function may cause a Denial-of-Service (daemon crash) due to overlapping memory ranges being passed to memcpy. This can triggered with an HTTP GET request for a crafted filename. NOTE: this is similar to CVE-2017-10671, but occurs in a different part of the de_dotdot function.
osv:CVE-2021-26843
Complete source record
{
"id": "a8698123e362f47703716e25b95fa050d93fde69905b12b19d2be01eb8a8e27d",
"url": "https://osv.dev/vulnerability/CVE-2021-26843",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-26843",
"summary": "An issue was discovered in sthttpd through 2.27.1. On systems where the strcpy function is implemented with memcpy, the de_dotdot function may cause a Denial-of-Service (daemon crash) due to overlapping memory ranges being passed to memcpy. This can triggered with an HTTP GET request for a crafted filename. NOTE: this is similar to CVE-2017-10671, but occurs in a different part of the de_dotdot function.",
"evidence": "osv:CVE-2021-26843",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-26843",
"aliases": [
"CVE-2021-26843"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/blueness/sthttpd",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "2845bf5bff2b820d2336c8c8061cbfc5f271e720"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:sthttpd_project:sthttpd:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.27.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.27.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-26843.json"
}
}
],
"modified": "2026-10-20T10:54:34.550471611Z",
"provider": "osv",
"references": [
"https://github.com/blueness/sthttpd/issues/14"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-26843",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385627,
"published_at": "2021-02-07T21:15:11.79+00:00"
}