yhirose/cpp-httplib: Improper Neutralization of Special Elements in Output Used by a Downstream Component
CVE-2023-26130 is a high-severity improper neutralization of special elements in output used by a downstream component vulnerability in yhirose/cpp-httplib, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. The record lists version 0.12.4 as the first without the flaw, so updating yhirose/cpp-httplib to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 1.14% chance of exploitation within 30 days, higher than 67% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update yhirose/cpp-httplib to 0.12.4 or a later version.
- Update cpp-httplib to 0.12.4 or a later version.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
- Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Yhirose/cpp-httplib | yhirose/cpp-httplib | before 0.12.4 | 0.12.4 |
| Yhirose | cpp-httplib | before 0.12.4 | 0.12.4 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- RequiredA user must take an action such as opening a file or link.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | CNA (snyk.io) |
| CVSS 3.1 | 8.8 | High | NVD |
Official description
Versions of the package yhirose/cpp-httplib before 0.12.4 are vulnerable to CRLF Injection when untrusted user input is used to set the content-type header in the HTTP .Patch, .Post, .Put and .Delete requests. This can lead to logical errors and other misbehaviors. **Note:** This issue is present due to an incomplete fix for [CVE-2020-11709](https://security.snyk.io/vuln/SNYK-UNMANAGED-YHIROSECPPHTTPLIB-2366507).
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Neutralization of Special Elements in Output Used by a Downstream Component
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
How developers prevent this class of flaw
- Programming languages and supporting technologies might be chosen which are not subject to these issues.
- Utilize an appropriate mix of allowlist and denylist parsing to filter control-plane syntax from all input.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
Third-party and government advisories
- gist.github.com/dellalibera/094aece17a86069a7d27f93c8aba2280Third Party Advisory
- security.snyk.io/vuln/SNYK-UNMANAGED-YHIROSECPPHTTPLIB-5591194Third Party Advisory
Other references
- lists.fedoraproject.org/archives/list/[email protected]/message/2RY6PKBU73I45L6YWNYCUK…
- lists.fedoraproject.org/archives/list/[email protected]/message/JY2E7EIRWQMKH6GY4OZOWW…
- lists.fedoraproject.org/archives/list/[email protected]/message/NYODHZECXYFC2BNODZPZXZ…
- lists.fedoraproject.org/archives/list/[email protected]/message/U6MO4FSKYNSAJVUXYP7LRY…
Recent Improper Neutralization of Special Elements in Output Used by a Downstream Component vulnerabilities
- 8.8 High severity
- 7.2 High severity
- 7.2 High severity
- 10.0 Critical severity
- 7.3 High severity
- 7.3 High severity
Spotted an error? Tell us.