{"id":"CVE-2026-54135","summary":"AirSane has a Remote Denial of Service (OOM) via Unvalidated Content-Length in HTTP Server","details":"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.","aliases":["GHSA-p5hv-3m79-452q"],"modified":"2026-09-13T03:45:14.571502749Z","published":"2026-09-11T19:44:39.687Z","database_specific":{"cwe_ids":["CWE-400","CWE-770"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54135.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/SimulPiscator/AirSane/releases/tag/v0.4.12"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54135.json"},{"type":"ADVISORY","url":"https://github.com/SimulPiscator/AirSane/security/advisories/GHSA-p5hv-3m79-452q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54135"},{"type":"FIX","url":"https://github.com/SimulPiscator/AirSane/commit/129cc3bf7258251a0a694dee7741285b59d88f9f"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/simulpiscator/airsane","events":[{"introduced":"0"},{"fixed":"129cc3bf7258251a0a694dee7741285b59d88f9f"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.4.12"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v.0.4.11","v.0.4.10","v0.4.9","v0.4.7","v0.4.6","v0.4.5","v0.4.4","v0.4.3","v0.4.2","v0.4.1","v0.4","v0.3.5","v0.3.4","v0.3.3","v0.3.2","v0.3.1","v0.3","v0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54135.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}