# CVE-2024-5193: Ritlabs TinyWeb Server Request crlf injection

> Remote attackers can inject CRLF sequences into HTTP requests in Ritlabs TinyWeb Server, potentially manipulating response headers.

- **Severity:** Medium 6.9 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 22 May 2024
- **Updated:** 5 Jan 2026
- **Also known as:** GHSA-f49h-4f4j-3rjc

## What is CVE-2024-5193?

CVE-2024-5193 is a medium-severity vulnerability in Ritlabs TinyWeb Server, published on 22 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A security vulnerability has been detected in Ritlabs TinyWeb Server 1.94. This vulnerability affects unknown code of the component Request Handler. The manipulation with the input %0D%0A leads to crlf injection. It is possible to initiate the attack remotely. The exploit has been disclosed publicly and may be used. Upgrading to version 1.99 is able to resolve this issue. The identifier of the patch is d49c3da6a97e950975b18626878f3ee1f082358e. It is suggested to upgrade the affected component. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-93 (Improper Neutralization of CRLF Sequences), CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component)

## Which versions are affected by CVE-2024-5193?

It affects 1 product.


Products: Ritlabs Tinyweb.

## How do I fix CVE-2024-5193?

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

## Is CVE-2024-5193 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5193 exists.

## Other vulnerabilities in Ritlabs TinyWeb Server

- [CVE-2026-27613](https://insights.sbomify.com/CVE-2026-27613/): CGI Parameter Injection (Bypass of STRICT_CGI_PARAMS and EscapeShellParam) (critical 10.0)
- [CVE-2026-22781](https://insights.sbomify.com/CVE-2026-22781/): TinyWeb CGI Command Injection (critical 10.0)
- [CVE-2026-28497](https://insights.sbomify.com/CVE-2026-28497/): TinyWeb: Integer Overflow in `_Val` (HTTP Request Smuggling) (critical 9.3)
- [CVE-2026-29046](https://insights.sbomify.com/CVE-2026-29046/): TinyWeb: HTTP Header Control Character Injection into CGI Environment (critical 9.2)
- [CVE-2026-27630](https://insights.sbomify.com/CVE-2026-27630/): TinyWeb vulnerable to Remote Denial of Service via Thread/Connection Exhaustion (Slowloris) (high 8.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-5193 and fix it if it is affected.

What it is: CVE-2024-5193 is a medium-severity vulnerability in Ritlabs TinyWeb Server, published on 22 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5193 exists.

Affected product: Ritlabs TinyWeb Server. 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-2024-5193/ (Markdown: https://insights.sbomify.com/CVE-2024-5193/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-5193
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-5193
- OSV: https://osv.dev/vulnerability/CVE-2024-5193

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-5193/
Summaries are generated and may contain mistakes; the official description above is the record.
