{"id":"CVE-2026-54135","state":"PUBLISHED","title":"AirSane has a Remote Denial of Service (OOM) via Unvalidated Content-Length in HTTP Server","description":"AirSane is a SANE frontend, and a scanner server that supports Apple's AirScan protocol. Versions prior to 0.4.12 have a vulnerability in the custom HTTP server implementation of AirSane that allows a remote unauthenticated attacker to cause a Denial of Service (DoS) via memory exhaustion (OOM). In httpserver.cpp, the HttpServer::Request::content function reads the Content-Length header and directly passes this value to std::string::resize() without any upper-bound validation or safe parsing. An attacker can send an HTTP POST request with an artificially large Content-Length value. This forces the daemon to attempt allocating gigabytes of memory, resulting in a std::bad_alloc exception and immediately crashing the AirSane process. Additionally, providing non-numeric characters in the Content-Length header leads to undefined behavior (NaN to integer conversion) due to the lack of error handling during header parsing. Version 0.4.12 patches the issue.","publishedAt":"2026-09-11T19:44:39.687Z","updatedAt":"2026-09-14T18:47:55.523Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["SimulPiscator AirSane"],"affected":[{"vendor":"SimulPiscator","product":"AirSane","versions":[{"version":"< 0.4.12","status":"affected"}]}],"references":["https://github.com/SimulPiscator/AirSane/security/advisories/GHSA-p5hv-3m79-452q","https://github.com/SimulPiscator/AirSane/commit/129cc3bf7258251a0a694dee7741285b59d88f9f","https://github.com/SimulPiscator/AirSane/releases/tag/v0.4.12"],"weaknesses":["CWE-400","CWE-770"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/54xxx/CVE-2026-54135.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-54135","state":"PUBLISHED","datePublished":"2026-09-11T19:44:39.687Z","dateUpdated":"2026-09-14T18:47:55.523Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-11T21:15:33.870Z"},"containers":{"cna":{"title":"AirSane has a Remote Denial of Service (OOM) via Unvalidated Content-Length in HTTP Server","descriptions":[{"lang":"en","value":"AirSane is a SANE frontend, and a scanner server that supports Apple's AirScan protocol. Versions prior to 0.4.12 have a vulnerability in the custom HTTP server implementation of AirSane that allows a remote unauthenticated attacker to cause a Denial of Service (DoS) via memory exhaustion (OOM). In httpserver.cpp, the HttpServer::Request::content function reads the Content-Length header and directly passes this value to std::string::resize() without any upper-bound validation or safe parsing. An attacker can send an HTTP POST request with an artificially large Content-Length value. This forces the daemon to attempt allocating gigabytes of memory, resulting in a std::bad_alloc exception and immediately crashing the AirSane process. Additionally, providing non-numeric characters in the Content-Length header leads to undefined behavior (NaN to integer conversion) due to the lack of error handling during header parsing. Version 0.4.12 patches the issue."}],"affected":[{"vendor":"SimulPiscator","product":"AirSane","versions":[{"version":"< 0.4.12","status":"affected"}]}],"references":[{"url":"https://github.com/SimulPiscator/AirSane/security/advisories/GHSA-p5hv-3m79-452q","name":"https://github.com/SimulPiscator/AirSane/security/advisories/GHSA-p5hv-3m79-452q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/SimulPiscator/AirSane/commit/129cc3bf7258251a0a694dee7741285b59d88f9f","name":"https://github.com/SimulPiscator/AirSane/commit/129cc3bf7258251a0a694dee7741285b59d88f9f","tags":["x_refsource_MISC"]},{"url":"https://github.com/SimulPiscator/AirSane/releases/tag/v0.4.12","name":"https://github.com/SimulPiscator/AirSane/releases/tag/v0.4.12","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-770","lang":"en","description":"CWE-770: Allocation of Resources Without Limits or Throttling","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-11T19:44:39.687Z"},"source":{"advisory":"GHSA-p5hv-3m79-452q","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/SimulPiscator/AirSane/security/advisories/GHSA-p5hv-3m79-452q","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-14T18:47:39.306737Z","id":"CVE-2026-54135","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-14T18:47:55.523Z"}}]}}}